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
Copy file name to clipboardExpand all lines: myoquant/commands/run_sdh.py
+22-5Lines changed: 22 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,6 @@
1
+
"""
2
+
Module that contains the main function to run the mitochondrial distribution analysis for SDH images
3
+
"""
1
4
importtime
2
5
frompathlibimportPath
3
6
importtyper
@@ -66,11 +69,17 @@ def sdh_analysis(
66
69
),
67
70
export_stats: bool=typer.Option(True, help="Export per fiber stat table."),
68
71
):
69
-
"""Run the SDH analysis and quantification on the image."""
72
+
"""Run the mitochondiral analysis and quantification on the image.
73
+
First input arguments and option are printed in stdout and all modules are imported and latest SDH model is downloaded.
74
+
Then the input image is mask with the binary mask if provided.
75
+
Then depending on the presence of cellpose path, Cellpose is run or not and mask accordingly if binary mask is provided.
76
+
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.
77
+
"""
70
78
start_time=time.time()
71
79
console.print(
72
-
f"👋 [bold dark_orange]Welcome to the mitochondrial distribution analysis (SDH images)",
80
+
"👋 [bold dark_orange]Welcome to the mitochondrial distribution analysis (SDH images)",
73
81
)
82
+
# Print input arguments and options
74
83
console.print(f"📄 INPUT: raw image: {image_path}", style="blue")
0 commit comments