Skip to content

Harmonise metadata columns across datasets#54

Merged
jefferis merged 7 commits intomasterfrom
feature/normalise-superclass-values
Mar 1, 2026
Merged

Harmonise metadata columns across datasets#54
jefferis merged 7 commits intomasterfrom
feature/normalise-superclass-values

Conversation

@jefferis
Copy link
Copy Markdown
Contributor

@jefferis jefferis commented Mar 1, 2026

Summary

  • Add optional class harmonisation to malecns style (controlled by coconatfly.harmonise_class option)
  • Add tissue column (brain/vnc/cns) based on dataset
  • Add sex column (M/F) from dataset registration
  • Normalise side values to L/R/M/NA
  • Document standard columns in cf_meta()

New package options

  • coconatfly.harmonise_class: If TRUE, harmonise class values to malecns style across all datasets (default: FALSE)

Standard columns

The returned data frame now includes these standard columns:

  • id, key: neuron identifiers (key is unique across datasets)
  • class, subclass, type: cell class hierarchy (optionally harmonised to malecns style)
  • instance: summarises properties of individual neurons
  • side: normalised to L/R/M (left/right/midline) or NA
  • sex: M or F, from dataset registration
  • tissue: brain, vnc, or cns depending on dataset
  • group: numeric, defines related neurons within dataset
  • dataset: source dataset name

Related

🤖 Generated with Claude Code

jefferis added 5 commits March 1, 2026 11:15
- Add dataset_sex() helper to retrieve sex from coconat registration
- Add sex column to cf_meta() and cf_partners()
- Set sex in all dataset registrations (M for male datasets, F for female)
- Add tests for sex column
@jefferis jefferis force-pushed the feature/normalise-superclass-values branch from c01b4d4 to a4afbeb Compare March 1, 2026 12:29
@jefferis jefferis force-pushed the feature/normalise-superclass-values branch from b13aa38 to 20dee8f Compare March 1, 2026 15:06
@jefferis jefferis merged commit d746433 into master Mar 1, 2026
3 checks passed
@jefferis jefferis deleted the feature/normalise-superclass-values branch March 1, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant