anndict.annotate.create_label_df#
- anndict.annotate.create_label_df(adata, cols1, cols2)[source]#
Creates a
DataFrameof unique label combinations from the specified columns incols1andcols2, only including combinations that exist inadata.obs[[*cols1, *cols2]].- Parameters:
- adata
AnnData An
AnnData.- cols1
list[str] List of columns to compare with cols2.
- cols2
list[str] List of columns to compare with cols1.
- adata
- Return type:
DataFrame- Returns:
DataFramecontaining unique combinations of the specified columns.