You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fixed an issue in the backward registration process (from fsaverage_sym surface to native T1 volume) that caused a slight spatial shift (~a few millimeters) in lesion predictions on the right hemisphere.
6
+
- Removed the requirement to specify scanner strength in demographics_file.csv for harmonisation. This resolves errors when scanner strength wasn’t 3T
7
+
- Fixed the standalone script for merging predictions with the T1 volume, which previously failed when handling predictions with different values for salient vs. non-salient vertices.
8
+
- Instructions for use of Docker Desktop ; Instructions to join the mailing list; Clarification on FAQ
9
+
- Minor code cleanup for improved stability and maintainability
10
+
11
+
### Notes
12
+
- Require to download the test data again
13
+
- Docker image `MELDproject/meld_graph:v2.2.2` is available.
Copy file name to clipboardExpand all lines: README.md
+22-8Lines changed: 22 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,13 @@ Graph based FCD lesion segmentation for the [MELD project](https://meldproject.g
10
10
11
11
This package is a pipeline to segment FCD-lesions from MRI scans.
12
12
13
+
**<spanstyle="color: red;">SIGN UP TO THE MELD GRAPH MAILING LIST</span>**:
14
+
We request that all MELD Graph users sign up to the mailing list. If you are using MELD Graph, please send an email to `meld.study@gmail.com` with the subject 'Request to be added to the MELD Graph mailing list' and provide use with your name and institute. This will ensure that we can update you about bug fixs and new releases.
15
+
16
+
**<spanstyle="color: red;">EXISTING USERS: PLEASE UPDATE TO VERSION V2.2.2</span>**:
17
+
We have released MELD Graph V2.2.2 which fixes a couple of issues found by users. For more information about the release please see [MELD Graph V2.2.2](https://github.com/MELDProject/meld_graph/releases/tag/v2.2.2). To update your code please follow the guidelines [Updating MELD Graph to V2.2.2](https://meld-graph.readthedocs.io/en/latest/FAQs.html#Updating-MELD-Graph-to-V2.2.2) from our FAQ.
*Code Authors : Mathilde Ripart, Hannah Spitzer, Sophie Adler, Konrad Wagstyl*
@@ -31,7 +38,7 @@ This package also contains code for training and evaluating graph-based U-net le
31
38
In addition to lesion segmentation, the model also contain auxiliary distance regression and hemisphere classification losses.
32
39
33
40
For more information on how the algorithm was developed and expected performance - check our papers:
34
-
- Ripart et al., under revisions at JAMA Neurology - Detection of epileptogenic focal cortical dysplasia using graph neural networks: a MELD study
41
+
-[Ripart et al.,2025 JAMA Neurology - Detection of epileptogenic focal cortical dysplasia using graph neural networks: a MELD study](https://jamanetwork.com/journals/jamaneurology/fullarticle/2830410)
35
42
-[Spitzer, Ripart et al., 2022 Brain - the original MELD FCD pipeline and dataset](https://academic.oup.com/brain/advance-article/doi/10.1093/brain/awac224/6659752)
36
43
-[Spitzer et al., 2023 MICCAI - the updated graph-based model architecture](https://arxiv.org/abs/2306.01375)
37
44
@@ -44,23 +51,26 @@ The MELD surface-based graph FCD detection algorithm is intended for research pu
44
51
45
52
### Installations available
46
53
You can install and use the MELD FCD prediction pipeline with :
47
-
-[**docker container**](https://meld-graph.readthedocs.io/en/latest/install_docker.html) recommended for easy installation of the pipeline as all the prerequisite packages are already embedded into the container. Note: Dockers are not working on High Performance Computing (HCP) systems ; Not tested on Windows
54
+
-[**docker container**](https://meld-graph.readthedocs.io/en/latest/install_docker.html) recommended for easy installation of the pipeline as all the prerequisite packages are already embedded into the container. Note: Dockers are not working on High Performance Computing (HCP) systems
48
55
-[**native installation**](https://meld-graph.readthedocs.io/en/latest/install_native.html) recommended for Mac and users that want to modify the code and/or use the code to train/test their own classifier.
49
-
-[**singularity container (Not tested yet)**](https://meld-graph.readthedocs.io/en/latest/install_singularity.html) enables to run a container on High Performance Computing (HCP) systems.
56
+
-[**singularity container**](https://meld-graph.readthedocs.io/en/latest/install_singularity.html) enables to run a container on High Performance Computing (HCP) systems.
57
+
58
+
**IMPORTANT NOTE**: The installations listed above are not supported on Virtual Machines. Please install MELD Graph on full Linux, Windows or MAC computers
50
59
51
60
**YouTube tutorials available for the [docker installation](https://youtu.be/oduOe6NDXLA) and [native installation](https://youtu.be/jUCahJ-AebM)**
52
61
53
62
54
63
### Running the pipeline
55
64
Once installed you will be able to use the MELD FCD prediction pipeline on your data following the steps:
56
65
1. Prepare your data : [guidelines](https://meld-graph.readthedocs.io/en/latest/prepare_data.html)
57
-
2.(OPTIONAL) Compute the harmonisation parameters : [guidelines](https://meld-graph.readthedocs.io/en/latest/harmonisation.html)
66
+
2. Compute the harmonisation parameters : [guidelines](https://meld-graph.readthedocs.io/en/latest/harmonisation.html) (OPTIONAL but highly recommended)
58
67
3. Run the prediction pipeline: [guidelines](https://meld-graph.readthedocs.io/en/latest/run_prediction_pipeline.html)
59
68
4. Interpret the results: [guidelines](https://meld-graph.readthedocs.io/en/latest/interpret_results.html)
60
69
61
70
**YouTube tutorials available to run the [harmonisation step](https://youtu.be/te_TR6sA5sQ), to run the [prediction pipeline](https://youtu.be/OZg1HSzqKyc) and to [interpret the pipeline results](https://youtu.be/dSyd1zOn4F8)**
62
71
63
-
Note: If you have a question or if you are running into issues at any stage (installation/use/interpretation), have a look at our [FAQs](https://meld-graph.readthedocs.io/en/latest/FAQs.html) page to see if we have not already answered them.
72
+
**FAQs**
73
+
If you have a question or if you are running into issues at any stage (installation/use/interpretation), have a look at our [FAQs](https://meld-graph.readthedocs.io/en/latest/FAQs.html) page as we may have already have a solution.
64
74
65
75
**What is the harmonisation process ?**
66
76
@@ -80,10 +90,14 @@ If you'd like to contribute to this code base, have a look at our [contribution
80
90
81
91
## Acknowledgments
82
92
83
-
We would like to thank the [MELD consortium](https://meldproject.github.io//docs/collaborator_list.pdf) for providing the data to train this classifier and their expertise to build this pipeline.\
84
-
We would like to thank [Lennart Walger](https://github.com/1-w) and [Andrew Chen](https://github.com/andy1764), for their help testing and improving the MELD pipeline to v1.1.0. \
85
-
We would like to thank [Ulysses Popple](https://github.com/ulyssesdotcodes) for his help building the docs and dockers.
93
+
We would like to thank
94
+
- the [MELD consortium](https://meldproject.github.io//docs/collaborator_list.pdf) for providing the data to train this classifier and their expertise to build this pipeline.\
95
+
-[Lennart Walger](https://github.com/1-w) and [Andrew Chen](https://github.com/andy1764), for their help testing and improving the MELD pipeline to v1.1.0. \
96
+
-[Ulysses Popple](https://github.com/ulyssesdotcodes) for his help building the docs and dockers.
97
+
-[Cornelius Kronlage](https://github.com/ckronlage) highlighting issues in v2.2.1 and suggesting solutions in v2.2.2
86
98
87
99
## Contacts
88
100
89
101
Contact the MELD team at `meld.study@gmail.com`
102
+
103
+
*Please note that we are a small team and only have one day a week dedicated to the support of the MELD tools ([MELD Graph](https://github.com/MELDProject/meld_graph) and [AID-HS](https://github.com/MELDProject/AID-HS)). We will answer your emails as soon as we can!*
Copy file name to clipboardExpand all lines: docs/FAQs.md
+106-8Lines changed: 106 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,15 +17,14 @@ ModuleNotFoundError: No module named '_sysconfigdata_arm64_apple_darwin20_0_0'
17
17
The issue happens because the code is trying to force-installing ARM64 specific packages on an Intel processor.
18
18
An alternative solution is to follow the steps below:
19
19
1. Remove the meld_graph environment that failed
20
-
conda remove -n meld_graph --all
21
-
2. Open the `meldsetup.sh` file and replace the line `conda env create -f environment-mac.yml`by`conda env create -f environment.yml`
22
-
3. Save the file and rebuilt the environment by running:
20
+
`conda remove -n meld_graph --all`
21
+
2. Open the `meldsetup.sh` file and replace the line `conda env create -f environment-mac.yml`with`conda env create -f environment.yml`
22
+
3. Save the file and rebuild the environment by running:
23
23
```bash
24
24
./meldsetup.sh
25
25
```
26
26
27
-
This might raises new issues about packages that could not be found or installed. Please contact the meld.study@gmail.com with information about the issue and the packages missing.
28
-
27
+
If this raises new issues about packages that could not be found or installed, please contact meld.study@gmail.com with information about the issue and the packages missing.
29
28
30
29
### **Issue with Singularity - Not enough space when with creating the SIF**
31
30
```bash
@@ -50,6 +49,17 @@ Solution:
50
49
51
50
## **Issues & questions with pipeline use**
52
51
52
+
### **I have an issue with FLAIR feature that does not exist**
53
+
54
+
If you are running a subject with only a T1 scan and no FLAIR scan but you receive an issue like :
55
+
```bash
56
+
KeyError: "Unable to open object (object '.on_lh.gm_FLAIR_0.25.sm3.mgh' doesn't exist)"
57
+
exit status 1
58
+
```
59
+
You are likely having this issue because you might have previously ran this same subject ID with a FLAIR scan and the FreeSurfer segmentation has been done using the FLAIR scan. Therefore, even if you remove the FLAIR scan from the input data and run again the command, the intermediate FreeSurfer outputs for that subject still contain FLAIR information, which will make the pipeline looks for FLAIR features but fail to find them.
60
+
61
+
To avoid this in the future, if you want to run a same subject with and without FLAIR, you should create two separate input folders with two different subject's ID such as `sub-0001noflair` and `sub-0001flair`.
You are likely having an issue with the `demographics_file.csv` or the `list_subjects.txt` you provided.
63
-
- In the `demographics_file.csv`, check that there is no extra columns and that the columns names match what was provided as an [example](https://meld-graph.readthedocs.io/en/latest/prepare_data.html). Also ensure that the file is saved with comma separators (",") and not semicolon (";") which will prevent the code from properly reading the file.
73
+
- In the `demographics_file.csv`, check that there are no extra columns and that the column names match what was provided as an [example](https://meld-graph.readthedocs.io/en/latest/prepare_data.html). Also, ensure that the file is saved with comma separators (",") and not semicolon (";") which will prevent the code from properly reading the file.
64
74
- In the `list_subjects.txt`, ensure that there is no extra empty line at the end of the file.
65
75
76
+
### **Issue during prediction - The pipeline works and then stop when running the predictions and saliencies**
77
+
78
+
The error is likely due to a memory issue when the machine-learning model is called to predict.\
79
+
If you are using Docker Desktop, it could be because the memory limit is set very low by default.
80
+
To fix this, you will need to:
81
+
1) Increase the memory in the Docker Desktop settings (more help in this [post](https://stackoverflow.com/questions/43460770/docker-windows-container-memory-limit)
82
+
2) Run the MELD Graph command again.
83
+
84
+
66
85
### **Can I use precomputed FreeSurfer outputs in the pipeline ?**
67
86
68
87
If prior to using this pipeline you already have processed a T1w scan (or T1w and FLAIR scans) with the `recon-all` pipeline from FreeSurfer **V6.0** or **V7.2**, you can use the output FreeSurfer folder for this patient in the pipeline. The pipeline will use those outputs and skip the FreeSurfer segmentation.
@@ -88,15 +107,94 @@ sub-0002
88
107
├── trash
89
108
```
90
109
91
-
### **Can I use the MELD Graph pipeline on scans that contains previous resection cavities?**
110
+
### **Can I use the MELD Graph pipeline on scans that contain previous resection cavities?**
92
111
93
112
The short answer is no.
94
113
95
114
The MELD Graph pipeline has not been trained on scans that contains resection cavities. Such scans will likely induce errors in the brain segmentation which will bias the prediction.
96
115
97
-
If the patient already had surgery, we recommand to use the scans that were acquired prior this surgery and use those to run in the pipeline
116
+
If the patient already had surgery, we recommand to use the scans that were acquired prior to the surgery and use those to run in the pipeline
98
117
99
118
### **Can I use the MELD Graph pipeline on scans with other pathologies as well as FCD e.g. tumours?**
100
119
If the other pathology is hippocampal sclerosis (E.g. this is a FCD IIIA), yes you can use MELD Graph. However, please note it will not detect the HS as it only analyses the cortex.
101
120
102
121
If it is another pathology e.g. a tumour, the pipeline has not been developed / trained on other pathologies and may not detect them. Also, the other pathology may introduce large reconstruction errors in the FreeSurfer pipeline - causing errors. We therefore do not recommend using MELD Graph on patients with other cortical pathologies.
122
+
123
+
---
124
+
125
+
## **Updating MELD Graph to V2.2.2**
126
+
127
+
The instructions below are for users that already have used MELD Graph v2.2.1 on patients and would like to update to MELD Graph V2.2.2 while keeping the same meld_data folder.
128
+
129
+
130
+
### 📥 **Get the updated code**
131
+
132
+
1) Open a terminal in your meld_graph folder
133
+
2) Pull the latest code from GitHub (it will pull the latest data while keeping your changes made to the code)
134
+
```bash
135
+
git stash
136
+
git pull
137
+
git stash pop
138
+
```
139
+
**💻 Native Installation Users:** Your code is now up to date. You can go directly to the next step.
140
+
141
+
**🐳 Docker Users:** You will also need to pull the latest docker image
142
+
```bash
143
+
docker pull MELDproject/meld_graph:latest
144
+
```
145
+
146
+
**🚀 Singularity Users:** You will also need to pull the latest image
### 🗂️ **Update your meld_data_folder with the new test data**
152
+
The command below will only download the test data and it should not overwrite the patients you have already ran.
153
+
154
+
**WARNING**: It will overwrite the `demographics_file.csv` and `list_subjects.txt`. Please ensure to keep a copy of those files if you have modified them.
### 🧠 **Update your predictions with the registration fix**
179
+
If you want to update the predictions with the new registration for patients you have already ran through MELD Graph, please follow the instructions bellow:
180
+
181
+
1) Create a list of ids of patients you want to rerun: e.g. `list_subjects_rerun_v2.2.2.txt`
182
+
183
+
2) Then run one of the commands below. It will use the predictions already existing for your patient.
184
+
185
+
**WARNING** This will overwrite the prediction registered to T1 and the patient report in`output/predictions_reports`
Copy file name to clipboardExpand all lines: docs/harmonisation.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,15 @@
3
3
## Information about the harmonisation
4
4
Each MRI scanner / sequence / FreeSurfer version will introduce small non-biological differences in the features that are calculated and used to predict where the FCD is. To help remove these biases, we advise harmonisation of your patient's features. This will make your patient's features "look like" the features we used to train the classifier.
5
5
6
-
Harmonisation of your patient data is not mandatory but recommended, to remove any bias induced by the scanner and sequence used. For more details on the MELD FCD predictions performances with and without harmonisation please refer to our (paper)[]
6
+
Harmonisation of your patient data is not mandatory but recommended, to remove any bias induced by the scanner and sequence used. For more details on the MELD FCD predictions performances with and without harmonisation please refer to our [paper](https://jamanetwork.com/journals/jamaneurology/fullarticle/2830410)
7
7
8
8
Here is the video tutorial detailing how to compute the harmonisation parameters - [Harmonisation tutorial](https://youtu.be/te_TR6sA5sQ).
9
9
10
10
## Compute the harmonisation paramaters
11
11
12
12
The harmonisation parameters are computed using [Distributed Combat](https://doi.org/10.1016/j.neuroimage.2021.118822).
13
13
To get these parameters you will need a cohort of subjects acquired from the same scanner and under the same protocol (sequence, parameters, ...).
14
-
Subjects can be controls and/or patients, but we advise to use ***at least 20 subjects*** to enable an accurate harmonisation (see (paper)[]).
14
+
Subjects can be controls and/or patients, but we advise to use ***at least 20 subjects*** to enable an accurate harmonisation (see (paper)[https://jamanetwork.com/journals/jamaneurology/fullarticle/2830410]).
15
15
Try to ensure the data are high quality (i.e no blurring, no artefacts, no cavities in the brain).
16
16
Demographic information (e.g age and sex) will be required for this process.
17
17
WARNING: zero variance in the demographics information (e.g. having the same age for all subjects) will lead to Combat failures or errors.
0 commit comments