make_anno¶
- besca.tl.sig.make_anno(df: DataFrame, sigscores: dict, sigconfig: DataFrame, levsk: list, lab: str = 'celltype', toexclude: list = []) DataFrame [source]¶
Annotate cell types Based on a dataframe of -log10pvals, a cutoff and a signature set generate cell annotation Hierarchical model of Immune cell annotation. It expects a specific set of signatures with a common prefix (signame) and specified suffixes indicating the cell type.
- Parameters:
mypFrame (panda.DataFrame) – a dataframe of -log10pvals per signature and cell cluster
sigscores (dict) – a dictionary with cluster attribution per signature
sigconfig (panda.DataFrame) – a dataframe with the configuration information
levsk (list of str) – String of distinct levels based on configuration file
lab ('str') – cell type category base name
toexclude (list of str) – String of cell types to ignore in the annotation process
- Returns:
cnames – a dataframe with cluster to cell type attribution per distinct levels
- Return type:
panda.DataFrame