Harmonise metadata columns across datasets#54
Merged
Conversation
- 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
c01b4d4 to
a4afbeb
Compare
b13aa38 to
20dee8f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
coconatfly.harmonise_classoption)tissuecolumn (brain/vnc/cns) based on datasetsexcolumn (M/F) from dataset registrationsidevalues to L/R/M/NAcf_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 neuronsside: normalised to L/R/M (left/right/midline) or NAsex: M or F, from dataset registrationtissue: brain, vnc, or cns depending on datasetgroup: numeric, defines related neurons within datasetdataset: source dataset nameRelated
🤖 Generated with Claude Code