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
057f45bd
Commit
057f45bd
authored
Sep 27, 2019
by
Philippe Veber
Browse files
app/Reviewphiltrans: switch to new real data pipeline
parent
ac2adfb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
app/reviewphiltrans_app.ml
app/reviewphiltrans_app.ml
+39
-0
No files found.
app/reviewphiltrans_app.ml
View file @
057f45bd
open
Core
open
Core
open
Reviewphiltrans
open
Reviewphiltrans
let
first_nhx_in_dir
dir
=
Sys
.
readdir
dir
|>
Array
.
find_exn
~
f
:
(
String
.
is_suffix
~
suffix
:
".nhx"
)
let
realdata_main
~
indir
~
outdir
~
np
~
mem
()
=
let
mem
=
Option
.
map
mem
~
f
:
(
fun
i
->
`GB
i
)
in
let
rd
=
Real_dataset
.
make
~
alignment_dir_path
:
(
Filename
.
concat
indir
"Alignments"
)
~
tree_path
:
(
Filename
.
concat
indir
(
first_nhx_in_dir
indir
))
in
Real_dataset
.
repo
[
`Multinomial
]
rd
|>
Bistro_utils
.
Repo
.
build_main
~
outdir
?
np
?
mem
let
realdata_command
=
let
open
Command
.
Let_syntax
in
Command
.
basic
~
summary
:
"Run pipeline on real data"
[
%
map_open
let
outdir
=
flag
"--outdir"
(
required
string
)
~
doc
:
"PATH Output directory"
and
indir
=
flag
"--indir"
(
required
string
)
~
doc
:
"PATH Input directory"
(* and preview =
* flag "--preview-mode" no_arg ~doc:" Preview mode"
* and use_diffsel =
* flag "--diffsel" no_arg ~doc:" use the diffsel method (very slow)."
* and use_c60 =
* flag "--c60" no_arg ~doc:" use the pcoc c60 method (slow)."
* and calc_dnds =
* flag "--dnds" no_arg ~doc:" calculate dn ds dnds trees (slow)." *)
and
np
=
flag
"--np"
(
optional
int
)
~
doc
:
"INT Number of available processors"
and
mem
=
flag
"--mem"
(
optional
int
)
~
doc
:
"INT Available memory (in GB)"
in
realdata_main
~
indir
~
outdir
~
np
~
mem
]
let
()
=
let
()
=
Command
.
group
~
summary
:
"Reviewphiltrans"
[
Command
.
group
~
summary
:
"Reviewphiltrans"
[
"validation"
,
Pipeline
.
validation_command
;
"validation"
,
Pipeline
.
validation_command
;
...
...
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