We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3664342 commit e5e8e56Copy full SHA for e5e8e56
1 file changed
sopa/cli/annotate.py
@@ -49,6 +49,10 @@ def tangram(
49
10_000,
50
help="Maximum samples to be considered in the reference for tangram. Low values will decrease the memory usage",
51
),
52
+ threshold: float = typer.Option(
53
+ 0.5,
54
+ help="Threshold for filtering low probability annotations",
55
+ ),
56
):
57
"""Tangram segmentation (i.e., uses an annotated scRNAseq reference to transfer cell-types)"""
58
import anndata
@@ -67,6 +71,7 @@ def tangram(
67
71
reference_preprocessing=reference_preprocessing,
68
72
bag_size=bag_size,
69
73
max_obs_reference=max_obs_reference,
74
+ threshold=threshold,
70
75
)
76
if sdata.is_backed():
77
sdata.delete_element_from_disk(SopaKeys.TABLE)
0 commit comments