run_stardist_cell_detection
Run stardist using qupath CLI on slides in a slide manifest from slide_etl. URIs to resulting GeoJSON will be stored in a specified column of the returned slide manifest.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
slide_manifest |
DataFrame[SlideSchema]
|
slide manifest from slide_etl |
required |
cell_expansion_size |
float
|
size in pixels to expand cell cytoplasm |
required |
image_type |
str
|
qupath image type (BRIGHTFIELD_H_DAB) |
required |
output_urlpath |
str
|
output url/path |
required |
debug_opts |
str
|
debug options passed as arguments to groovy script |
required |
num_cores |
int
|
Number of cores to use for CPU parallelization |
required |
image |
str
|
docker/singularity image |
required |
use_singularity |
bool
|
use singularity instead of docker |
required |
max_heap_size |
str
|
maximum heap size to pass to java options |
required |
storage_options |
dict
|
storage options to pass to reading functions |
required |
output_storage_options |
dict
|
storage options to pass to writing functions |
required |
annotation_column |
str
|
name of column in resulting slide manifest to store GeoJson URIs |
'stardist_geojson_url'
|
Returns:
Type | Description |
---|---|
DataFrame[SlideSchema]
|
DataFrame[SlideSchema]: slide manifest |
Source code in src/luna/pathology/cli/run_stardist_cell_detection.py
Run stardist using qupath CLI
Parameters:
Name | Type | Description | Default |
---|---|---|---|
slide_manifest |
DataFrame[SlideSchema]
|
slide manifest from slide_etl |
required |
output_urlpath |
str
|
output url/path |
required |
num_cores |
int
|
Number of cores to use for CPU parallelization |
required |
use_gpu |
bool
|
use GPU |
False
|
image |
str
|
docker/singularity image |
'mskmind/qupath-stardist:0.4.3'
|
use_singularity |
bool
|
use singularity instead of docker |
False
|
max_heap_size |
str
|
maximum heap size to pass to java options |
'64G'
|
storage_options |
dict
|
storage options to pass to reading functions |
{}
|
output_storage_options |
dict
|
storage options to pass to writing functions |
{}
|
annotation_column |
str
|
name of column in resulting slide manifest to store GeoJson URIs |
'lymphocyte_geojson_url'
|
Returns:
Type | Description |
---|---|
DataFrame[SlideSchema]
|
DataFrame[SlideSchema]: slide manifest |