View source: R/summarizeMolecularProfiles.R
summarizeMolecularProfiles | R Documentation |
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.
summarizeMolecularProfiles( tSet, mDataType, cell_lines = NULL, drugs = NULL, features = NULL, duration = NULL, dose = c("Control", "Low", "Middle", "High"), summary.stat = c("mean", "median", "first", "last"), fill.missing = TRUE, summarize = TRUE, verbose = TRUE )
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.
data(TGGATESsmall) summMP <- ToxicoGx::summarizeMolecularProfiles( tSet = TGGATESsmall, mDataType = "rna", cell_lines=sampleNames(TGGATESsmall), drugs = head(treatmentNames(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)[[treatmentNames(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.