Description Usage Arguments Value Examples
View source: R/summarizeMolecularProfiles.R
Given a ToxicoSet with molecular data, this function will summarize the data into one profile per experimental condition (duration, dose level) using the chosen summary.stat and return a SummarizedExperiment object, with one Assay corresponding to a requested drug.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
tSet |
|
mDataType |
|
cell_lines |
|
drugs |
|
features |
|
duration |
|
dose |
|
summary.stat |
|
fill.missing |
|
summarize |
A flag which when set to FALSE (defaults to TRUE) disables summarizing and returns the data unchanged as a ExpressionSet |
verbose |
|
SummarizedExperiment
A SummarizedExperiment object with the molecular data summarized
per cell line.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data(TGGATESsmall)
summMP <- ToxicoGx::summarizeMolecularProfiles(
tSet = TGGATESsmall, mDataType = "rna",
cell_lines=cellNames(TGGATESsmall), drugs = head(drugNames(TGGATESsmall)),
features = fNames(TGGATESsmall,"rna")[seq_len(100)], duration = "8",
dose = c("Control", "High"), summary.stat = "median",
fill.missing = TRUE, verbose=TRUE
)
#subset into expression matrix for a requested drug
assays <- SummarizedExperiment::assays(summMP)[[drugNames(TGGATESsmall)[1]]]
#summarization of phenoData for requested experiments
phenoData <- SummarizedExperiment::colData(summMP)
#summarization of phenoData for requested experiments
featureData <- SummarizedExperiment::rowData(summMP) #featureData for requested experiments
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.