You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This tracks the work to create a bagel add-bids subcommand that does this:
Inputs:
(1) pheno.jsonld generated by bagel pheno
(2) BIDS dataset directory path
(3) maybe: the path on the host computer of the BIDS dataset
Output: pheno_bids.jsonld
A user who has already run bagel pheno (#32) successfully to create a pheno.jsonld file should be able to use this subcommand to add imaging metadata (BIDS) to the existing pheno.jsonld file. The imaging metadata to add are:
the type of imaging acquired during a session as Acquisition
the absolute file system path of a session directory in the BIDS dataset
Expectations (for now):
subject IDs in the pheno.tsv and the corresponding BIDS directory will be the same.
there may be subjects in the pheno.tsv file that do not exist in the BIDS directory (i.e. pheno only)
if a subject does not exist in the BIDS dir, it will remain in the .jsonld with only the existing phenotypic metadata
if a subject has multiple acquisitions of the same type in the same session (e.g. several T1s), then they should be added as separate acquisitions to the session (i.e. you can have more than one T1 in a session)
this will require refactoring the existing bids pheno CLI tests because the CLI will have to be called with the explicit subcommand name whereas we can currently just call it with the cli name (i.e. bagelbids --somearg vs bagelbids pheno --somearg)
the pheno.jsonld is currently only valid after we remove the @context tag
we can investigate if there is a way to adjust the data dictionary schema to also allow for the @context while still rejecting invalid data dictionary instances. but stripping the@context is also a valid solution for now
essentially matching subjects by label and adding new imaging related attributes without deleting the existing information (or changing the subject identifier / reinstantiating any of the dataset / subject / sessions instances)
This tracks the work to create a
bagel add-bids
subcommand that does this:Inputs:
(1) pheno.jsonld generated by
bagel pheno
(2) BIDS dataset directory path
(3) maybe: the path on the host computer of the BIDS dataset
Output: pheno_bids.jsonld
A user who has already run
bagel pheno
(#32) successfully to create apheno.jsonld
file should be able to use this subcommand to add imaging metadata (BIDS) to the existingpheno.jsonld
file. The imaging metadata to add are:Expectations (for now):
Things to do:
bids pheno
CLI tests because the CLI will have to be called with the explicit subcommand name whereas we can currently just call it with the cli name (i.e.bagelbids --somearg
vsbagelbids pheno --somearg
)@context
tag@context
while still rejecting invalid data dictionary instances. but stripping the@context
is also a valid solution for nowses
subdirectory), create a new session object with label01
#82@context
back in, if it was previously strippedThe text was updated successfully, but these errors were encountered: