Skip to content

scdef.tl.get_global_signature

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

Consensus gene signature over global layer-0 factors.

Requires make_global_hierarchy (or make_hierarchies) to have been run so model.adata.uns['global_hierarchy'] exists.

Parameters:

Name Type Description Default
model scDEF

scDEF model instance

required
top_genes int

number of top genes to return

10
return_scores bool

if True, also return consensus scores

False

Returns:

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

Gene list, or (genes, scores) when return_scores=True.