drugSensitivitySig,PharmacoSet-method | R Documentation |
Given a Pharmacoset of the sensitivity experiment type, and a list of drugs, the function will compute a signature for the effect gene expression on the molecular profile of a cell. The function returns the estimated coefficient, the t-stat, the p-value and the false discovery rate associated with that coefficient, in a 3 dimensional array, with genes in the first direction, drugs in the second, and the selected return values in the third.
## S4 method for signature 'PharmacoSet'
drugSensitivitySig(
object,
mDataType,
drugs,
features,
cells,
tissues,
sensitivity.measure = "auc_recomputed",
molecular.summary.stat = c("mean", "median", "first", "last", "or", "and"),
sensitivity.summary.stat = c("mean", "median", "first", "last"),
returnValues = c("estimate", "pvalue", "fdr"),
sensitivity.cutoff,
standardize = c("SD", "rescale", "none"),
molecular.cutoff = NA,
molecular.cutoff.direction = c("less", "greater"),
nthread = 1,
parallel.on = c("drug", "gene"),
modeling.method = c("anova", "pearson"),
inference.method = c("analytic", "resampling"),
verbose = TRUE,
...
)
object |
|
mDataType |
|
drugs |
|
features |
|
cells |
|
tissues |
|
sensitivity.measure |
|
molecular.summary.stat |
|
sensitivity.summary.stat |
|
returnValues |
|
sensitivity.cutoff |
|
standardize |
|
molecular.cutoff |
Allows the user to binarize the sensitivity data using this threshold. |
molecular.cutoff.direction |
|
nthread |
|
parallel.on |
One of "gene" or "drug", chooses which level to parallelize computation (by gene, or by drug). |
modeling.method |
One of "anova" or "pearson". If "anova", nested linear models (including and excluding the molecular feature) adjusted for are fit after the data is standardized, and ANOVA is used to estimate significance. If "pearson", partial correlation adjusted for tissue of origin are fit to the data, and a Pearson t-test (or permutation) test are used. Note that the difference is in whether standardization is done across the whole dataset (anova) or within each tissue (pearson), as well as the test applied. |
inference.method |
Should "analytic" or "resampling" (permutation testing + bootstrap) inference be used to estimate significance. For permutation testing, QUICK-STOP is used to adaptively stop permutations. Resampling is currently only implemented for "pearson" modelling method. |
verbose |
|
... |
additional arguments not currently fully supported by the function |
array
a 3D array with genes in the first dimension, drugs in the
second, and return values in the third.
data(GDSCsmall)
drug.sensitivity <- drugSensitivitySig(GDSCsmall,
mDataType = "rna",
nthread = 1, features = fNames(GDSCsmall, "rna")[1]
)
print(drug.sensitivity)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.