-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hi @Accio ,
I noticed that wmwTest() on SignedGenesets returns NaNs for valTypes "r" and "f". Not sure if that is intentional.
m <- matrix(c(
0, 0, 0, 0, 0, 5,
0, 0, 0, 0, 5, 5,
0, 0, 0, 5, 5, 5,
5, 5, 0, 0, 0, 0,
5, 0, 0, 0, 0, 0
), byrow=TRUE, nrow=5)
rownames(m) <- paste0("g", 1:5)
colnames(m) <- paste0("s", 1:6)
sign <- BioQC::SignedGenesets(list(
list(name="grows left to right", positive = c("g1", "g2", "g3"), negative = c()),
list(name="grows left to right with neg", positive = c("g1", "g2", "g3"), negative = c("g4", "g5"))
))
BioQC::wmwTest(m, sign, valType="U1")
#> s1 s2 s3 s4 s5 s6
#> grows left to right 0 1.5 3 4 5 6
#> grows left to right with neg -6 -3.0 0 2 4 6
BioQC::wmwTest(m, sign, valType="r")
#> s1 s2 s3 s4 s5 s6
#> grows left to right -1 -0.5 0 0.3333333 0.6666667 1
#> grows left to right with neg -Inf -Inf NaN Inf Inf Inf
BioQC::wmwTest(m, sign, valType="f")
#> s1 s2 s3 s4 s5 s6
#> grows left to right 0 0.25 0.5 0.6666667 0.8333333 1
#> grows left to right with neg -Inf -Inf NaN Inf Inf InfCreated on 2021-08-12 by the reprex package (v2.0.1)
Metadata
Metadata
Assignees
Labels
No labels