sampleStrata

0th

Percentile

Accessor function for the 'sampleStrata' information in a mRMRe.Data object

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.

Keywords
methods
Usage
"sampleStrata"(object) "sampleStrata"(object) <- value
Arguments
object
a mRMRe.Data object.
value
a factor vector identifying the stratification of samples.

Aliases
  • sampleStrata
  • sampleStrata<-
  • sampleStrata,mRMRe.Data-method
  • sampleStrata<-,mRMRe.Data-method
Examples
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)
Documentation reproduced from package mRMRe, version 2.0.5, License: Artistic-2.0

Community examples

Looks like there are no examples yet.