We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9345b1 commit db00214Copy full SHA for db00214
src/ProteomIQon/DTO.fs
@@ -292,6 +292,7 @@ module Common =
292
type GroupFilter =
293
| Tukey of float
294
| Stdev of float
295
+ | TopX of int
296
297
298
module GroupFilter =
@@ -310,7 +311,14 @@ module Common =
310
311
let mean = Seq.mean values
312
let stdev = Seq.stDev values
313
(fun v -> v <= (mean+stdev*threshold) && v >= (mean-stdev*threshold)
- )
314
+ )
315
+ | TopX count ->
316
+ fun (values:seq<float>) ->
317
+ let topX =
318
+ values
319
+ |> Seq.sortDescending
320
+ |> Seq.take count
321
+ fun v -> topX |> Seq.contains v
322
323
324
module LabeledProteinQuantification =
0 commit comments