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(
proteomics = NA,
transcriptomics = NA,
methylation = NA,
cnv = NA,
phospho = NA,
proteomics_tag = "prot_",
transcriptomics_tag = "txn_",
methylation_tag = "meth_",
cnv_tag = "cnv_",
phospho_tag = "phospho_",
id_column = NA
)
proteomics |
is a matrix of transcript values where rownames are ids and columns are conditions |
methylation |
is a matrix of methylation values where rownames are ids and columns are conditions |
phospho |
is a dataframe of phosphorylation data |
proteomics_tag |
is a text prefix to be added to protein ids |
transcriptomics_tag |
is a text prefix to be added to transcript ids |
methylation_tag |
is a text prefix to be added to methylation ids |
cnv_tag |
is a text prefix to be added to cnv ids |
phospho_tag |
is a text prefix to be added to phospho ids |
id_column |
is an optional column number for identifiers for the phospho data |
CNV |
is a matrix of copy number variant(CNV) values where rownames are ids and columns are conditions |
This combines matrices of different omics types together and adds prefix tags to the ids.
dontrun{
library(leapr)
# read in the example protein data
data("protdata")
# read in the example transcriptomics data
data("transdata")
# merge the two datasets by rows and add prefix tags for different omics types
multi_omics = combine_omics(proteomics=protdata, transcriptomics=transdata)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.