sampleStrata | R Documentation |
The sampleStrata vector consists of a sampling stratification that will be used in computing mutual information between features. If known batch effects or sample stratification is present between samples, identify such subsets using this.
## S4 method for signature 'mRMRe.Data'
sampleStrata(object)
## S4 replacement method for signature 'mRMRe.Data'
sampleStrata(object) <- value
object |
a |
value |
a factor vector identifying the stratification of samples. |
Nicolas De Jay, Simon Papillon-Cavanagh, Benjamin Haibe-Kains
set.thread.count(2)
data(cgps)
feature_data <- mRMR.data(data = data.frame(cgps.ge))
# No stratification (default)
sampleStrata(feature_data)
# Random stratification
sampleStrata(feature_data) <- as.factor(sample(c(0,1),
sampleCount(feature_data), replace=TRUE))
# Show result
sampleStrata(feature_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.