Description Usage Arguments Value Author(s) See Also Examples
Perform minimum count based thresholding of an input vector subdivided into groups.
1 2 3 4 5 6 | ## Static method (use this):
## DataFilter$minCountGroupConstraint(X, filtParams, ...)
## Don't use the below:
## S3 method for class 'DataFilter'
minCountGroupConstraint(static, X, filtParams, ...)
|
X |
|
filtParams |
|
... |
Not used |
numeric
vector
or vector of NA
's depending on passing the constraints criteria.
Alex Lisovich, Roger Day
For more information see DataFilter
.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #derive sample groups from outcomes
outcomes<-unique(examples$outcomeMap[,2]);
groups<-list();
for(outcome in outcomes)
groups[[outcome]]<-which(examples$outcomeMap[,2]==outcome);
#perform filtering by groups
fltExperimentSet<-DataFilter$do.apply(examples$msmsExperimentSet,
byRows=TRUE,filterFun=DataFilter$minCountGroupConstraint,filtParams=list(1,0.3,groups),verbose=TRUE);
#print the number of rows set to NA
sum(is.na(rowSums(fltExperimentSet[,-1])))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.