Skip to content

Commit 39f0468

Browse files
committed
improve filtering of features without ...
... sufficient numbers of paired samples. Implementation now identical to ttest.
1 parent 097545a commit 39f0468

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: structToolbox
22
Type: Package
33
Title: Some tools bult using the struct package
4-
Version: 0.8.3
4+
Version: 0.8.5
55
Author: Gavin Rhys Lloyd
66
Maintainer: Gavin Rhys Lloyd <[email protected]>
77
Description: Extends the class templates provided by the struct package to provide methods for training PCA, PLS models with cross-validation, permutation testing etc.

R/wilcox_test_class.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ setMethod(f="model.apply",
146146
D=predicted(FF)
147147

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

153154

0 commit comments

Comments
 (0)