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

Missing subject-level folders #89

Closed
danlurie opened this issue Sep 23, 2017 · 2 comments
Closed

Missing subject-level folders #89

danlurie opened this issue Sep 23, 2017 · 2 comments

Comments

@danlurie
Copy link
Contributor

Suspect this issue may be related to #76, but I can't figure out what locate is so I'm not sure. Anyway...

I call heudiconv with:

heudiconv \
-d /home/despoB/DistractWM/RawData/Distractwm_{subject}/Despo_Lab_Anastasia*/*/*.dcm \
-s 102 103 
-c dcm2niix \
-o /home/despoB/DistractWM/BIDS/test \
-f /home/despoB/dlurie/Software/heudiconv/heuristics/uc_bids_DistractWM.py \
-b \
--minmeta

Heuristic can be found here if that's useful. heudiconv successfully converts the DICOMs, names the files correctly, and creates the JSON sidecars, but puts files from all subjects in the same two output/anat and output/func directories. That is to say, no sub-102 or sub-103 directories are created.

I'm running the latest heudiconv cloned from Github earlier today.

Any ideas of what I might do to fix this are greatly appreciated!

@satra
Copy link
Member

satra commented Sep 23, 2017

this is an intentional regression. previously heudiconv would take the sub id 102 for example and create a folder in the output and then to make it bids conformant people would have to rename it.

since the bids component of the information comes from the heuristic, the heuristic needs to be updated to reflect it. so in your case updating the templates inside the heuristic to be sub-{subject}/... should do the job.

@danlurie
Copy link
Contributor Author

Thanks! That solves it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants