Hi everyone,
I’m currently working on converting ADNI data to BIDS format using Clinica, and I’ve encountered a couple of issues that I’m hoping to get some help with.
1. KeyError in Clinical Data: During the conversion process, I received the following error:
2. Warning Regarding Unsupported Images: Additionally, I received a warning message during the conversion:
I’m concerned about the implications of this warning on the overall conversion process. Can anyone provide guidance on how to handle unsupported image formats in Clinica?
Any help or insights would be greatly appreciated!
Thank you in advance!
Best Regards,
Shahzad Ali
---------------------
--
You received this message because you are subscribed to the Google Groups "Clinica" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clinica-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clinica-user/d5fd03f5-daeb-418c-b7ec-1d3ed00db548n%40googlegroups.com.
I have double checked the directory but there is only one file in the CLinicalData Directory. However, When I searched on my machine with the name "APOERES". There are two files retreived but with the name "participant.csv" as indicated in the screenshot (I guess one for ADNI, and one for ABIDE and OASIS).2024-10-18 19:55:12,883:DEBUG:PET_TAU conversion done.
2024-10-18 19:55:12,903:INFO:Creating modality agnostic files...
2024-10-18 19:55:12,924:INFO:Creating participants.tsv...
Traceback (most recent call last):
File "/Users/shahzadali/miniconda3/envs/clinicaEnv/bin/clinica", line 8, in <module>
sys.exit(main())
File "/Users/shahzadali/miniconda3/envs/clinicaEnv/lib/python3.10/site-packages/clinica/cmdline.py", line 113, in main
cli()
File "/Users/shahzadali/miniconda3/envs/clinicaEnv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/Users/shahzadali/miniconda3/envs/clinicaEnv/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/Users/shahzadali/miniconda3/envs/clinicaEnv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/shahzadali/miniconda3/envs/clinicaEnv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/shahzadali/miniconda3/envs/clinicaEnv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/shahzadali/miniconda3/envs/clinicaEnv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/Users/shahzadali/miniconda3/envs/clinicaEnv/lib/python3.10/site-packages/clinica/iotools/converters/adni_to_bids/adni_to_bids_cli.py", line 64, in cli
convert(
File "/Users/shahzadali/miniconda3/envs/clinicaEnv/lib/python3.10/site-packages/clinica/iotools/converters/adni_to_bids/adni_to_bids.py", line 47, in convert
adni_to_bids.convert_clinical_data(
File "/Users/shahzadali/miniconda3/envs/clinicaEnv/lib/python3.10/site-packages/clinica/iotools/converters/adni_to_bids/adni_to_bids.py", line 134, in convert_clinical_data
participants_df = create_participants_df(
File "/Users/shahzadali/miniconda3/envs/clinicaEnv/lib/python3.10/site-packages/clinica/iotools/bids_utils.py", line 400, in create_participants_df
file_to_read = load_clinical_csv(
File "/Users/shahzadali/miniconda3/envs/clinicaEnv/lib/python3.10/site-packages/clinica/iotools/converters/adni_to_bids/adni_utils.py", line 1115, in load_clinical_csv
raise IOError(
OSError: Expecting to find exactly one file in folder /Volumes/CrucialX6/ADNI_Clinica/Clinical_Data matching pattern APOERES(_\d{1,2}[A-Za-z]{3}\d{4})?.csv. 2 files were found instead :
[- P- o- s- i- x- P- a- t- h- (- '- /- V- o- l- u- m- e- s- /- C- r- u- c- i- a- l- X- 6- /- A- D- N- I- _- C- l- i- n- i- c- a- /- C- l- i- n- i- c- a- l- _- D- a- t- a- /- A- P- O- E- R- E- S- _- 1- 6- A- u- g- 2- 0- 2- 4- .- c- s- v- '- )- ,- - P- o- s- i- x- P- a- t- h- (- '- /- V- o- l- u- m- e- s- /- C- r- u- c- i- a- l- X- 6- /- A- D- N- I- _- C- l- i- n- i- c- a- /- C- l- i- n- i- c- a- l- _- D- a- t- a- /- .- _- A- P- O- E- R- E- S- _- 1- 6- A- u- g- 2- 0- 2- 4- .- c- s- v- '- )- ]
(clinicaEnv) shahzadali@Shahzads-MacBook-Pro ~ %
Genotype (Allele 1) |
apoe_gen1 |
Number: 2; 3; 4 |
|
APGEN1 |
APOERES.csv |
Genotype (Allele 2) |
apoe_gen2 |
Number: 2; 3; 4 |
|
APGEN2 |
APOERES.csv |
Shahzad Ali | PhD Researcher
Department of Pharmacy and Biotechnology,
Alma Mater Studiorum - Università di Bologna, Bologna, Italy
Life Science Computational Laboratory (LISCOMP),
IRCCS Ospedale Policlinico San Martino, Genova, Italy.
E: shahz...@unibo.it | shahza...@gmail.com
T: +39 348 2657 723
-----------------------------------------------------------------------
To view this discussion on the web visit https://groups.google.com/d/msgid/clinica-user/CAP_epFtDEsVnk0prXyGwfq%3DmpmN9Zr7YU6SGfnGEbjFh3zz19Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clinica-user/CAPaAoQSYZ9ZCwuOeaoHkD%2Bgor-kmPiSVn_iBsoSrjNxacRvUxA%40mail.gmail.com.
Shahzad Ali | PhD Researcher
Department of Pharmacy and Biotechnology,
Alma Mater Studiorum - Università di Bologna, Bologna, Italy
-----------------------------------------------------------------------
To view this discussion on the web visit https://groups.google.com/d/msgid/clinica-user/CAP_epFsj%2B_APxQXj-%3D07WyR8Xcv5AYRo9F6hOeG-h8OWPhn36g%40mail.gmail.com.