removeGenes | R Documentation |
Functions that remove molecules from the SPATA2
object by removing
them from count matrix and all processed matrices of the respective assay.
removeMolecules()
: Removes user specified molecules.
removeMoleculesZeroCounts()
: Removes molecules that do not have a single count
across all observations.
Wrappers for transcriptomic assay:
removeGenes()
: Removes user specified genes.
removeGenesMitochondrial()
: Removes mitochondrial genes.
removeGenesRibosomal()
: Removes ribosomal genes.
removeGenesStress()
: Removes stress related genes.
removeGenesZeroCounts()
: Removes genes that do not have a single count
across all observations.
removeGenes(object, genes, show_warnings = FALSE, verbose = NULL)
removeGenesMitochondrial(object, verbose = NULL, ...)
removeGenesRibosomal(object, verbose = NULL, ...)
removeGenesStress(object, verbose = NULL)
removeGenesZeroCounts(object, verbose = NULL)
removeMolecules(
object,
molecules,
show_warnings = FALSE,
ref = "molecule",
assay_name = activeAssay(object),
verbose = NULL
)
object |
An object of class |
genes |
Character vector. Names of genes to remove. |
show_warnings |
Logical value. If |
verbose |
Logical. If (Warning messages will always be printed.) |
... |
Used to absorb deprecated arguments or functions. |
assay_name |
Only relevant if the |
This step affects the matrices of the object and thus all subsequent analysis steps. Analysis steps that have already been conducted are not affected! It is advisable to integrate this step as early as possible in the processing pipeline.
The updated input object, containing the added, removed or computed results.
library(SPATA2)
data("example_data")
object <- example_data$object_UKF313T_diet
genes <- getGenes(object)
head(genes)
length(genes)
object <- removeGenesZeroCounts(object)
object <- removeGenesStress(object)
genes_new <- getGenes(object)
length(genes_new)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.