View source: R/combine_omics.R
combine_omics | R Documentation |
Combine two or more omics matrices into one multi-omics matrix with 'tagged' ids.
combine_omics(omics_list, id_list = rep(NA, length(omics_list)))
omics_list |
List of |
id_list |
List of identifers to use, in the same order as the omics_list elements. If an element is 'NA', then rownames are used. |
This combines matrices of different omics types together and adds prefix tags to the ids.
combined omics ExpressionSet
library(leapR)
pdata <- download.file('https://figshare.com/ndownloader/files/55781147',method='libcurl',destfile='protData.rda')
load('protData.rda')
p <- file.remove("protData.rda")
tdata <- download.file("https://figshare.com/ndownloader/files/55781153",method='libcurl',destfile='transData.rda')
load('transData.rda')
p <- file.remove("transData.rda")
phdata<-download.file('https://figshare.com/ndownloader/files/55781120',method='libcurl',destfile = 'phosData.rda')
#phosphodata<-read.csv("phdata",check.names=FALSE,row.names=1)
load('phosData.rda')
p <- file.remove('phosData.rda')# read in the example protein data
# merge the three datasets by rows and add prefix tags for different omics types
multi_omics = combine_omics(list(pset, tset, phset), list(NA,NA,'hgnc_id'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.