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

Conversion of clinical data #1388

Open
fyb99 opened this issue Nov 20, 2024 · 5 comments
Open

Conversion of clinical data #1388

fyb99 opened this issue Nov 20, 2024 · 5 comments

Comments

@fyb99
Copy link

fyb99 commented Nov 20, 2024

Hi, recently I am using clinica to convert the ADNI and AIBL datasets. After converting them, I find the tsv files that are used to store clinica data only contain limited columns. How could I modify the default settings and convert all the clinica data in the dataset?

@fyb99 fyb99 changed the title Coversion of clinical data Conversion of clinical data Nov 21, 2024
@NicolasGensollen
Copy link
Member

Hi @fyb99

Could you be a bit more specific ? Which TSV files exactly are you talking about ? What are the columns you were expecting ?

Thanks
Best

@fyb99
Copy link
Author

fyb99 commented Nov 21, 2024

Hi, for example, when I convert the clinica data for AIBL dataset, the obtained files are shown as below (paticipants.tsv and sessions.tsv). When I check the original clinica data, I find it indeed have much more attributes (i.e., columns in the table). During the converting, I guess the clinica only convert the essencial clinica which maybe are pre-defined in the code. How I can convert all the clinical data, where should I modify?

image
image

@NicolasGensollen
Copy link
Member

Hi @fyb99

Clinica defines the clinical data which should be converted for each converter and for each file (participants.tsv, sessions.tsv, and scans.tsv). There are basic mappings that were done for each file and each converter which map the BIDS name to the name in the raw data as well as where to find it. For AIBL, these files are in clinica.iotools.converters.specifications. For example:

https://github.com/aramis-lab/clinica/blob/dev/clinica/iotools/converters/specifications/participant.tsv

In the code, the function using these specifications to write the participants.tsv file of AIBL is here:

def create_participants_tsv_file(
input_path: Path,
clinical_specifications_folder: Path,
clinical_data_dir: Path,
delete_non_bids_info: bool = True,
) -> None:

If some data are not converted, you might want to add them to the specification files.

Hope this is helping a bit !

@fyb99
Copy link
Author

fyb99 commented Dec 3, 2024

Sorry for the late reply. I have check the python file. It clearly shows the converted dataframe and the used csv files. I am a little bit confused how to update the specifiction file if I want to converts some attributes from other clinical tables, such as the aibl_medhist_01-Jun-2018.csv. Do you mean what I should do is to add my desired attributes in the tsv file without modifying any code? What template should the addition step follow?

image
image

@AliceJoubert
Copy link
Contributor

Hello @fyb99, do you have an idea as to which tsv you want to modify and for what purpose (ex : getting info for one specific subject or for a specific subject at a specific session ?) ? Also, which version of clinica are you using ?

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