Closed tashrifbillah closed 3 years ago
The shell script must take input for however many series (e.g. 2 for AP, 2 for PA) and any additional arguments to be passed to HCP pipeline.
--echospacing=0.689998
For the HCP pipeline to be defined as a node to Luigi pipeline, the following parameters of the former should be opened to the latter:
Whether the mandatory or the optional ones are opened, they must be defined both in the task definition and in the configuration file.
In addition, the variables HCPPIPEDIR
, HCPPIPEDIR_Config
, and HCPPIPEDIR_Config
must be defined in the shell.
Remember that HCP pipeline launches Python from within Shell script. So if we write a new Luigi node, it will be:
Python-->Shell-->Python
subprocesses! It is probably okay but not tidy.
--path
and --subject
are used to construct output directory only:
The step script I wrote for RAs:
U01_HCP_Psychosis/data_processing/scripts/hcp_pnl_topup_8_25_2021.lsf
PR #51
Can the soft links be defined in HCPpipeline and a flag file (e.g. .hcpipe_complete
) be written so that downstream tasks can look for that flag file?
Edit:
Not a good idea because it would require removal of _acq-AP_
and computation of _dir-{}_
using shell script i.e. all of:
Manual approach
At PNL, data must be unringed before HCP pipeline. Unringing and organizing according to BIDS is conveniently done by Luigi pipeline. On the other hand, HCP pipeline has a lot of parameters. Given the latter, defining a node for HCP pipeline in Luigi pipeline is cumbersome. A compromise is to unring via Luigi pipeline and then feed all results to HCP pipeline:
unringing of PA
- dir-99 > workflows/ExecuteTask.py --task GibbsUn --bids-data-dir $HOME/HCP/rawdata -c 2001 -s 1 \ --dwi-template sub-*/ses-*/dwi/*acq-PA_dir-99_dwi.nii.gz - dir-107 > workflows/ExecuteTask.py --task GibbsUn --bids-data-dir $HOME/HCP/rawdata -c 2001 -s 1 \ --dwi-template sub-*/ses-*/dwi/*acq-PA_dir-107_dwi.nii.gzunringing of AP
- dir-99 > luigi-pnlpipe/workflows/ExecuteTask.py --task GibbsUn --bids-data-dir $HOME/HCP/rawdata -c 2001 -s 1 \ --dwi-template sub-*/ses-*/dwi/*acq-AP_dir-99_dwi.nii.gz - dir-107 > luigi-pnlpipe/workflows/ExecuteTask.py --task GibbsUn --bids-data-dir $HOME/HCP/rawdata -c 2001 -s 1 \ --dwi-template sub-*/ses-*/dwi/*acq-AP_dir-107_dwi.nii.gzHCP pipeline
Help message
``` Perform the steps of the HCP Diffusion Preprocessing Pipeline Usage: DiffPreprocPipeline.sh PARAMETER... PARAMETERs are: [ ] = optional; < > = user supplied value [--help] show usage information and exit with a non-zero return code [--version] show version information and exit with 0 as return code --path=