- Add flag to grab
--only-new
given a DSST ABCD fast-trackscans.tsv
file. - Make "special" inclusions and exclusions, like "Replaced" or ftq_complete==1, easier to do.
- Add a flag to optionally output one
abcd_fastqc01.txt
file per BIDS subject+session pairing instead of just one big file. - Add additonal option to save out logs to a specific file.
- Add levels of log messages of warning/caution for the user to know what's going on with datatypes specifically.
- Fix the event file copies to the
sourcedata
directory to be numbered correctly among many subjects. - Make the script take as input either a single
abcd_fastqc01.txt
file, or a directory of them (to prepare for swarm submission). - Add a flag to optionally run bids-validator on the output BIDS directory.
- Add a flag to optionally run bids-validator on the output BIDS directory.
- Improve this
README.md
with a walkthrough of preparing the two NDA packages necessary for using this.
- Test
pipeline.py
on a mixed set of sessions, including some same-participant-different-sessions. - Test
pipeline.py
stops before executing the convert workflow if BIDS is not provided in the--preserve
option. - Test
pipeline.py
stops before executing the unpack workflow if both BIDS and TGZ are not provided in the--preserve
option.
Each numbered part of this list is one tool, which can be used independently. I will build a common usage pipeline out of it.
fasttrack2s3.py
: Filter down theabcd_fastqc01.txt
file based on user selection of data types, participants, and sessions, then output ans3_links.txt
.- NDA Tools'
downloadcmd
on all the links ins3_links.txt
, output to a single directory. Or maybe just usedownloadcmd
as-is? - ABCD DICOM TGZ unpack.
- Dcm2Bids (v3) across all available unpacked DICOMs.
- Grab unpacked event timing files and put them in the BIDS
sourcedata
directory. - (stretch goal) Ingest BIDS sidecar metadata from the DAIRC present in the unpacked TGZs
- (optional) Automated sidecar JSON corrections for "EffectiveEchoSpacing".
- (optional) Use bids-validator to log the validity of output data.
- Perhaps add arguments to a top-level wrapper,
fasttrack2bids.py
, to allow for controlling the overall workflow with some sane defaults and running options.
Thanks to DCAN-Labs/abcd-dicom2bids
for:
- Inspiration of the dcm2bids version 3 configuration JSON
- General order of operations for the NDA's fast track conversion to BIDS
- Most of the options in
bids_corrections.py