Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output annotated metadata as BIDS compatible data dictionary #6

Closed
surchs opened this issue Jan 18, 2022 · 5 comments
Closed

Output annotated metadata as BIDS compatible data dictionary #6

surchs opened this issue Jan 18, 2022 · 5 comments
Labels
download page _flag:stale [BOT ONLY] Flag issue that hasn't been updated in a while and needs to be triaged again
Milestone

Comments

@surchs
Copy link
Contributor

surchs commented Jan 18, 2022

One of the outputs we generate with this tool could be a BIDS compatible data dictionary. This could allow us to encode all of the harmonizations inside the data dictionary and leave the original participants.tsv file as is.

Example

We start with this

participant_id age sex handedness group
sub-01 Y034 M right PD
sub-02 Y012 F right CTL
sub-03 Y009 F n/a PD

And this data dictionary:

{
    "age": {
        "Description": "age of the participant",
        "Units": "years"
    },
    "sex": {
        "Description": "sex of the participant as reported by the participant",
        "Levels": {
            "M": "male",
            "F": "female"
        }
    },
    "handedness": {
        "Description": "handedness of the participant as reported by the participant",
        "Levels": {
            "left": "left",
            "right": "right"
        }
    },
    "group": {
        "Description": "diagnostic group the participant belonged to",
        "Levels": {
            "CTL": "Control subject",
            "PD": "Parkinson Patient"
        }
    }
}

Then we annotate things with our tool and end up with this data dictionary:

{
    "age": {
        "Description": "age of the participant",
        "Units": "years",
       "bagel": {
           "type": "age",
           "map": "[1-9]+"
           }
    },
    "sex": {
        "Description": "sex of the participant as reported by the participant",
        "Levels": {
            "M": "male",
            "F": "female"
        },
        "bagel": {
        	"type": "gender"
        	"map": None
    },
    "handedness": {
        "Description": "handedness of the participant as reported by the participant",
        "Levels": {
            "left": "left",
            "right": "right"
        }
    },
    "group": {
        "Description": "diagnostic group the participant belonged to",
        "Levels": {
            "CTL": "Control subject",
            "PD": "Parkinson Patient"
        },
        "bagel": {
        	"type": "diagnosis",
        	"map": {
        		"CTL": "https://normalcontrol.org",
        		"PD": "https://SNOMED.Parkinson.org"
        		}
	    }
	}
    
}
@surchs
Copy link
Contributor Author

surchs commented Jan 24, 2022

This is not a focus right now but we should revisit this in order to add compatibility with BIDS and OpenNeuro at a later stage

@surchs surchs moved this to Icebox in Neurobagel May 2, 2022
@stale
Copy link

stale bot commented Nov 29, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the _flag:stale [BOT ONLY] Flag issue that hasn't been updated in a while and needs to be triaged again label Nov 29, 2022
@stale stale bot closed this as completed Dec 6, 2022
@stale stale bot moved this to Done in Neurobagel Dec 6, 2022
@surchs surchs reopened this Dec 6, 2022
Repository owner moved this from Done to Inbox in Neurobagel Dec 6, 2022
@github-actions github-actions bot removed the _flag:stale [BOT ONLY] Flag issue that hasn't been updated in a while and needs to be triaged again label Dec 7, 2022
@github-actions
Copy link

github-actions bot commented Jan 7, 2023

We want to keep our issues up to date and active. This issue hasn't seen any activity in the last 30 days.
We have applied the stale-issue label to indicate that this issue should be reviewed again and then either prioritized or closed.

@github-actions github-actions bot added the _flag:stale [BOT ONLY] Flag issue that hasn't been updated in a while and needs to be triaged again label Jan 7, 2023
@surchs surchs added this to the v0.1.0 milestone Jan 10, 2023
@github-actions github-actions bot removed the _flag:stale [BOT ONLY] Flag issue that hasn't been updated in a while and needs to be triaged again label Jan 11, 2023
@github-actions
Copy link

We want to keep our issues up to date and active. This issue hasn't seen any activity in the last 30 days.
We have applied the stale-issue label to indicate that this issue should be reviewed again and then either prioritized or closed.

@github-actions github-actions bot added the _flag:stale [BOT ONLY] Flag issue that hasn't been updated in a while and needs to be triaged again label Feb 12, 2023
@surchs
Copy link
Contributor Author

surchs commented Mar 21, 2023

I'm closing this because we are implementing and tracking it in #305 now

@surchs surchs closed this as completed Mar 21, 2023
@github-project-automation github-project-automation bot moved this from Inbox to Done in Neurobagel Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
download page _flag:stale [BOT ONLY] Flag issue that hasn't been updated in a while and needs to be triaged again
Projects
Archived in project
Development

No branches or pull requests

2 participants