Framework of my master thesis on the effect of withdrawal on the white matter of alcoholic patients using dMRI data.
Project description
Install in local
If you want to download the lastest version directly from GitHub, you can close this repository
git clone https://github.com/mdausort/TFE22-540
TFE22-540
The different steps to follow in order to obtain our results :
-
The first thing to do when receiving the data is to anonymise it and convert it with MRIcron. A naming convention is adopted "sub#_E1" or "sub#_E2" representing respectively the first and the second diffusion scan for each patient. While "sub#_T1_E." stands for the anatomical scan.
-
Those files have to be downloaded on the clusters in alcoholic_study to be preprocessed by Elikopy:
- data_1 file containing all "_E1";
- data_2 file containing all "_E2";
- reverse_encoding (respectivelly in the two previous files) containing the so-called corrected diffusion scans with the same naming convention than for the diffusion scan. If the DICOM files are corrupted, you can use
reverse_corr.py
to obtain the right files and have a correct conversion in NIFTI; - T1 file containing all the anatomical scans (E1 and E2).
-
useful_fct.py
: Creation of the needed directories (already done for this study but have to be repeated if new patients → only thing to change is the patient_numbers variable). -
- 4.1) Submit only the Patient list job.
- 4.2) Submit only the Preprocessing job.
- 4.3) Submit only the Mask de matière blanche job.
- 4.4) Submit the Microstructural model one at the time.
- Rest of this file can be used but was not necessary for us.
-
perso_path.py
: Before doing the following steps, you have to adapt the parameter of the perso_path_string function, on_cluster. If you put it at False, you have to change also the perso_path variable. And finally, you can also adapt the patient_numbers variable. -
atlas_registration.py
: Now that all patients have been pre-processed, we can perform an analysis by region. Thus, all the regions used are accessible through a list built with theatlas_modif_name.py
file and called by other files. They are divided into "WM", "GM", "Lobes", "Subcortical" and "Cerebellum" areas. However, all those regions are not in the proper space so they need to be transformed to fit to each patient space and we usedatlas_registration.py
code in order to do that.
→ To lauch this, usejob_submission.py
first line of patientlist_wrapper command only. -
Corpus_callosum_reg.py
: This is the code corresponding to the creation of our CC. As we can see on the following image, the downloaded Corpus Callosum was not of good quality (Fig A.) so we drew it ourselves (thanks to MRIcron) as depicted in Fig B. and its 3D representation (Fig C.). However, you don't need the registration_CC_on_perfect function and the last part of this file (MASK FA). You will only need to resubmit the reg_CC_on_sub if you have new patients.
→ To lauch this, usejob_submission.py
thrid line of patientlist_wrapper command only.
opening_closing.py
: Just run this code to get a really smooth and good CC for each patient by applying some morphological operations. The upper part of the following image represents the drawn Corpus Callosum registered on one patient and the bottom part represents it after two morphological operations.
Corpus_callosum_division.py
: Code to obtained a subdivision of the CC.
→ To lauch this, usejob_submission.py
fourth line of patientlist_wrapper command only.
-
f0_f1_to_ftot.py
: Creation of some files for DIAMOND and MF models. -
FA_DMD.py
: Creation of weigthed version of the DTI metric for DIAMOND model.
→ To lauch this, usejob_submission.py
fifth line of patientlist_wrapper command only and after the sixth line only. -
moyenne_par_ROI.py
: Creation of different excels containing the different metric evolution.
→ To lauch this, usejob_submission.py
seventh line of patientlist_wrapper command only. -
clustering.py
: Creation of the clusters based on the method inplemented inDTI_kmeans_clustering.py
, then creation of excel called Result_ttest. The second codeclustering_v2.py
is another method of clustering. -
analyse_ttest.py
: Creation of all the plots concerning the analysis of each model separately (they are saved in the file Plots in Analyse). Then, creation of excel called Cluster_ROI used to do the coherence analysis. -
DTI_tissue_classification.py
: To analyse change in volume for WM, GM and CSF. -
volume_zones.py
: To analyse change in volume for certain areas of the brain. -
comportement.py
: To analyse the data coming from behavioral information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file alcoholic_tfe22540-0.1.6.tar.gz
.
File metadata
- Download URL: alcoholic_tfe22540-0.1.6.tar.gz
- Upload date:
- Size: 55.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 349b74467644221d7dbd852efba5ce47f6c058895a92c71d9be82a0152ffe45f |
|
MD5 | 9c8d1326b912d0c420e9bde9b9bac5df |
|
BLAKE2b-256 | 6bd790d31b7c278a150758e5402e2b2076e233d0d260125ba7932d8e9951f081 |