CoreSet-utils {CoreGx} | R Documentation |
CoreSet
object.Documentation for utility methods for a CoreSet
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 'CoreSet' subsetBySample(x, samples) ## S4 method for signature 'CoreSet' subsetByTreatment(x, treatments) ## S4 method for signature 'CoreSet' subsetByFeature(x, features, mDataTypes)
x |
A |
samples |
|
treatments |
|
features |
|
mDataTypes |
|
subsetBySample: Subset a CoreSet
object by sample identifier.
value: a CoreSet
object containing only samples
.
subsetByTreatment: Subset a CoreSet
object by treatment identifier.
value: a CoreSet
object containing only treatments
.
subsetByFeature: Subset a CoreSet
object by molecular feature
identifier.
value: a CoreSet
object containing only features
.
See details.
data(clevelandSmall_cSet) ## subset methods ### subsetBySample samples <- cellInfo(clevelandSmall_cSet)$cellid[seq_len(10)] clevelandSmall_cSet_sub <- subsetBySample(clevelandSmall_cSet, samples) ## subset methods ### subsetByTreatment #treatments <- treatmentInfo(clevelandSmall_cSet)$treatmentid[seq_len(10)] #clevelandSmall_cSet_sub <- subsetByTreatment(clevelandSmall_cSet, treatments) ## subset methods ### subsetByFeature features <- fNames(clevelandSmall_cSet, 'rna')[seq_len(5)] clevelandSmall_cSet_sub <- subsetByFeature(clevelandSmall_cSet, features, 'rna')