Gene-to-symbol mappings
Gene2Symbol(object, ...) # S4 method for DataFrame Gene2Symbol(object, format = c("makeUnique", "unmodified", "1:1")) # S4 method for GRanges Gene2Symbol(object, format = c("makeUnique", "unmodified", "1:1"))
object | Object. |
---|---|
... | Additional arguments. |
format |
|
Gene2Symbol
.
For some organisms, gene names and gene symbols do not map 1:1 (e.g.
Homo sapiens and Mus musculus). Refer to the format
argument here in
the documentation for approaches that deal with this issue.
For the format
argument, note that "long" was used instead of
"unmodified" prior to v0.10.10.
Updated 2021-03-03.
data(GRanges, package = "AcidTest") ## DataFrame ==== df <- DataFrame( "geneId" = c( "ENSG00000228572.7", "ENSG00000182378.14" ), "geneName" = c( "AL954722.1", "PLCXD1" ) ) x <- Gene2Symbol(df) print(x)#> Gene2Symbol with 2 rows and 2 columns #> geneId geneName #> <character> <character> #> 1 ENSG00000228572.7 AL954722.1 #> 2 ENSG00000182378.14 PLCXD1## GRanges ==== object <- GRanges x <- Gene2Symbol(object)