IDMapping(organism="hsapiens",dataType="list", inputGeneFile=NULL,
inputGene=NULL, sourceIdType, targetIdType, collapseMethod="mean",
is_outputFile=FALSE, outputFileName="",methodType="R",
hostName="http://www.webgestalt.org/")listOrganism to check the available organisms.
list (a gene list), rnk (a ranked gene list) and gmt (a gmt file).
txt file for a gene list,
a rnk file for a gene list with scores (separated by tab),
a gmt file (first column is category id, second one is external link of
the category and others are the annotated genes. all columns are separated by tab).
vector object for a gene list and
an R data.frame object for a gene list with scores.
listIDType.
listIDType.
mean, median, min and max
represent the mean, median, minimum and maximum of scores for the duplicate ids.
R or Python function to read it.
Sometimes Python code is faster than the R
code.
If users select to use Python code to read the mapping
table, users should first install python and the module pandas
in the computer.
listArchiveURL function
to get all archive version URL.
targetIdType
is one of entrezgene, genesymbol and genename, the output
object will contain four columns for a gene list (userid, genesymbol,
genename and entrezgene), five columns for a gene list with scores
(userid, genesymbol, genename, entrezgene and score)
and six columns for a gmt file (geneset, link, userid,
genesymbol, genename and entrezgene). If the targetIdType
is other ID type, the data.frame object will add one more column targetid.geneFile<-system.file("extdata","interestingGenes.txt",package="WebGestaltR")
#idmap <- IDMapping(organism="hsapiens",dataType="list",
#inputGeneFile=geneFile, sourceIdType="genesymbol",targetIdType="entrezgene",
#is_outputFile=FALSE,outputFileName="",methodType="R",
#hostName="http://www.webgestalt.org/")
Run the code above in your browser using DataLab