add_anno¶
- besca.tl.sig.add_anno(adata: AnnData, cnames: DataFrame, mycol, clusters='leiden')[source]¶
- Adds annotation generated with make_anno to a AnnData object Takes as input the AnnData object to which annotation will be appended and the annotation pd Generates a pd.Series that can be added as a adata.obs column with annotation at a level - Parameters:
- adata (AnnData) – AnnData object that is to be annotated 
- cnames (panda.DataFrame) – a list of cluster names generated with make_anno 
- mycol (string) – column to be added 
- clusters (string) – initial cluster used for annotation (column in adata.obs) 
 
- Returns:
- the annotated cells 
- Return type:
- pd.Series