Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.46 KB

README.md

File metadata and controls

40 lines (33 loc) · 1.46 KB

BIDSconversion

Git clone BIDSConversion

git clone https://[email protected]/yeunkim/bidsconversion.git

DO NOT USE UNDERSCORES IN SUBJECT NAMES

  1. Make text file with full path to input directories for conversion
  2. Make configuration file (required for batch conversion):
  bash BIDSConversion/makeconfigyml.sh ${txt file with input paths} ${OUTPUT_DIR} > batchconfig.yml
  1. Run batch converter:
  dcm2niibatch batchconfig.yml > batchconv_log.txt
  1. Rename and organize files:
  BIDSConversion/bin/BIDS-organize.py {input_directory} {output_directory} -dataset {name} -subjID {subjID}
  1. Clone https://github.com/yeunkim/HCPPipelines.git and check out the psychopy2fsl branch:
  git clone https://github.com/yeunkim/HCPPipelines.git
  cd HCPPipelines
  git checkout psychopy2fsl
  docker build -t hcppipelines .
  1. Launch docker (subject level, not batch): i.e. docker run -ti --rm -v {local_input_dir}:{container_input_dir} -v {local_output_dir}:{containter_output_dir} $CMD {container_input_dir} {container_output_dir} -subjID {subjID} -dataset {study_name} --n_cpus {numofcores} --license_key {FreeSurfer_licensekey}

Example usage:

docker run -ti --rm -v ~/Projects/hcp/:/dataset -v ~/Projects/hcp_output/:/output hcppipelines /dataset /output -subjID k001 --n_cpus 4 -dataset DEPRESSION --license_key ##########