@@ -48,12 +48,12 @@ kw_rank_sum<-setClass(
48
48
description = ' The method used to adjust for multiple comparisons.'
49
49
),
50
50
outputs.test_statistic = entity(name = ' test statistic' ,
51
- type = ' numeric ' ,
51
+ type = ' data.frame ' ,
52
52
description = ' the value of the calculated statistic which is converted to a p-value when compared to a chi2-distribution.'
53
53
),
54
54
outputs.p_value = entity.stato(name = ' p value' ,
55
55
stato.id = ' STATO:0000175' ,
56
- type = ' numeric ' ,
56
+ type = ' data.frame ' ,
57
57
description = ' the probability of observing the calculated t-statistic.'
58
58
),
59
59
outputs.dof = entity.stato(name = ' degrees of freedom' ,
@@ -63,7 +63,7 @@ kw_rank_sum<-setClass(
63
63
),
64
64
outputs.significant = entity(name = ' Significant features' ,
65
65
# stato.id='STATO:0000069',
66
- type = ' logical ' ,
66
+ type = ' data.frame ' ,
67
67
description = ' TRUE if the calculated p-value is less than the supplied threhold (alpha)'
68
68
)
69
69
)
@@ -91,11 +91,19 @@ setMethod(f="model.apply",
91
91
output = merge(temp ,as.data.frame(t(output ),stringsAsFactors = FALSE ),by = 0 ,all = TRUE ,sort = FALSE )
92
92
rownames(output )= output $ Row.names
93
93
output = output [,- 1 ]
94
+
94
95
output $ p.value = p.adjust(output $ p.value ,method = param.value(M ,' mtc' ))
95
- output.value(M ,' test_statistic' )= output $ statistic
96
- output.value(M ,' p_value' )= output $ p.value
96
+
97
+ output.value(M ,' test_statistic' )= data.frame (output $ statistic )
98
+ colnames(M $ test_statistic )= M $ factor_names
99
+
100
+ output.value(M ,' p_value' )= data.frame (output $ p.value )
101
+ colnames(M $ p_value )= M $ factor_names
102
+
97
103
output.value(M ,' dof' )= output $ parameter
98
- output.value(M ,' significant' )= output $ p.value < param.value(M ,' alpha' )
104
+
105
+ output.value(M ,' significant' )= data.frame (output $ p.value < param.value(M ,' alpha' ))
106
+ colnames(M $ significant )= M $ factor_names
99
107
100
108
return (M )
101
109
}
0 commit comments