Thanks. But what I can’t figure out is why it’s changing the explicit path which I feed in, i.e. when I feed in /home/… as the bids path in the call to fmriprep, it immediately reports the bids directory as /gs/gsfs0/…
I’ve reached out to my IT folks, hopefully they can give me some insight.
The more important question is – what is this messing up with respect to my outputs. Fmriprep continues and give me all of the expected output, how do I diagnose what this step is failing to do correctly?
Here is the full crash log:
Node: fmriprep_wf.single_subject_006_wf.anat_preproc_wf.anat_derivatives_wf.raw_ sources
Working directory: /gs/gsfs0/users/mrrc-all/PROJECTS/P65-ALL/work/fmriprep_wf/si ngle_subject_006_wf/anat_preproc_wf/anat_derivatives_wf/raw_sources
Node inputs:
bids_root = /gs/gsfs0/users/mrrc-all/PROJECTS/P65-ALL/BIDS/NIFTI
function_str = def _bids_relative(in_files, bids_root):
from pathlib import Path
if not isinstance(in_files, (list, tuple)):
in_files = [in_files]
in_files = [str(Path§.relative_to(bids_root)) for p in in_files]
return in_files
in_files = /home/mrrc-all/PROJECTS/P65-ALL/BIDS/NIFTI/sub-006/ses-1/anat/sub-006 _ses-1_acq-3D_T1w.nii.gz
Traceback (most recent call last):
File “/gs/gsfs0/users/mwagshul/.local/lib/python3.7/site-packages/nipype/pipel ine/plugins/multiproc.py”, line 67, in run_node
result[“result”] = node.run(updatehash=updatehash)
File “/gs/gsfs0/users/mwagshul/.local/lib/python3.7/site-packages/nipype/pipel ine/engine/nodes.py”, line 516, in run
result = self._run_interface(execute=True)
File “/gs/gsfs0/users/mwagshul/.local/lib/python3.7/site-packages/nipype/pipel ine/engine/nodes.py”, line 635, in _run_interface
return self._run_command(execute)
File “/gs/gsfs0/users/mwagshul/.local/lib/python3.7/site-packages/nipype/pipel ine/engine/nodes.py”, line 741, in _run_command
result = self._interface.run(cwd=outdir)
File “/gs/gsfs0/users/mwagshul/.local/lib/python3.7/site-packages/nipype/inter faces/base/core.py”, line 434, in run
runtime = self._run_interface(runtime)
File “/gs/gsfs0/users/mwagshul/.local/lib/python3.7/site-packages/nipype/inter faces/utility/wrappers.py”, line 142, in _run_interface
out = function_handle(**args)
File “”, line 5, in _bids_relative
File “”, line 5, in
File “/gs/gsfs0/users/mwagshul/.conda/envs/my-conda-env/lib/python3.7/pathlib. py”, line 895, in relative_to
.format(str(self), str(formatted)))
ValueError: ‘/home/mrrc-all/PROJECTS/P65-ALL/BIDS/NIFTI/sub-006/ses-1/anat/sub-0 06_ses-1_acq-3D_T1w.nii.gz’ does not start with ‘/gs/gsfs0/users/mrrc-all/PROJECTS/P65-ALL/BIDS/NIFTI’