Skip to content

Commit

Permalink
improve filtering of features without ...
Browse files Browse the repository at this point in the history
... sufficient numbers of paired samples.
Implementation now identical to ttest.
  • Loading branch information
grlloyd committed Jun 16, 2021
1 parent 097545a commit 39f0468
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: structToolbox
Type: Package
Title: Some tools bult using the struct package
Version: 0.8.3
Version: 0.8.5
Author: Gavin Rhys Lloyd
Maintainer: Gavin Rhys Lloyd <[email protected]>
Description: Extends the class templates provided by the struct package to provide methods for training PCA, PLS models with cross-validation, permutation testing etc.
Expand Down
5 changes: 3 additions & 2 deletions R/wilcox_test_class.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ setMethod(f="model.apply",
D=predicted(FF)

# check equal numbers per class. if not equal then exclude.
out=FF$count[,1]!=FF$count[,2]
D$data=D$data[,!out]
IN=rownames(FF$count)[(FF$count[,1]==FF$count[,2]) & (FF$count[,1]>2) & (FF$count[,2]>2)]
D$data=D$data[,IN]
D$variable_meta=D$variable_meta[IN,]
}


Expand Down

0 comments on commit 39f0468

Please sign in to comment.