A vector. The names should be the source IDs, and the values should be the target IDs.
genesKept
The method to select target gene in more than one targets. "var"/"foldchange"/"abs" means selecting the gene with largest variation/fold change/absolute value. "first" means selecting the first target and "random" means randomly selection.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(KEGGprofile)
KEGG.db contains mappings based on older data because the original
resource was removed from the the public domain before the most
recent update was produced. This package should now be considered
deprecated and future versions of Bioconductor may not have it
available. Users who want more current data are encouraged to look
at the KEGGREST or reactome.db packages
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/KEGGprofile/newIdMatrix.Rd_%03d_medium.png", width=480, height=480)
> ### Name: newIdMatrix
> ### Title: newIdMatrix
> ### Aliases: newIdMatrix
>
> ### ** Examples
>
> convertIdTable<-paste("New",c(1,2,2,2,1,3,4,4,5,5))
> names(convertIdTable)<-paste("Old",1:length(convertIdTable))
> temp<-matrix(rnorm(20),ncol=2)
> row.names(temp)<-names(convertIdTable)
> colnames(temp)<-c("Exp1","Exp2")
> newIdMatrix(temp,genesKept="foldchange",convertIdTable)
Exp1 Exp2
New 1 0.3689399 2.1048044
New 2 -2.2420981 0.2071265
New 3 -0.1770710 1.6386308
New 4 0.1119039 -1.5215000
New 5 -1.5513755 -0.7464663
>
>
>
>
>
> dev.off()
null device
1
>