-
Notifications
You must be signed in to change notification settings - Fork 26
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
Refactor HCP/DCAN ingression and fix converted filenames #714
Conversation
@kahinimehta it looks like there might be useful mappings in this |
tw1tonative = wmmask | ||
|
||
# get task and idx run 01 | ||
func_dirx = dcan_dir + "/" + sub_id + "/ses-" + ses_id[0] + "/files/MNINonLinear/Results/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICT, this means that the script looped over all sessions, but copied functional files from only the first session's DCAN folder into all of the sessions' fMRIPrep folders.
# NOTE: Why *was* this set to the *first* session only? (I fixed it) | ||
# AFAICT, this would copy the first session's files from DCAN into *every* | ||
# session of the output directory. | ||
func_dir_orig = os.path.join(anat_dir_orig, "Results") | ||
func_dir_fmriprep = os.path.join(session_dir_fmriprep, "func") | ||
os.makedirs(func_dir_fmriprep, exist_ok=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this was an important bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look really good, but there are a few minor things that I think need to be changed. The main thing is that I think all of the transforms should be text files, and should all use the identity transform you added.
@tsalo should be good now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to ensure the scans.tsv file is accurate, you need to use the same key for all of the transforms, but add the values to a list.
Co-authored-by: Taylor Salo <[email protected]>
Co-authored-by: Taylor Salo <[email protected]>
Co-authored-by: Taylor Salo <[email protected]>
Co-authored-by: Taylor Salo <[email protected]>
Related to #709.
To do:
Changes proposed in this pull request
midR
was used for the HCP right-hemisphere midthickness file, while ``rMid` was used for the fMRIPrep version.Documentation that should be reviewed
None.