Skip to content

scdef.tl.get_technical_signature

get_technical_signature(model: scDEF, top_genes: int = 10, return_scores: bool = False) -> Union[List[str], Tuple[List[str], ndarray]]

Consensus gene signature over the factors flagged as technical.

Pools the layer-0 gene rankings of the factors in the technical hierarchy into one ranked list, so the variation drop_technical would remove can be inspected before removing it.

Parameters:

Name Type Description Default
model scDEF

scDEF model instance. Requires make_technical_hierarchy (or make_hierarchies) to have run, so adata.uns['technical_hierarchy'] exists.

required
top_genes int

maximum number of genes to return.

10
return_scores bool

also return the consensus score of each returned gene.

False

Returns:

Type Description
Union[List[str], Tuple[List[str], ndarray]]

The top gene names, or (genes, scores) when return_scores is True.