xGeneID2Symbol: Function to convert gene symbols to entrez geneid

Description Usage Arguments Value Note See Also Examples

View source: R/xGeneID2Symbol.r

Description

xGeneID2Symbol is supposed to convert gene symbols to entrez geneid.

Usage

1
2
3
4
5
6
7
8
xGeneID2Symbol(
data,
org = c("human", "mouse"),
details = F,
verbose = T,
RData.location = "http://galahad.well.ox.ac.uk/bigdata",
guid = NULL
)

Arguments

data

an input vector containing gene symbols

org

a character specifying an organism. Currently supported organisms are 'human' and 'mouse'. It can be an object 'EG'

details

logical to indicate whether to result in a data frame (in great details). By default, it sets to false

verbose

logical to indicate whether the messages will be displayed in the screen. By default, it sets to false for no display

RData.location

the characters to tell the location of built-in RData files. See xRDataLoader for details

guid

a valid (5-character) Global Unique IDentifier for an OSF project. See xRDataLoader for details

Value

a vector containing symbol with 'NA' for the unmatched if (details set to false); otherwise, a data frame is returned

Note

none.

See Also

xEnricherGenes, xSocialiserGenes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
# Load the library
library(XGR)

# a) provide the input Genes of interest (eg 100 randomly chosen human genes)
## load human genes
org.Hs.eg <- xRDataLoader(RData='org.Hs.eg')
GeneID <- sample(org.Hs.eg$gene_info$GeneID, 100)
GeneID

# b) convert into GeneID
Symbol <- xGeneID2Symbol(GeneID)

# c) convert into a data frame
df <- xGeneID2Symbol(GeneID, details=TRUE)


# advanced use
df <- xGeneID2Symbol(GeneID, org=org.Hs.eg, details=TRUE)

## End(Not run)

XGR documentation built on Jan. 8, 2020, 5:06 p.m.

Related to xGeneID2Symbol in XGR...