Detection of fs-subjects-dir in 20.0.2

I thought I should split questions up as I believe these are unrelated. I have pre-run Freesurfer and pointed fMRIprep to the directory, but the report still says “FreeSurfer reconstruction: Run by fMRIPrep”. However, in the log (attached), the section about reconall just says:

00310-19:11:22,508 nipype.workflow INFO:
	 [Node] Setting-up "fmriprep_wf.single_subject_CBPD0201_wf.anat_preproc_wf.surface_recon_wf.autorecon1" in "/tmp/9999965.1.all.q/fmriprep_wf/single_subject_CBPD0201_wf/anat_preproc_wf/surface_recon_wf/autorecon1".
200310-19:11:22,648 nipype.interface INFO:
	 recon-all complete : Not running
200310-19:11:22,648 nipype.workflow INFO:
	 [Node] Running "autorecon1" ("smriprep.interfaces.freesurfer.ReconAll"), a CommandLine Interface with command:
echo recon-all: nothing to do
200310-19:11:22,650 nipype.interface INFO:
	 recon-all complete : Not running
200310-19:11:23,527 nipype.workflow INFO:
	 [Node] Finished "fmriprep_wf.single_subject_CBPD0201_wf.anat_preproc_wf.surface_recon_wf.autorecon1".

I’m trying to figure out whether my pre-run Freesurfer was actually used and the report is wrong, or if it’s not finding the freesurfer_t1 directory. The timestamp on scripts/recon-all.done for this subject is earlier, making me think that the directory is being found but not documented.

My fmriprep command:

 /usr/local/miniconda/bin/fmriprep /mnt/ /mnt/derivatives/ participant --participant-label CBPD0162 --fs-license-file /home/utooley/license.txt --fs-subjects-dir /mnt/derivatives/freesurfer_t2 --bids-filter-file /mnt/derivatives/fmriprep/ses-02.json --output-spaces MNI152NLin6Asym T1w MNIPediatricAsym:res-1:cohort-2 --ignore slicetiming sbref -w /tmp/9999954.1.himem.q

log.txt (671.9 KB)

Probably @effigies will have a clearer structure in his mind to reply your question. If he confirms your hypothesis, then I guess we should add some log trace to make more clear when the --fs-subjects-dir kicks in.

My guess is that when we say “Run by fMRIPrep” we’re checking output/freesurfer, and that didn’t change when we added the --fs-subjects-dir option.

That makes sense, and is in line with what I’m seeing–I can confirm that when I check the working directories and open an issue if so.

MANAGED BY INCF