summarizeMolecularProfiles,PharmacoSet-method | R Documentation |
Given a PharmacoSet with molecular data, this function will summarize the data into one profile per cell line, using the chosen summary.stat. Note that this does not really make sense with perturbation type data, and will combine experiments and controls when doing the summary if run on a perturbation dataset.
## S4 method for signature 'PharmacoSet'
summarizeMolecularProfiles(
object,
mDataType,
cell.lines,
features,
summary.stat = c("mean", "median", "first", "last", "and", "or"),
fill.missing = TRUE,
summarize = TRUE,
verbose = TRUE,
binarize.threshold = NA,
binarize.direction = c("less", "greater"),
removeTreated = TRUE
)
object |
|
mDataType |
|
cell.lines |
|
features |
|
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 |
|
binarize.threshold |
|
binarize.direction |
|
removeTreated |
|
matrix
An updated PharmacoSet with the molecular data summarized
per cell line.
data(GDSCsmall)
GDSCsmall <- summarizeMolecularProfiles(GDSCsmall, mDataType = "rna", cell.lines=sampleNames(GDSCsmall), summary.stat = 'median', fill.missing = TRUE, verbose=TRUE)
GDSCsmall
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.