Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-age-sex-csv #4

Closed
Luoyu-Wang opened this issue Sep 24, 2022 · 4 comments
Closed

-age-sex-csv #4

Luoyu-Wang opened this issue Sep 24, 2022 · 4 comments

Comments

@Luoyu-Wang
Copy link

Our use of the parameter -age-sex-csv has been always failing and I don‘t know if there is something wrong with the csv file:
/T1/S0004.nii,66,Male
/T1/S0005.nii,58,Female
/T1/S0006.nii,69,Female
/T1/S0007.nii,75,Female
/T1/S0010.nii,69,Female
/T1/S0012.nii,64,Male
/T1/S0016.nii,79,Female
/T1/S0017.nii,60,Female

@BorisMansencal
Copy link
Collaborator

Could you try without the leading "/" in the paths ?

T1/S0004.nii,66,Male
T1/S0005.nii,58,Female
T1/S0006.nii,69,Female
T1/S0007.nii,75,Female
T1/S0010.nii,69,Female
T1/S0012.nii,64,Male
T1/S0016.nii,79,Female
T1/S0017.nii,60,Female

@Luoyu-Wang
Copy link
Author

Luoyu-Wang commented Sep 24, 2022

Thank you for your reply but I found that there are still errors:
cmd= python3 -u make_reports.py -root-dir /data -global-csv /out/global_volumetry_info.csv -age-sex-csv /out/agesex1.csv "/tmp/t1_0.nii.gz" "/data/S0004.nii"
python3 -u make_reports.py -root-dir /data -global-csv /out/global_volumetry_info.csv -age-sex-csv /out/agesex1.csv "/tmp/t1_0.nii.gz" "/data/S0004.nii"
ERROR: column filename not found in filename: /out/agesex1.csv
age=UNKNOWN sex=UNKNOWN

@BorisMansencal
Copy link
Collaborator

Yes, I forgot to say that the first row of the csv must have the columns names.
(I will update the README accordingly)
For example:

#filename,age,sex
T1/S0004.nii,66,Male
T1/S0005.nii,58,Female
T1/S0006.nii,69,Female
T1/S0007.nii,75,Female
T1/S0010.nii,69,Female
T1/S0012.nii,64,Male
T1/S0016.nii,79,Female
T1/S0017.nii,60,Female

If it still does not work, could you tell what your exact command line is ?
( If you call the docker with "-v /some_path/T1:/data", you do not have to put "T1/" in the filenames in the csv.
If you have "T1/" in the filenames in the csv, it means that "T1" is a subdirectory of the directory mounted as /data, and that you are using "-recursive" on the command line)

@Luoyu-Wang
Copy link
Author

Thank you and the issue has been solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants