Skip to content

Commit

Permalink
Merge pull request #51 from ivadomed/plb/dataframe-analysis
Browse files Browse the repository at this point in the history
Dataframe analysis
  • Loading branch information
plbenveniste authored Dec 7, 2023
2 parents b73709c + 0f98ac3 commit 7316f4c
Show file tree
Hide file tree
Showing 5 changed files with 2,167 additions and 0 deletions.
26 changes: 26 additions & 0 deletions dataset_analysis/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Installation

To install the required libraries run :

~~~
pip install -r requirements_dataframe.txt
~~~

It is also required to install SpinalCordToolbox 6.0 :

Installation link : https://spinalcordtoolbox.com/user_section/installation.html

# Dataframe generation

To generate the dataframe run :

~~~
python generate_dataframe.py --data /path/to/CanProCo --lesion /path/to/lesion/segmentation --discs /path/to/discs/segmentation --spinal-cord /path/to/spinal/cord/segmentation --timepoint M0 --exclude-file /path/to/exclude/file --output /path/to/output/folder
~~~

> **Note**
> It uses the file `image.py` to fix the orientation of masks if they are not the same as the image's orientation
# Dataframe analysis

The following Notebook `dataframe_analysis.ipynb` details the analysis of the generated dataframe. To use it, update the link to the CSV dataframes.
952 changes: 952 additions & 0 deletions dataset_analysis/dataframe_analysis.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 7316f4c

Please sign in to comment.