Skip to content

Commit

Permalink
Merge pull request #190 from pni-lab/datalad-input-for-cluster-script
Browse files Browse the repository at this point in the history
Make datalad datasets usable as input datasets for cluster script
  • Loading branch information
spisakt authored Jan 17, 2025
2 parents 04d0ca2 + ab6154a commit 1819a8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/cluster-pipeline-executor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ echo "*************************************************************"
echo "Starting on \$(hostname) at \$(date +"%T")"
echo "*************************************************************"
subject_dir="${TMP_PUMI}/${subject_id}/"
subject_dir="${TMP_PUMI}/${subject_id}"
subject_data_in="\${subject_dir}/input/" # Create temporary directory which stores BIDS data for one subject
rm -rf "\${subject_data_in}"
Expand All @@ -132,8 +132,8 @@ subject_tmp="\${subject_dir}/tmp/" # Create temporary directory which stores der
rm -rf "\${subject_tmp}"
mkdir -p "\${subject_tmp}"
cp -vr "${subject_folder}" "\${subject_data_in}"
cp -v "${dataset_description_path}" "\${subject_data_in}" # Every valid BIDS dataset must contain description (otherwise Nipype raises BIDSValidationError)
rsync -a --copy-links "${subject_folder}" "\${subject_data_in}"
rsync -a --copy-links "${dataset_description_path}" "\${subject_data_in}" # Every valid BIDS dataset must contain description (otherwise Nipype raises BIDSValidationError)
pumi_dir="\${subject_dir}/PUMI/"
rm -rf \${pumi_dir}
Expand Down

0 comments on commit 1819a8c

Please sign in to comment.