From 01f9061c7157b5aee1880b76d31b2fdb9d0d0d04 Mon Sep 17 00:00:00 2001 From: AliceJoubert <158147135+AliceJoubert@users.noreply.github.com> Date: Mon, 9 Sep 2024 14:58:16 +0200 Subject: [PATCH] [DOC] Refactor UKB-To-BIDS documentation page (#1284) * First proposition for ukb conv * WIP 2 * Last changes * Changes upon suggestions * Add copy * Fix link --- docs/Converters/IXItoBIDS.md | 20 +++---- docs/Converters/UKBtoBIDS.md | 97 +++++++++++++++++++++------------- docs/snippets/abbreviations.md | 8 +++ mkdocs.yml | 3 ++ 4 files changed, 81 insertions(+), 47 deletions(-) diff --git a/docs/Converters/IXItoBIDS.md b/docs/Converters/IXItoBIDS.md index b381739a4..2c8b94ce5 100644 --- a/docs/Converters/IXItoBIDS.md +++ b/docs/Converters/IXItoBIDS.md @@ -1,14 +1,14 @@ # `ixi-to-bids` – Conversion of Information eXtraction from Images (IXI) to BIDS format ??? quote "Dataset Description" The [Information eXtraction from Images](https://brain-development.org/ixi-dataset/) - is a project which issued a dataset of nearly 600 images from healthy subjects. The MR acquisition - protocol includes T1,T2, PD weighted, MRA and diffusion-weighted images. + is a project which issued a dataset of nearly 600 nifti images from healthy subjects. + The MR acquisition protocol includes T1,T2, PD weighted, MRA and diffusion-weighted images. Three hospitals in London were involved in data collection. ## Downloading the data The IXI dataset can be downloaded freely from the [IXI webpage](https://brain-development.org/ixi-dataset/). !!! danger "Organising data with the aim of using the converter" - The folders and files downloaded from the website should be left as they are (name, inner organisation...) but can be + The folders and files downloaded from the website should be left **as they are** (name, inner organisation...) but can be placed where the user wants them. ## Using the converter @@ -24,13 +24,13 @@ DTI ; T1 ; T2 ; PD ; angiography. If you [installed clinica](../Installation.md#install-clinica), this converter needs no further dependencies. ### Understanding the command line -```bash -clinica convert ixi-to-bids DATASET_DIRECTORY BIDS_DIRECTORY CLINICAL_DATA_DIRECTORY +```{ .bash .copy } +clinica convert ixi-to-bids DATASET_DIRECTORY BIDS_DIRECTORY CLINICAL_DATA_DIRECTORY [OPTIONS] ``` where : - `DATASET_DIRECTORY` is the path to the raw IXI dataset directory, which should contain all the IXI folders previously downloaded : - ``` + ```text title="DATASET_DIRECTORY Organisation" DATASET_DIRECTORY ├── IXI-T1 │ ├── IXI002-Guys-0828-T1.nii.gz @@ -43,10 +43,10 @@ where : - `BIDS_DIRECTORY` is the path to the BIDS folder to be created - `CLINICAL_DATA_DIRECTORY` is the path to the folder where the clinical data of the IXI dataset is stored. -``` -CLINICAL_DATA_DIRECTORY -├── IXI.xls -... +```text title="CLINICAL_DATA_DIRECTORY Organisation" + CLINICAL_DATA_DIRECTORY + ├── IXI.xls + ... ``` --8<-- "snippets/converters_options.md" diff --git a/docs/Converters/UKBtoBIDS.md b/docs/Converters/UKBtoBIDS.md index e658fe5cc..66105401a 100644 --- a/docs/Converters/UKBtoBIDS.md +++ b/docs/Converters/UKBtoBIDS.md @@ -1,70 +1,89 @@ # `ukb-to-bids` – Conversion of the UK Biobank (UKB) to BIDS -!!! quote "Description reproduced from the [UK Biobank webpage](https://www.ukbiobank.ac.uk/)" +??? quote "Description reproduced from the [UK Biobank webpage](https://www.ukbiobank.ac.uk/)" UK Biobank is a large-scale biomedical database and research resource, containing in-depth genetic and health information from half a million UK participants. The database is regularly augmented with additional data and is globally accessible to approved researchers undertaking vital research into the most common and life-threatening diseases. It is a major contributor to the advancement of modern medicine it and has led to the discovery of several scientific advances and numerous treatments to improve human health. -## Dependencies +## Downloading the Data -If you installed the core of Clinica, this converter needs the `dcm2niix` package. +The UKB to BIDS converter assumes that the user has already got access to the data and has downloaded both imaging and clinical data locally. -## Downloading UK Biobank +!!! danger "Organising data with the aim of using the converter" + Be careful, the file {==clinical_data.csv==} needs to contain the following information about the subject : + *sex, year of birth, age at recruitment, age at sessions*. + There are two columns as there are two imaging sessions. + The names of the columns should be kept as they are when downloaded using `ukbconv` using options `csv`. -The UK Biobank to BIDS converter assumes that the user has already applied to get access to the data and that the imaging and clinical data have already been downloaded locally. -The imaging data can be downloaded and extracted using [this tutorial](https://biobank.ctsu.ox.ac.uk/~bbdatan/Accessing_UKB_data_v2.3.pdf). The clinical data can be extracted using the information from [this repository](https://github.com/kenhanscombe/ukbtools). -Be careful, the file `clinical_data.csv` needs to contain the following information about the subject: sex, year of birth, age at recruitment, age at sessions (there are two columns as there are two imaging sessions). The names of the columns should be kept as they are when downloaded using `ukbconv` using options `csv`. +## Using the converter +### Dependencies -## Supported modalities +If you [installed the core of Clinica](../Installation.md#install-clinica), this converter needs the [dcm2niix](../Third-party.md#converters) package. -Please note that this converter processes the following modalities : -- T1W (nifti) -- T2 Flair (nifti) -- DWI (nifti) -- SWI (nifti) -- tfMRI (dicom) -- rsfMRI (dicom) +### Supported modalities -!!! Chosen files - Whenever is possible, the converter uses the rawest files found. This decision allows the user to choose the processing needed. When available the converter get the associated json. -| Modality | Chosen image(s) | Justification | -| :----------:|:---------------:|:-------:| -| T1W | T1.nii.gz | Defaced and cropped so there is no neck. The rawest image would be the simply defaced one, but brain studies usually are not interested in the region of the neck. No other corrections are included. | -| T2 Flair | T2_FLAIR.nii.gz | Defaced and cropped so there is no neck. The reasons for choosing this image are the same as for T1. | -| DWI | AP/PAnii.gz | It is the rawest images we can get. bvals and bvec are also available. | -| rsfMRI | rsfMRI.dcm | Since the nii.gz version doesn't always include a json and in consideration for it's usage, we convert the dicom. | -| tfMRI | tfMRI.dcm | Same as rsfMRI.| -| SWI | SWI.nii.gz | Combined coil version. We would get a rawer version, but `dcm2niix` has trouble handling the slices direction, so it is simpler to go with this version. In addition, SWI modality is not fully integrated to BIDS specification and some changes may be coming. A simple version is available in the current version of this converter. | - +