Git clone BIDSConversion
git clone https://[email protected]/yeunkim/bidsconversion.git
DO NOT USE UNDERSCORES IN SUBJECT NAMES
- Make text file with full path to input directories for conversion
- Make configuration file (required for batch conversion):
bash BIDSConversion/makeconfigyml.sh ${txt file with input paths} ${OUTPUT_DIR} > batchconfig.yml
- Run batch converter:
dcm2niibatch batchconfig.yml > batchconv_log.txt
- You have to download and buil dcm2niibatch (https://github.com/rordenlab/dcm2niix)
- Rename and organize files:
BIDSConversion/bin/BIDS-organize.py {input_directory} {output_directory} -dataset {name} -subjID {subjID}
- 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 .
- 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 ##########