Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VEBER Philippe
codepi
Commits
edd6f630
Commit
edd6f630
authored
Oct 26, 2020
by
Louis Duchemin
Browse files
Failing test for Gemma toolbox
parent
6272890c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
822 additions
and
1 deletion
+822
-1
lib/toolbox/dune
lib/toolbox/dune
+4
-1
lib/toolbox/gemma.ml
lib/toolbox/gemma.ml
+10
-0
tests/data/gemma_output.tsv
tests/data/gemma_output.tsv
+808
-0
No files found.
lib/toolbox/dune
View file @
edd6f630
(library
(name reviewphiltrans_toolbox)
(libraries biotk biocaml.ez ocaml-r.graphics ocaml-r.grDevices phylogenetics)
(preprocess (pps ppx_jane)))
(inline_tests
(deps ../../tests/data/gemma_output.tsv))
(preprocess
(pps ppx_jane ppx_inline_test)))
lib/toolbox/gemma.ml
View file @
edd6f630
...
...
@@ -153,4 +153,14 @@ module Result_file = struct
|>
List
.
map
~
f
:
min_pval_of_item
|>
List
.
reduce_exn
~
f
:
Float
.
min
let
%
test
"gemma output parsing"
=
Result
.
is_ok
@@
of_file
"../../tests/data/gemma_output.tsv"
let
%
test
"gemma output aggregation"
=
match
of_file
"../../tests/data/gemma_output.tsv"
with
|
Error
_
->
false
|
Ok
table
->
Result_table
.
nrows
(
to_result_table
table
~
site_aggregator
:
min_pvalue_aggregator
)
=
103
end
tests/data/gemma_output.tsv
0 → 100644
View file @
edd6f630
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment