Open Brainarea opened 5 years ago
hi @orchid666
did you specify -r
command?
https://xcpengine.readthedocs.io/containers/index.html#using-xcpengine-with-singularity
yes i did, here is my docker command:
docker run --rm -it \
-v /Volumes/MISIU/Users/rnenert/Data/Epilepsy_CBD/fmriprep/preprocessed_nofs/xcpengine/cohort.csv:/cohort/cohort.csv \
-v /Volumes/MISIU/Users/rnenert/Data/Epilepsy_CBD/fmriprep/preprocessed_nofs/xcpengine/36_scrub:/xcpOutput \
-v /Volumes/MISIU/Users/rnenert/Data/Epilepsy_CBD/fmriprep/preprocessed_nofs/fmriprep:/relative \
-v /Volumes/MISIU/Users/rnenert/Data/Epilepsy_CBD/fmriprep/preprocessed_nofs/xcpengine/temp:/scratch \
-v /Volumes/Orchid/Rodolphe/Toolbox/xcpEngine_designs:/designs \
pennbbl/xcpengine:latest \
-d /designs/fc-36p_scrub.dsn \
-c /cohort/cohort.csv \
-o /xcpOutput -m s \
-r /relative \
-i /scratch
Ok my bad i Identified the issue, my new run has a session number, which i forgot to include in the cohort file. Actually it still gives me the same error:
Current processing step:
getting data from fmriprep directory
····································································
· checking refvolume and structural orientation
· generate mask and referenceVolumeBrain
Image Exception : #22 :: ERROR: Could not open image sub-005_ses-01_structmask
terminate called after throwing an instance of 'RBD_COMMON::BaseException'
/xcpEngine/core/functions/exec_fsl: line 1: 805 Aborted ${FSLDIR}/bin/"${@}"
Cannot open volume /xcpOutput/sub-005/ses-01/prestats/sub-005_ses-01_mask for reading!
· generate new /xcpOutput/sub-005/ses-01/sub-005_ses-01_spaces.json with spaceMetadata
Cannot open volume /xcpOutput/sub-005/ses-01/prestats/sub-005_ses-01_mask for reading!
source space map '/xcpOutput/sub-005/ses-01/prestats/sub-005_ses-01_struct.nii.gz' is not an image
· Quality assessment
Error in readNifti(mask1path) :
Failed to read image from path /xcpOutput/sub-005/ses-01/prestats/sub-005_ses-01_segmentation.nii.gz
Calls: readNifti -> .Call
In addition: Warning message:
In readNifti(mask1path) :
nifti_image_read: failed to find header file for '/xcpOutput/sub-005/ses-01/prestats/sub-005_ses-01_segmentation.nii.gz'
Execution halted
Does xcpengine expect to have the session number in the anat files? Because anat files created by fmriprep do not have the session number.
No, session number is not compulsory
helps me check if you have the following in your fmriprep anat output
I appreciate the quick reply. Yes i do have those files, joining a screenshot: https://ibb.co/ryGR7qG
Thanks @orchid666 We just started testing the xcpEngine with multiple templates. You have more than 1 template in your output, MNI152Ln6 and MNI152Ln2009c can you remove MNI152Ln6 and try again. Multiple MNI templates is the problem.
Indeed , i removed the files and it seems to be working now. The MNI152Ln6 was automatically added because i used ICA-AROMA with fmriprep as specified in their doc: "ICA-AROMA denoising is performed in MNI152NLin6Asym space, which is automatically added to the list of --output-spaces if it was not already requested by the user. "
That could be a problem for people who want to use the Aroma denoising from xcpengine.
thank you! , we will update it
Hello, I actually encountered a new error, later in the processing. Is it possible that the MNI152Ln6 affected another thing?
Current processing step:
Converting BOLD timeseries to confound residuals
····································································
· [Computing confound correlations]
· [Executing detrend]
· [A major error has occurred.]
· [The processing stream will now abort.]
· [Preparing diagnostics]
····································································
Module Workflow Map
····································································
· START
· @0.1
· @7
· @7.2
· @7.3
· @7.5a
· @7.5b
· @7.6
· @2
· @2.2
· @2.3
· @2.4.1
· @2.5
· @2.6
· @2.8
· @2.12a
· @2.12b
· @2.12c
· @3
· @3.1
· @3.2
· @4
· @4.2
· @4.3
· @4.5
· @4.6
· ERROR
····································································
····································································
· [An error occurred while processing module regress.]
· [The error was detected at signpost @4.6.]
· [The most recent command logged was]
· [3dTproject -input /scratch/sub-005_ses-01-regress-651608821~TEMP~_DMT_TMP.nii.gz -ort /xcpOutput/sub-005/ses-01/regress/sub-005_ses-01_confmat.1D -prefix /scratch/sub-005_ses-01-regress-651608821~TEMP~_DMT_TMP_REG.nii.gz]
· [For additional details, view the processing log. For improved]
· [diagnostics, increment verbosity using the -t option.]
· []
· [Processing failed to produce required output: /scratch/sub-005_ses-01-regress-651608821~TEMP~_DMT_TMP_REG.nii.gz]
· []
· [stream abort]
····································································
No, it is MNI152Ln6. More volumes is flagged . You need to check the threshold https://github.com/PennBBL/xcpEngine/blob/master/designs/fc-36p_scrub.dsn#L73 https://xcpengine.readthedocs.io/modules/regress.html#temporal-censoring
Describe the bug Re-preprocess data in a different folder with newest xcpengine docker image, resulted in multiple errors.
Cohort file Paste cohort file between the triple backticks
Design File Paste your entire design (
.dsn
) file between the triple backticksError message Paste your error message between the backticks
Runtime Information Docker
Additional context Add any other context about the problem here.