-
Notifications
You must be signed in to change notification settings - Fork 0
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
philadelphia-pediatric
: organization and naming of new subjects
#334
Comments
@jcohenadad, I'm now thinking whether cd philadelphia-pediatric
$ ls sub-1*/anat/*run-2*.nii.gz
ls: sub-1*/anat/*run-2*.nii.gz: No such file or directory But for consistency with the already shared data, I would use |
I think that top/bottom should use the chunk entity instead. Example: |
If we don't have run-2, then I agree, there is no need for run-1 |
Agree with both. Let's share the data with filenames proposed in the first comment. And I will then fix the filename for the whole dataset. |
During a BIDS validation of the newly shared data, @mguaypaq discovered that several subjects have empty sform_code and qform_code, leading to unknown image orientation. Details can be found at this data.neuro.polymtl.ca comment. I contacted our collaborators about this issue and received the following response:
I've looked in our repos, but I haven't found any piece of code related to the orientation fix. @jcohenadad, @rohanbanerjee, @NadiaBlostein, do you happen to have any insights? |
Follow-up on the empty sform_code and qform_code from my previous comment. After iteratively promoting Claude while controlling its output in FSleyes, I ended up with the following commands to fix the image header: # creaty a copy image to play with
cp sub-127_rec-composed_T2w_copy.nii.gz sub-127_rec-composed_T2w_fixed.nii.gz
# fix qform
fslorient -setqformcode 1 sub-127_rec-composed_T2w_fixed.nii.gz
fslorient -setqform 0 0 -1 0 -1 0 0 0 0 1 0 0 0 0 0 1 sub-127_rec-composed_T2w_fixed.nii.gz
# use the same transformation for sform:
fslorient -setsformcode 1 sub-127_rec-composed_T2w_fixed.nii.gz
fslorient -setsform 0 0 -1 0 -1 0 0 0 0 1 0 0 0 0 0 1 sub-127_rec-composed_T2w_fixed.nii.gz
# now, the image is in AIL
# --> reorient it to LPI to be in the same orientation as sub-127_acq-top_run-1_T2w.nii.gz to allow comparison in FSLeyes
sct_image -i sub-127_rec-composed_T2w_fixed.nii.gz -setorient LPI -o sub-127_rec-composed_T2w_fixed_LPI.nii.gz Now, when opening |
Update: I received fixed composed images from collaborators and pushed them to data.neuro.polymtl.ca; details in https://data.neuro.polymtl.ca/datasets/philadelphia-pediatric/pulls/3#issuecomment-624. |
This issue discusses data organization and file naming for new subjects for the
philadelphia-pediatric
dataset that our collaborators will share with us.Current organization and naming:
Organization and naming that would be compatible with our convention:
Changes:
DWI
todwi
acq-bottom
andacq-top
keys in the file names. Usage ofrec-composed
for composed images. Putting composed images into theanat
directory.The text was updated successfully, but these errors were encountered: