Open seaguldee opened 1 day ago
The approach that should work is:
--derivatives /scratch/06953/jes6785/fmriprep_asl_ref
I'm not sure what's going wrong, but I will try to debug this problem later today.
Thank you for the feedback and your help is very much appreciated as otherwise this program works fantastically.
When I do the above suggestion, it pulls in all the T1s from each session for that subject and then throws an error that it can't decide which one to use. Including a bids filter specifying session 02 or whatever doesn't seem to help (unless I am doing this wrong but seems pretty straight forward).
during handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/envs/aslprep/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/opt/conda/envs/aslprep/lib/python3.11/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/opt/conda/envs/aslprep/lib/python3.11/site-packages/aslprep/cli/workflow.py", line 95, in build_workflow
retval["workflow"] = init_aslprep_wf()
^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/aslprep/lib/python3.11/site-packages/aslprep/workflows/base.py", line 68, in init_aslprep_wf
single_subject_wf = init_single_subject_wf(subject_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/aslprep/lib/python3.11/site-packages/aslprep/workflows/base.py", line 273, in init_single_subject_wf
anat_fit_wf = init_anat_fit_wf(
^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/aslprep/lib/python3.11/site-packages/smriprep/workflows/anatomical.py", line 782, in init_anat_fit_wf
anat_validate.inputs.in_file = precomputed["t1w_preproc"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/aslprep/lib/python3.11/site-packages/nipype/interfaces/base/traits_extension.py", line 330, in validate
value = super(File, self).validate(objekt, name, value, return_pathlike=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/aslprep/lib/python3.11/site-packages/nipype/interfaces/base/traits_extension.py", line 131, in validate
self.error(objekt, name, str(value))
File "/opt/conda/envs/aslprep/lib/python3.11/site-packages/traits/base_trait_handler.py", line 74, in error
raise TraitError(
traits.trait_errors.TraitError: The 'in_file' trait of a _ValidateImageInputSpec instance must be a pathlike object or string representing an existing file, but a value of "['/scratch/06953/jes6785/fmriprep_asl_ref2/sub-lsa123/ses-01/anat/sub-lsa123_ses-01_rec-normDefaced_desc-preproc_T1w.nii.gz', '/scratch/06953/jes6785/fmriprep_asl_ref2/sub-lsa123/ses-02/anat/sub-lsa123_ses-02_rec-normDefaced_desc-preproc_T1w.nii.gz', '/scratch/06953/jes6785/fmriprep_asl_ref2/sub-lsa123/ses-03/anat/sub-lsa123_ses-03_rec-normDefaced_desc-preproc_T1w.nii.gz']" <class 'str'> was specified.
fMRIPrep doesn't support session-wise anatomical processing, so did you run fMRIPrep separately on each session?
EDIT: Also, can you share your BIDS filter file?
Summary
Run aslprep when pointing to fmriprep data output folder. Point aslprep to the subject and session specific folder of previously run fMRIprep. Anatomy data gets pulled into the asl output folder but I keep getting this error...
FileNotFoundError: No T1w images found for subject sub-lsa123 241030-16:03:32,84 cli ERROR: Preprocessing did not finish successfully. Errors occurred while processing data from participants: lsa123 (1). Check the HTML reports for details.
Additional details
I have 3 sessions per subject (for example)
Aslprep is forcing me to point specifically to the subject and session rather than the larger fmriprep output folder because when I try to point asl to the top of my fmriprep output folder it pulls all the T1w images in for each session and errors. This happens even when I try to use a bidsfilter file to specify the session.
This inputs all three session T1w images and errors
So currently, I am using bids filter file to process each session of asl data separately and pointing to the subject and session specific fmriprep output like this....
This pulls the output from fMRIprep anatomy folders into the aslprep/sub-lsa123/ses-02/anat/ folder but I am still getting an error that it can't find the T1w images??? I don't understand.
What were you trying to do?
run aslprep when pointing to previously run fmriprep anatomic data
What did you expect to happen?
pulls the anatomic data into the asl_prep output but then it sends me an error that it can't find the T1w image
What actually happened?
Reproducing the bug
Beginning of ASL output when running below script
Error
code to run aslprep