Skip to content

Commit e5e8e56

Browse files
committed
exposed threshold param to cli interface
1 parent 3664342 commit e5e8e56

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

sopa/cli/annotate.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ def tangram(
4949
10_000,
5050
help="Maximum samples to be considered in the reference for tangram. Low values will decrease the memory usage",
5151
),
52+
threshold: float = typer.Option(
53+
0.5,
54+
help="Threshold for filtering low probability annotations",
55+
),
5256
):
5357
"""Tangram segmentation (i.e., uses an annotated scRNAseq reference to transfer cell-types)"""
5458
import anndata
@@ -67,6 +71,7 @@ def tangram(
6771
reference_preprocessing=reference_preprocessing,
6872
bag_size=bag_size,
6973
max_obs_reference=max_obs_reference,
74+
threshold=threshold,
7075
)
7176
if sdata.is_backed():
7277
sdata.delete_element_from_disk(SopaKeys.TABLE)

0 commit comments

Comments
 (0)