dwi_pre_tractography
dwi_pre_tractography#
- qx_utilities.bash.dwi_pre_tractography(sessionsfolder, sessions, scheduler)#
dwi_pre_tractography
This function runs the Pretractography Dense trajectory space generation.
Note that this is a very quick function to run (less than 5min) so no overwrite options exist.
Warning
It explicitly assumes the Human Connectome Project folder structure for preprocessing and completed diffusion and bedpostX processing.
DWI data needs to be in the following folder:
<study_folder>/<session>/hcp/<session>/T1w/Diffusion
BedpostX output data needs to be in the following folder:
<study_folder>/<case>/hcp/<case>/T1w/Diffusion.bedpostX
Parameters
- --sessionsfolder (str):
Path to study folder that contains sessions.
- --sessions (str):
Comma separated list of sessions to run.
- --scheduler (str):
A string for the cluster scheduler (e.g. LSF, PBS or SLURM) followed by relevant options e.g. for SLURM the string would look like this:
--scheduler='SLURM,jobname=<name_of_job>,time=<job_duration>,cpus-per-task=<cpu_number>,mem-per-cpu=<memory>,partition=<queue_to_send_job_to>'
Examples
qunex pretractography_dense \ --sessionsfolder='<path_to_study_sessions_folder>' \ --sessions='<comma_separarated_list_of_cases>' \ --scheduler='<name_of_scheduler_and_options>'
Direct usage:
$0 <StudyFolder> <Session> <MSMflag>
T1w and MNINonLinear folders are expected within <StudyFolder>/<Session>.
MSMflag=0 uses the default surfaces, MSMflag=1 uses the MSM surfaces defined in make_trajectory_space_mni.sh.