I am trying to use a custom atlas to calculate connectivity.
I have already resampled my atlas to the LPS+ and same FOV as described in the [documentation]
(Reconstruction — qsiprep version documentation).
However, I don’t understand why and how to zero-out the sform. Is it necessary, and how do I do it? (I have checked the Neurostar and github, but didn’t found a clear answer.)
Now, I am trying to replicate the qform and sform of the QSIPrep atlas template using below code. However, I am still not sure if it is correct.
The QSIPrep atals:
filename aal116MNI_lps_mni.nii.gz
Now, my QSIPrep procedure have been stuck at the step “tck_sift2” for 20h. The log shows: “230830-11:25:20,267 nipype.workflow INFO: [Node] Finished “tck_sift2”, elapsed time 476.22031s.”
As far as I know, after “tck_sift2”, QSIPrep should proceed to calculate the connectome. Could this issue be related to my atlas?
I found a crash file. The content in this file is :
Node: qsirecon_wf.sub-070_mrtrix_multishell_msmt_hsvs.sub_070_dir_PA_space_T1w_desc_preproc_recon_wf.qsirecon_anat_wf.get_atlases
Working directory: /scratch/qsirecon_wf/sub-070_mrtrix_multishell_msmt_hsvs/sub_070_dir_PA_space_T1w_desc_preproc_recon_wf/qsirecon_anat_wf/get_atlases
Traceback (most recent call last):
File “/usr/local/miniconda/lib/python3.8/site-packages/nipype/pipeline/plugins/multiproc.py”, line 344, in _send_procs_to_workers
self.procs[jobid].run(updatehash=updatehash)
File “/usr/local/miniconda/lib/python3.8/site-packages/nipype/pipeline/engine/nodes.py”, line 527, in run
result = self._run_interface(execute=True)
File “/usr/local/miniconda/lib/python3.8/site-packages/nipype/pipeline/engine/nodes.py”, line 645, in _run_interface
return self._run_command(execute)
File “/usr/local/miniconda/lib/python3.8/site-packages/nipype/pipeline/engine/nodes.py”, line 771, in _run_command
raise NodeExecutionError(msg)
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node get_atlases.
Traceback:
Traceback (most recent call last):
File “/usr/local/miniconda/lib/python3.8/site-packages/nipype/interfaces/base/core.py”, line 397, in run
runtime = self._run_interface(runtime)
File “/usr/local/miniconda/lib/python3.8/site-packages/qsiprep/interfaces/utils.py”, line 46, in _run_interface
atlas_configs = get_atlases(atlas_names)
File “/usr/local/miniconda/lib/python3.8/site-packages/qsiprep/utils/atlases.py”, line 26, in get_atlases
raise Exception(“Atlas %s not found in atlas_config.json” % atlas_name)
Exception: Atlas schaefer200 not found in atlas_config.json
Maybe I know the reason for this. To aceelated the speed of reconstruction, I remove the default atlas from the atlas_config.json. But the QSIPrep read the atlas name from the pipeline json file. It still only contains the default atlas but not my custom atlas.
So, to fulfill my requirement, I also need change the pipeline json file as the input of QSIPrep command?