intersect_genes

besca.tl.auto_annot.intersect_genes(adata_train, adata_pred)[source]

removes all genes not in all datasets

removes all genes not contained in all datasets

Parameters:
  • adata_train (AnnData) – training dataset anndata object

  • adata_pred (AnnData) – testing dataset anndata object

Returns:

  • AnnData – An anndata object containing training dataset with non-shared genes removed

  • AnnData – An anndata object containing testing dataset with non-shared genes removed