If you use Flywheel to reap dicoms from the scanner, but want to use the Penn PMACS LPC to do pretty much everything else, this repository will (hopefully) be useful. It does the following:
- Downloads the DICOMs from Flywheel to the PMACS LPC using the Flywheel SDK.
- Converts these DICOMs to NIFTI using dcm2niix
- Curates these NIFTIs to BIDS format using dcm2bids
- Exports these BIDS curates NIFTIs, along with all its metadata, back to the Flywheel project folder for completeness.
-
The absolute path to a comma separated list of the FlywheelSubjectLabel and FlywheelSessionLabel instances you want to run this on, saved as a csv file. An example csv will look something like this:
12345,tp01
23456,tp02
34566,tp03
-
The absolute path to a directory config file which defines where everything else lives, plus some additional options. See configs/README.md for more information on how to set this up.
-
You will also need a heuristic config file to pass to dcm2bids to get your BIDS curation going. See https://unfmontreal.github.io/Dcm2Bids/3.2.0/how-to/create-config-file/ for more information. The script tabulate_dcm2bids_helper.py can help you create this heuristic, if needed.
${path-to-fly_PMACS_fly}/wrap_export_convert_bids_upload.sh ${path-to-sub,ses.csv} ${path-to-directory-config}
TO DO: Add details about quarantine, motion calculation.
