Skip to contents

Function to add or update highly variable genes for the current mode

Usage

updateHighlyVariableGenes(
  AIT.anndata,
  variable.genes = NULL,
  mode = AIT.anndata$uns$mode,
  list.name = paste0("highly_variable_genes_", AIT.anndata$uns$mode),
  default.list.name = "highly_variable_genes_standard"
)

Arguments

AIT.anndata

A reference taxonomy anndata object.

variable.genes

Set of variable genes to add to the list.name slot in obs. Can be provided as a logical or character vector.

list.name

Which slot in obs to should the highly variable genes go? Default is highly_variable_genes_mode

default.list.name

Which slot should highly variable genes be copied from if none are provided? Default is highly_variable_genes_standard

Value

an AIT.anndata object with the updated/additional vector of highly variable genes