getGenes | R Documentation |
Returns the names of all genes of a target object.
getGenes(object, assay = .default_assay(object), swap.rownames = NULL)
object |
A Seurat, SingleCellExperiment, or SummarizedExperiment object. |
assay |
Single string or integer that sets which set of seq data inside the object to check. |
swap.rownames |
optionally named string or string vector.
For SummarizedExperiment or SingleCellExperiment objects, its value(s) specifies the column name of rowData(object) to be used to identify features instead of rownames(object).
When targeting multiple modalities (alternative experiments), names can be used to specify which level / alternative experiment (use 'main' for the top-level) individual values should be used for.
See |
A string vector, returns the names of all genes of the object
for the requested assay
.
Daniel Bunis
isGene
for returning all genes in an object
gene
for obtaining the expression data of genes
example(importDittoBulk, echo = FALSE)
getGenes(object = myRNA, assay = "counts")
# To see all genes of an object for the default assay that dittoSeq would use
# leave out the assay input
getGenes(myRNA)
# Seurat
# pbmc <- Seurat::pbmc_small
# # To see all genes of an object of a particular assay
# getGenes(pbmc, assay = "RNA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.