...
|
...
|
@@ -26,13 +26,13 @@ setMethod("MRihw", signature = "fitFeatureModelResults", function(obj, p, adjust
|
26
|
26
|
# set covariate to be num of non-zero elements per row
|
27
|
27
|
p <- obj@pvalues
|
28
|
28
|
covariate <- rowSums(obj@counts != 0)
|
29
|
|
- ihwRes <- ihw(p, covariate, alpha)
|
|
29
|
+ ihwRes <- IHW::ihw(p, covariate, alpha)
|
30
|
30
|
padj <- ihwRes@df$adj_pvalue
|
31
|
31
|
}
|
32
|
32
|
if (adjustMethod == "ihw-abundance"){
|
33
|
33
|
# use feature median count as covariate
|
34
|
34
|
covariate <- rowMedians(obj@counts)
|
35
|
|
- ihwRes <- ihw(p, covariate, alpha)
|
|
35
|
+ ihwRes <- IHW::ihw(p, covariate, alpha)
|
36
|
36
|
padj <- ihwRes@df$adj_pvalue
|
37
|
37
|
}
|
38
|
38
|
padj
|
...
|
...
|
@@ -61,7 +61,7 @@ setMethod("MRihw", signature = "fitZigResults", function(obj, p, adjustMethod, a
|
61
|
61
|
if (adjustMethod == "ihw-abundance"){
|
62
|
62
|
# use Amean as covariate
|
63
|
63
|
covariate <- obj@eb$Amean
|
64
|
|
- ihwRes <- ihw(p, covariate, alpha)
|
|
64
|
+ ihwRes <- IHW::ihw(p, covariate, alpha)
|
65
|
65
|
padj <- ihwRes@df$adj_pvalue
|
66
|
66
|
}
|
67
|
67
|
padj
|