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: sopa/cli/app.py
+5-15Lines changed: 5 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -28,9 +28,7 @@
28
28
name="segmentation",
29
29
help="Perform cell segmentation on patches. NB: for `baysor`, use directly the `baysor` command line.",
30
30
)
31
-
app.add_typer(
32
-
app_resolve, name="resolve", help="Resolve the segmentation conflicts over patches overlaps"
33
-
)
31
+
app.add_typer(app_resolve, name="resolve", help="Resolve the segmentation conflicts over patches overlaps")
34
32
app.add_typer(
35
33
app_patchify,
36
34
name="patchify",
@@ -77,9 +75,7 @@ def read(
77
75
78
76
io.standardize._check_can_write_zarr(sdata_path)
79
77
80
-
assert (
81
-
technologyisnotNoneorconfig_pathisnotNone
82
-
), "Provide the argument `--technology` or `--config-path`"
78
+
asserttechnologyisnotNoneorconfig_pathisnotNone, "Provide the argument `--technology` or `--config-path`"
83
79
84
80
ifconfig_pathisnotNone:
85
81
assertnotkwargs, "Provide either a path to a config, or some kwargs, but not both"
@@ -114,9 +110,7 @@ def crop(
114
110
None,
115
111
help="List of channel names to be displayed. Optional if there are already only 1 or 3 channels",
116
112
),
117
-
scale_factor: float=typer.Option(
118
-
10, help="Resize the image by this value (high value for a lower memory usage)"
119
-
),
113
+
scale_factor: float=typer.Option(10, help="Resize the image by this value (high value for a lower memory usage)"),
120
114
margin_ratio: float=typer.Option(
121
115
0.1, help="Ratio of the image margin on the display (compared to the image size)"
122
116
),
@@ -163,16 +157,12 @@ def aggregate(
163
157
None,
164
158
help="Column of the transcript dataframe representing the gene names. If not provided, it will not compute transcript count",
165
159
),
166
-
average_intensities: bool=typer.Option(
167
-
False, help="Whether to average the channel intensities inside each cell"
168
-
),
160
+
average_intensities: bool=typer.Option(False, help="Whether to average the channel intensities inside each cell"),
169
161
expand_radius_ratio: float=typer.Option(
170
162
default=0,
171
163
help="Cells polygons will be expanded by `expand_radius_ratio * mean_radius` for channels averaging **only**. This help better aggregate boundary stainings",
172
164
),
173
-
min_transcripts: int=typer.Option(
174
-
0, help="Cells with less transcript than this integer will be filtered"
175
-
),
165
+
min_transcripts: int=typer.Option(0, help="Cells with less transcript than this integer will be filtered"),
176
166
min_intensity_ratio: float=typer.Option(
177
167
0,
178
168
help="Cells whose mean channel intensity is less than `min_intensity_ratio * quantile_90` will be filtered",
Copy file name to clipboardExpand all lines: sopa/cli/explorer.py
+3-9Lines changed: 3 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,7 @@
6
6
7
7
app_explorer=typer.Typer()
8
8
9
-
PIXELSIZE_DEPRECATED= (
10
-
"`pixelsize` is deprecated and will be removed in future versions. Use `pixel_size` instead."
11
-
)
9
+
PIXELSIZE_DEPRECATED="`pixelsize` is deprecated and will be removed in future versions. Use `pixel_size` instead."
12
10
13
11
14
12
@app_explorer.command()
@@ -18,9 +16,7 @@ def write(
18
16
None,
19
17
help="Path to a directory where Xenium Explorer's outputs will be saved. By default, writes to the same path as `sdata_path` but with the `.explorer` suffix",
20
18
),
21
-
gene_column: str=typer.Option(
22
-
None, help="Column name of the points dataframe containing the gene names"
23
-
),
19
+
gene_column: str=typer.Option(None, help="Column name of the points dataframe containing the gene names"),
24
20
shapes_key: str=typer.Option(
25
21
None,
26
22
help="Sdata key for the boundaries. By default, uses the baysor boundaires, else the cellpose boundaries",
0 commit comments