remove_genes

besca.tl.auto_annot.remove_genes(adata_trains, adata_pred, genes_to_use)[source]

removes all genes not in gene set

removes all genes from var that are not found in specified gene set list

Parameters:
  • adata_trains (list) – list of training dataset adata objects

  • adata_pred (AnnData) – testing dataset anndata object

  • genes_to_use (list) – list of genes to be removed

Returns:

  • list – A list of training dataset anndata objects

  • AnnData – An anndata object containing testing dataset