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
*`he-analysis`: Run the HE analysis and quantification on...
19
-
*`sdh-analysis`: Run the SDH analysis and quantification on...
17
+
-`atp-analysis`: Run the fibre type 1 vs type 2 analysis on...
18
+
-`docs`: Generate documentation
19
+
-`he-analysis`: Run the nuclei position analysis on HE and...
20
+
-`sdh-analysis`: Run the mitochondiral analysis and...
21
+
22
+
## `myoquant atp-analysis`
23
+
24
+
Run the fibre type 1 vs type 2 analysis on ATP images.
25
+
First input arguments and option are printed in stdout and all modules are imported. Then the input image is mask with the binary mask if provided.
26
+
Then depending on the presence of cellpose , Cellpose is run or not and mask accordingly if binary mask is provided.
27
+
Finally the ATP analysis is run with run_atp_analysis() function and the results are saved in the output folder and some info are printed in stdout.
28
+
29
+
**Usage**:
30
+
31
+
```console
32
+
$ myoquant atp-analysis [OPTIONS] IMAGE_PATH
33
+
```
34
+
35
+
**Arguments**:
36
+
37
+
-`IMAGE_PATH`: The ATP image file path to analyse. [required]
38
+
39
+
**Options**:
40
+
41
+
-`--mask-path FILE`: The path to a binary mask to hide slide region during analysis. It needs to be of the same resolution as input image and only pixel marked as 1 will be analyzed.
42
+
-`--cellpose-path FILE`: The pre-computed CellPose mask to use for analysis. Will run Cellpose if no path provided. Required as an image file.
43
+
-`--output-path PATH`: The path to the folder to save the results. Will save in the same folder as input image if not specified.
44
+
-`--intensity-threshold INTEGER RANGE`: Fiber intensity threshold to differenciate between the two fiber types. If not specified, the analysis will try to deduce it. [1<=x<=254]
45
+
-`--cellpose-diameter INTEGER`: Approximative single cell diameter in pixel for CellPose detection. If not specified, Cellpose will try to deduce it.
46
+
-`--export-map / --no-export-map`: Export the original image with cells painted by classification label. [default: export-map]
47
+
-`--export-stats / --no-export-stats`: Export per fiber and per nuclei stat table. [default: export-stats]
*`IMAGE_PATH`: The HE image file path to analyse. If using single channel images, this will be used as cytoplasm image to run CellPose. Please use the --fluo-nuc option to indicate the path to the nuclei single image to run Stardist.[required]
99
+
-`IMAGE_PATH`: The HE image file path to analyse. If using single channel images, this will be used as cytoplasm image to run CellPose. Please use the --fluo-nuc option to indicate the path to the nuclei single image to run Stardist. [required]
68
100
69
101
**Options**:
70
102
71
-
*`--mask-path FILE`: The path to a binary mask to hide slide region during analysis. It needs to be of the same resolution as input image and only pixel marked as 1 will be analyzed.
72
-
*`--cellpose-path FILE`: The pre-computed CellPose mask to use for analysis. Will run Cellpose if no path provided. Required as an image file.
73
-
*`--stardist-path FILE`: The pre-computed Stardist mask to use for analysis. Will run Stardist if no path provided. Required as an image file.
74
-
*`--output-path PATH`: The path to the folder to save the results. Will save in the same folder as input image if not specified.
75
-
*`--cellpose-diameter INTEGER`: Approximative single cell diameter in pixel for CellPose detection. If not specified, Cellpose will try to deduce it.
*`--prob-thresh FLOAT RANGE`: Probability Threshold for Stardist nuclei detection.[default: 0.5; 0.5<=x<=1]
78
-
*`--eccentricity-thresh FLOAT RANGE`: Eccentricity threshold value for a nucleus to be considered as internalized during nuclei classification. When very close to 1 almost all nuclei are considered as internalized.[default: 0.75; 0<=x<=1]
79
-
*`--export-map / --no-export-map`: Export the original image with cells painted by classification label.[default: export-map]
80
-
*`--export-stats / --no-export-stats`: Export per fiber and per nuclei stat table.[default: export-stats]
81
-
*`--fluo-nuc FILE`: The path to single channel fluo image for nuclei.
82
-
*`--help`: Show this message and exit.
103
+
-`--mask-path FILE`: The path to a binary mask to hide slide region during analysis. It needs to be of the same resolution as input image and only pixel marked as 1 will be analyzed.
104
+
-`--cellpose-path FILE`: The pre-computed CellPose mask to use for analysis. Will run Cellpose if no path provided. Required as an image file.
105
+
-`--stardist-path FILE`: The pre-computed Stardist mask to use for analysis. Will run Stardist if no path provided. Required as an image file.
106
+
-`--output-path PATH`: The path to the folder to save the results. Will save in the same folder as input image if not specified.
107
+
-`--cellpose-diameter INTEGER`: Approximative single cell diameter in pixel for CellPose detection. If not specified, Cellpose will try to deduce it.
-`--prob-thresh FLOAT RANGE`: Probability Threshold for Stardist nuclei detection. [default: 0.5; 0.5<=x<=1]
110
+
-`--eccentricity-thresh FLOAT RANGE`: Eccentricity threshold value for a nucleus to be considered as internalized during nuclei classification. When very close to 1 almost all nuclei are considered as internalized. [default: 0.75; 0<=x<=1]
111
+
-`--export-map / --no-export-map`: Export the original image with cells painted by classification label. [default: export-map]
112
+
-`--export-stats / --no-export-stats`: Export per fiber and per nuclei stat table. [default: export-stats]
113
+
-`--fluo-nuc FILE`: The path to single channel fluo image for nuclei.
114
+
-`--help`: Show this message and exit.
83
115
84
116
## `myoquant sdh-analysis`
85
117
86
-
Run the SDH analysis and quantification on the image.
118
+
Run the mitochondiral analysis and quantification on the image.
119
+
First input arguments and option are printed in stdout and all modules are imported and latest SDH model is downloaded.
120
+
Then the input image is mask with the binary mask if provided.
121
+
Then depending on the presence of cellpose path, Cellpose is run or not and mask accordingly if binary mask is provided.
122
+
Finally the mitochondiral classificaiton is run with run_sdh_analysis() function and the results are saved in the output folder and some info are printed in stdout.
*`IMAGE_PATH`: The image file path to analyse.[required]
132
+
-`IMAGE_PATH`: The image file path to analyse. [required]
97
133
98
134
**Options**:
99
135
100
-
*`--mask-path FILE`: The path to a binary mask to hide slide region during analysis. It needs to be of the same resolution as input image and only pixel marked as 1 will be analyzed.
101
-
*`--model-path FILE`: The SDH model path to use for analysis. Will download latest one if no path provided.
102
-
*`--cellpose-path FILE`: The pre-computed CellPose mask to use for analysis. Will run Cellpose if no path provided. Required as an image file.
103
-
*`--output-path PATH`: The path to the folder to save the results. Will save in the current folder if not specified.
104
-
*`--cellpose-diameter INTEGER`: Approximative single cell diameter in pixel for CellPose detection. If not specified, Cellpose will try to deduce it.
105
-
*`--export-map / --no-export-map`: Export the original image with cells painted by classification label.[default: export-map]
106
-
*`--export-stats / --no-export-stats`: Export per fiber stat table.[default: export-stats]
107
-
*`--help`: Show this message and exit.
136
+
-`--mask-path FILE`: The path to a binary mask to hide slide region during analysis. It needs to be of the same resolution as input image and only pixel marked as 1 will be analyzed.
137
+
-`--model-path FILE`: The SDH model path to use for analysis. Will download latest one if no path provided.
138
+
-`--cellpose-path FILE`: The pre-computed CellPose mask to use for analysis. Will run Cellpose if no path provided. Required as an image file.
139
+
-`--output-path PATH`: The path to the folder to save the results. Will save in the current folder if not specified.
140
+
-`--cellpose-diameter INTEGER`: Approximative single cell diameter in pixel for CellPose detection. If not specified, Cellpose will try to deduce it.
141
+
-`--export-map / --no-export-map`: Export the original image with cells painted by classification label. [default: export-map]
142
+
-`--export-stats / --no-export-stats`: Export per fiber stat table. [default: export-stats]
Copy file name to clipboardExpand all lines: README.md
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,8 @@
7
7
</p>
8
8
9
9
MyoQuant🔬 is a command-line tool to automatically quantify pathological features in muscle fiber histology images.
10
-
It is built using CellPose, Stardist, custom neural-network models and image analysis techniques to automatically analyze myopathy histology images. Currently MyoQuant is capable of quantifying centralization of nuclei in muscle fiber with HE staining and anomaly in the mitochondria distribution in muscle fibers with SDH staining.
10
+
It is built using CellPose, Stardist, custom neural-network models and image analysis techniques to automatically analyze myopathy histology images.
11
+
Currently MyoQuant is capable of quantifying centralization of nuclei in muscle fiber with HE staining, anomaly in the mitochondria distribution in muscle fibers with SDH staining and the number of type 1 muscle fiber vs type 2 muscle fiber with ATP staining.
11
12
12
13
An online demo with a web interface is available at [https://lbgi.fr/MyoQuant/](https://lbgi.fr/MyoQuant/). This project is free and open-source under the AGPL license, feel free to fork and contribute to the development.
13
14
@@ -41,6 +42,9 @@ Then you can perform SDH or HE analysis. You can use the command `myoquant --hel
41
42
-**For HE Image Analysis** the command is:
42
43
`myoquant he-analysis IMAGE_PATH`
43
44
Don't forget to run `myoquant he-analysis --help` for information about options.
45
+
-**For ATP Image Analysis** the command is:
46
+
`myoquant atp-analysis IMAGE_PATH`
47
+
Don't forget to run `myoquant atp-analysis --help` for information about options.
44
48
45
49
_If you're running into an issue such as `myoquant: command not found` please check if you activated your virtual environment with the package installed. And also you can try to run it with the full command: `python -m myoquant sdh-analysis --help`_
46
50
@@ -55,15 +59,19 @@ Creator and Maintainer: [**Corentin Meyer**, 3rd year PhD Student in the CSTB Te
55
59
## Examples
56
60
57
61
For HE Staining analysis, you can download this sample image: [HERE](https://www.lbgi.fr/~meyer/SDH_models/sample_he.jpg)
58
-
For SDH Staining analysis, you can download this sample image: [HERE](https://www.lbgi.fr/~meyer/SDH_models/sample_sdh.jpg)
62
+
For SDH Staining analysis, you can download this sample image: [HERE](https://www.lbgi.fr/~meyer/SDH_models/sample_sdh.jpg)
63
+
For ATP Staining analysis, you can download this sample image: [HERE](https://www.lbgi.fr/~meyer/SDH_models/sample_atp.jpg)
59
64
60
-
1. Example of successful SDH analysis with: `myoquant sdh-analysis sample_sdh.jpg`
65
+
1. Example of successful SDH analysis output with: `myoquant sdh-analysis sample_sdh.jpg`
0 commit comments