You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ae1a11a
Browse filesBrowse the repository at this point in the historyBrowse files
// raw[i] = 1 - (1 - p_(i+1))^(m-i) for i = 0..m-1 (rank in 1-indexed sorted order = i+1)
110
+
letraw=
111
+
sorted
112
+
|> Array.mapi (fun i (_,pv)->1.0-(1.0- pv)** float (m - i))
113
+
114
+
// running max from the left, capped at 1.0
115
+
letadjAsc=
116
+
raw
117
+
|> Array.scan (fun runningMax r -> max runningMax r)0.0
118
+
|> Array.tail
119
+
|> Array.map (min 1.0)
120
+
121
+
Array.zip (sorted |> Array.map fst) adjAsc
122
+
|> Array.iter (fun(i,adj)-> result.[i]<- adj)
123
+
124
+
result
125
+
126
+
81
127
/// Benjamini-Hochberg Correction (BH)
82
128
/// 'projection' should return a tuple of any identifier and the pValues as float, when applied to 'rawP'
83
129
/// This function applies the Benjamini-Hochberg multiple testing correcture and returns all False Discovery Rates to which the given p-values are still
0 commit comments