mapToSymbol | R Documentation |
The mapToSymbol function can transform other ids from a gene list, network, matrix, sbt file or sct file to gene symbols.
mapToSymbol(inputData, organism="hsapiens", inputType="genelist", idType="auto", edgeType="unweighted", collapse_mode="maxSD", is_outputFile=FALSE, outputFileName="", verbose=TRUE)
inputData |
mapToSymbol function supports five different types of data: "genelist", "network", "matrix", "sbt" and "sct".
For "genelist" type, |
organism |
The organism of the input data. Currently, the package supports the following nine organisms: hsapiens, mmusculus, rnorvegicus, drerio, celegans, scerevisiae, cfamiliaris, dmelanogaster and athaliana. The default is "hsapiens". |
inputType |
The type of the input data. see detail information in |
idType |
The id type of the ids in the input data. MatSAM will use BiomaRt package to transform the input ids to gene symbols based on |
edgeType |
The type of the input network: "weighted" or "unweighted". |
collapse_mode |
The method to collapse duplicate ids. "mean", "median", "maxSD", "maxIQR", "max" and "min" represent the mean, median, max standard deviation, max interquartile range, maximum and minimum of values for ids in each sample. The default is "maxSD". For SCT file, we suggest to use "max" or "min" to collapse duplicate ids in the statistic data. |
is_outputFile |
If |
outputFileName |
The output file name. |
verbose |
Report the extra information on progress. The default is TRUE. |
Jing Wang
###transform ids from a gene list to gene symbols###
geneListDir <- system.file("extdata","exampleGeneList.txt",package="NetSAM")
geneList <- read.table(geneListDir,header=FALSE,sep="\t",stringsAsFactors=FALSE)
geneList <- as.vector(as.matrix(geneList))
geneList_symbol <- mapToSymbol(inputData=geneList, organism="hsapiens", inputType="genelist",idType="affy_hg_u133_plus_2")
###transform ids in the input network to gene symbols###
inputNetwork <- system.file("extdata","exampleNetwork_nonsymbol.net",package="NetSAM")
network_symbol <- mapToSymbol(inputData=inputNetwork,organism="hsapiens",inputType="network",idType="entrezgene_id",edgeType="unweighted")
###transform ids in the input matrix to gene symbols###
inputMatDir <- system.file("extdata","exampleExpressionData_nonsymbol.cct",package="NetSAM")
matrix_symbol <- mapToSymbol(inputData=inputMatDir,organism="hsapiens",inputType="matrix",idType="affy_hg_u133_plus_2",collapse_mode="maxSD")
###transform ids in the sbt file to gene symbols###
inputSBTDir <- system.file("extdata","exampleSBT.sbt",package="NetSAM")
sbt_symbol <- mapToSymbol(inputData= inputSBTDir,organism="hsapiens",inputType="sbt",idType="affy_hg_u133_plus_2")
###transform ids in the sct file to gene symbols###
inputSCTDir <- system.file("extdata","exampleSCT.sct",package="NetSAM")
sct_symbol <- mapToSymbol(inputData= inputSCTDir,organism="hsapiens",inputType="sct",idType="affy_hg_u133_plus_2",collapse_mode="min")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.