PharmacoSet-utils | R Documentation |
PharmacoSet
object.Documentation for utility methods for a PharmacoSet
object, such as
set operations like subset and intersect. See @details for information
on different types of methods and their implementations.
## S4 method for signature 'PharmacoSet'
subsetBySample(x, samples)
## S4 method for signature 'PharmacoSet'
subsetByTreatment(x, treatments)
## S4 method for signature 'PharmacoSet'
subsetByFeature(x, features, mDataTypes)
x |
A |
samples |
|
treatments |
|
features |
|
mDataTypes |
|
subsetBySample: Subset a PharmacoSet
object by sample identifier.
value: a PharmacoSet
object containing only samples
.
subsetByTreatment: Subset a PharmacoSet
object by treatment identifier.
value: a PharmacoSet
object containing only treatments
.
subsetByFeature: Subset a PharmacoSet
object by molecular feature
identifier.
value: a PharmacoSet
object containing only features
.
See details.
data(CCLEsmall)
## subset methods
### subsetBySample
samples <- sampleInfo(CCLEsmall)$sampleid[seq_len(10)]
CCLEsmall_sub <- subsetBySample(CCLEsmall, samples)
## subset methods
### subsetByTreatment
#treatments <- drugInfo(CCLEsmall)$drugid[seq_len(10)]
#CCLEsmall_sub <- subsetByTreatment(CCLEsmall, treatments)
## subset methods
### subsetByFeature
features <- fNames(CCLEsmall, 'rna')[seq_len(5)]
CCLEsmall_sub <- subsetByFeature(CCLEsmall, features, 'rna')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.