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

Requirement for 'diagnosis' Column in Generalization Testing with ClinicaDL #481

Open
mtmmu88 opened this issue Sep 25, 2023 · 1 comment

Comments

@mtmmu88
Copy link

mtmmu88 commented Sep 25, 2023

Dear ClinicaDL Team,

I have encountered some issues while using ClinicaDL for neuroimaging analysis. Specifically, I am interested in using your tool to test the generalization capability of a pre-trained model. The issue arises when running the clinicadl predict command, which seems to require a TSV file containing a 'diagnosis' column.

In the context of generalization testing, diagnostic information is often either unavailable or irrelevant. Therefore, I am wondering if there is a way to perform generalization tests without providing a 'diagnosis' column.

If such a feature or option does not currently exist, I strongly suggest adding it as a new feature or option. This would greatly enhance the flexibility of ClinicaDL in practical applications.

Thank you very much for your time and consideration.

Best regards

@mtmmu88
Copy link
Author

mtmmu88 commented Sep 25, 2023

clinicadl predict /root/autodl-tmp/map 'test-Oasis3' --participants_tsv /root/autodl-tmp/test/data.tsv --caps_directory /root/autodl-tmp/test/CAPS_example
Traceback (most recent call last):
File "/root/miniconda3/envs/ClinicaDL/bin/clinicadl", line 8, in
sys.exit(cli())
File "/root/miniconda3/envs/ClinicaDL/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/root/miniconda3/envs/ClinicaDL/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/root/miniconda3/envs/ClinicaDL/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/root/miniconda3/envs/ClinicaDL/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/root/miniconda3/envs/ClinicaDL/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/root/miniconda3/envs/ClinicaDL/lib/python3.10/site-packages/clinicadl/predict/predict_cli.py", line 120, in cli
predict(
File "/root/miniconda3/envs/ClinicaDL/lib/python3.10/site-packages/clinicadl/predict/predict.py", line 64, in predict
maps_manager.predict(
File "/root/miniconda3/envs/ClinicaDL/lib/python3.10/site-packages/clinicadl/utils/maps_manager/maps_manager.py", line 240, in predict
group_df = load_data_test(
File "/root/miniconda3/envs/ClinicaDL/lib/python3.10/site-packages/clinicadl/utils/caps_dataset/data.py", line 1141, in load_data_test
test_df = load_data_test_single(test_path, diagnoses_list, baseline=baseline)
File "/root/miniconda3/envs/ClinicaDL/lib/python3.10/site-packages/clinicadl/utils/caps_dataset/data.py", line 1151, in load_data_test_single
raise ClinicaDLTSVError(
clinicadl.utils.exceptions.ClinicaDLTSVError: 'diagnosis' column must be present in TSV file /root/autodl-tmp/test/data.tsv.
this is my bug

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

1 participant