Skip to content

A set of utilities to communicate between the UPenn PMACS LPC and Flywheel. Moves reaped MRI DICOMs from Flywheel to the PMACS LPC, converts these dicoms to BIDS formatted NIFTIs on the LPC, and moves the NIFTIs back to Flywheel (fly -> PMACS -> fly, geddit?) 🦅

Notifications You must be signed in to change notification settings

ftdc-picsl/fly_PMACS_fly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fly PMACS fly

What is this repository for?

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:

  1. Downloads the DICOMs from Flywheel to the PMACS LPC using the Flywheel SDK.
  2. Converts these DICOMs to NIFTI using dcm2niix
  3. Curates these NIFTIs to BIDS format using dcm2bids
  4. Exports these BIDS curates NIFTIs, along with all its metadata, back to the Flywheel project folder for completeness.

---------------------------------------------------------

Getting started

What do you need to get this going:

  1. 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

  2. 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.

  3. 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.

To run the entire pipeline once you have these components:

${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.

About

A set of utilities to communicate between the UPenn PMACS LPC and Flywheel. Moves reaped MRI DICOMs from Flywheel to the PMACS LPC, converts these dicoms to BIDS formatted NIFTIs on the LPC, and moves the NIFTIs back to Flywheel (fly -> PMACS -> fly, geddit?) 🦅

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •