PennLINC / xcpEngine

Official public repository for the XCP Engine. This tool is deprecated in favor of XCP-D and ASLPrep.
MIT License
66 stars 42 forks source link

Path for design file (docker WSL2)? #440

Closed ykjymkoko closed 3 years ago

ykjymkoko commented 3 years ago

Dear all

I wonder how the "design=" variable in the section of # ANALYSIS VARIABLES in the design file be set if I using the docker in Windows Subsystem for Linux 2 (WSL2)?

Based on the code generated by xcpengine-docker, I tried the following code:

docker run --rm -it -v E:\XCP_test\fc-36p.dsn:/design/design.dsn -v E:\XCP_test\func_cohort.csv:/cohort/cohort.csv -v E:\XCP_test\xcp_output:/xcpOutput -v E:\XCP_test:/relative pennbbl/xcpengine:latest -d /design/design.dsn -c /cohort/cohort.csv -o /xcpOutput -m s -r /relative

I tried "/relative/fc-36p.dsn" or "/design/design.dsn" but error messages as "No such file or directorycaliser" or "No such file or directoryrintx" for the design file occurred.

After searching the previous threads, I supposed such might relate to the privilege of reading and writing. Actually, I ever had a similar problem with the cohort file when using the xcpengine-docker which mounts the .csv file with "ro". Currently, the cohort and design files were in the same directory, and the cohort file works fairly with the img as fmriprep/sub-1/func/sub-1_task-rest_space-T1w_desc-preproc_bold.nii.gz to indicate the file in E:\XCP_test\fmriprep.

Accordingly, I supposed the problem occurred at the settings of the "design=" variable in the section of # ANALYSIS VARIABLES in the design file.

Thanks a lot!

ykjymkoko commented 3 years ago

Dear all

update for the problem:

It seems ok when I modified the codes and used "design=/design/fc-36p.dsn" in the design file.

docker run --rm -it -v E:\002_DAT-FC-SCH\004_XCP\fc-36p.dsn:/design/fc-36p.dsn -v E:\002_DAT-FC-SCH\004_XCP\func_cohort.csv:/cohort/cohort.csv -v E:\002_DAT-FC-SCH\004_XCP\xcp_output:/xcpOutput -v E:\002_DAT-FC-SCH\004_XCP\xcp_work:/work -v E:\002_DAT-FC-SCH\002_analysis:/relative pennbbl/xcpengine:latest -d /design/fc-36p.dsn -c /cohort/cohort.csv -i /work -o /xcpOutput -m s
-r /relative