File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
Package: structToolbox
2
2
Type: Package
3
3
Title: Data processing & analysis tools for Metabolomics and other omics
4
- Version: 1.19.0
4
+ Version: 1.19.1
5
5
Authors@R: c(
6
6
person(
7
7
c("Gavin","Rhys"),
Original file line number Diff line number Diff line change @@ -144,20 +144,23 @@ setMethod(f="model_apply",
144
144
return (A )
145
145
})
146
146
147
+ out_cols = terms(M $ formula )
148
+ out_cols = attributes(out_cols )$ term.labels
149
+
147
150
f_statistic = sapply(output ,function (x ){
148
151
x $ `F value`
149
152
})
150
153
f_statistic = as.data.frame(t(f_statistic ))
151
154
colnames(f_statistic )= rownames(output [[1 ]])
152
- f_statistic = f_statistic [,colnames( y ) ,drop = FALSE ]
155
+ f_statistic = f_statistic [,out_cols ,drop = FALSE ]
153
156
154
157
155
158
p_value = sapply(output ,function (x ){
156
159
x $ `Pr(>F)`
157
160
})
158
161
p_value = as.data.frame(t(p_value ))
159
162
colnames(p_value )= rownames(output [[1 ]])
160
- p_value = p_value [,colnames( y ) ,drop = FALSE ]
163
+ p_value = p_value [,out_cols ,drop = FALSE ]
161
164
162
165
# fdr correct the p.values
163
166
for (k in 1 : ncol(p_value )) {
You can’t perform that action at this time.
0 commit comments