getGenes: Returns the names of all genes of a target object.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/gene-getters.R

Description

Returns the names of all genes of a target object.

Usage

1
getGenes(object, assay = .default_assay(object))

Arguments

object

A Seurat, SingleCellExperiment, or SummarizedExperiment object.

assay

single string or integer that sets which set of seq data inside the object to check.

Value

A string vector, returns the names of all genes of the object for the requested assay.

Author(s)

Daniel Bunis

See Also

isGene for returning all genes in an object

gene for obtaining the expression data of genes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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")

dittoSeq documentation built on April 17, 2021, 6:01 p.m.