Skip to content

scdef.pl.signatures_scores

signatures_scores(model: scDEF, obs_keys: Sequence[str], markers: Mapping[str, Sequence[str]], top_genes: Optional[int] = 10, hierarchy: Optional[Dict[str, Sequence[str]]] = None, **kwargs: Any) -> None

Plot the association between a set of cell annotations and a set of gene signatures.

Parameters:

Name Type Description Default
model scDEF

scDEF model instance

required
obs_keys Sequence[str]

the keys in model.adata.obs to use

required
markers Mapping[str, Sequence[str]]

a dictionary with keys corresponding to model.adata.obs[obs_keys] and values to gene lists

required
top_genes Optional[int]

number of genes to consider in the score computations

10
hierarchy Optional[Dict[str, Sequence[str]]]

the polytree to restrict the associations to

None
**kwargs Any

plotting keyword arguments

{}