WinawerLab / MRI_tools

Matlab and Python tools for MRI analyses
GNU General Public License v3.0
3 stars 3 forks source link

Bids preproc #3

Closed billbrod closed 6 years ago

billbrod commented 6 years ago

This pull request would allow the preprocessing script to work with BIDS data, automatically grabbing most relevant information directly from the directory (using pybids). There are a couple of things to consider:

sfavila commented 6 years ago

Thanks for working on this!

billbrod commented 6 years ago

Thanks for testing! In response to your points:

  1. Since we know how Winawer lab subject names are formatted, we could check for both SUBJECTS_DIR/wl_subj001 and SUBJECTS_DIR/sub-wlsubj001 and store whichever subject name is found.

  2. For dir_structure=='bids', use the sub-wlsubj001 name unless the user passes subject on the command line, in which case we use that.

What do you think?

sfavila commented 6 years ago
billbrod commented 6 years ago

Okay, so I think I addressed the issues above, give it a try and let me know!

I'm also going to try and add a testing script because this is starting to become a pain to test manually.

billbrod commented 6 years ago

Okay, I'm going to go ahead and merge these. When people run into new problems, we'll open up new issues to fix them.