View source: R/drug_Sensitivity_Signature.R
drugSensitivitySig | R Documentation |
Given a Xeva object and drug name, this function will return sensitivity values for all the genes/features.
drugSensitivitySig( object, drug, sensitivity.measure, mDataType, standardize = c("SD", "rescale", "none"), features = NULL, fit = c("lm", "CI", "pearson", "spearman"), nthread = 1, verbose = TRUE )
object |
The |
drug |
Name of the drug. |
sensitivity.measure |
Name of the sensitivity measure. |
mDataType |
Molecular data type. |
standardize |
Default |
features |
Set which molecular data features to use. Default |
fit |
Association method to use, can be 'lm', 'CI', 'pearson' or 'spearman'. Default |
nthread |
number of threads |
verbose |
Default |
Method to compute association can be specified by fit
. It can be one of the:
"lm" for linear models
"CI" for concordance index
"pearson" for Pearson correlation
"spearman" for Spearman correlation
If fit is set to NA, processed data (an ExpressionSet) will be returned.
A matrix of values can be directly passed to molData.
In case where a model.id
maps to multiple biobase.id
s, the first biobase.id
in the data.frame
will be used.
A data.frame
with features and values.
data(brca) senSig <- drugSensitivitySig(object=brca, drug="tamoxifen", mDataType="RNASeq", sensitivity.measure="slope", fit = "lm") ## example to compute the Pearson correlation between gene expression and PDX response senSig <- drugSensitivitySig(object=brca, drug="tamoxifen", mDataType="RNASeq", sensitivity.measure="slope", fit = "pearson", features=c(1,2,3,4,5,6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.