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
631e6a6a
Commit
631e6a6a
authored
Jun 19, 2018
by
Philippe Veber
Browse files
compilation of external scripts
parent
d1a36d18
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
5 deletions
+12
-5
lib/jbuild
lib/jbuild
+6
-0
lib/models_def.ml
lib/models_def.ml
+2
-2
lib/ocamlify_scripts.sh
lib/ocamlify_scripts.sh
+1
-0
lib/pipeline.ml
lib/pipeline.ml
+3
-3
lib/scripts/parse_input_tree.py
lib/scripts/parse_input_tree.py
+0
-0
No files found.
lib/jbuild
View file @
631e6a6a
...
...
@@ -5,3 +5,9 @@
(libraries (bistro.bioinfo bistro.utils))
(preprocess (pps (ppx_jane ppx_csv_conv bistro.ppx)))
))
(rule
((targets (scripts.ml))
(action (run bash ocamlify_scripts.sh))
(deps ((file ocamlify_scripts.sh)
(glob_files scripts/*)))))
lib/models_def.ml
View file @
631e6a6a
...
...
@@ -11,9 +11,9 @@ type model =
let
string_of_model
m
=
match
m
with
|
H0
->
"H0"
|
Ha
->
"Ha"
|
Ha
->
"Ha"
let
define_bpp_config_of_model
~
parsed_tree
m
=
match
m
with
let
define_bpp_config_of_model
m
=
match
m
with
|
H0
->
{
|
alphabet
=
Codon
(
letter
=
DNA
)
genetic_code
=
Standard
input
.
tree
.
format
=
Nhx
...
...
lib/ocamlify_scripts.sh
0 → 100644
View file @
631e6a6a
ocamlify
$(
for
f
in
`
ls
scripts/
*
[
^~]
`
;
do
echo
--var-string
$(
basename
${
f
%.*
}
)
$f
;
done
| xargs
)
--output
scripts.ml
lib/pipeline.ml
View file @
631e6a6a
...
...
@@ -9,9 +9,9 @@ let parse_input_tree ~tree : parsed_input_tree directory workflow =
workflow
~
descr
:
"utils.parse_input_tree"
[
(*let env = docker_image ~account:"carinerey" ~name:"ete3:3.0.0b35" () in*)
cmd
"python"
(*~env*)
[
string
"../etc/utils/bin/
parse_input_tree
.py"
;
opt
"-t"
dep
tree
;
opt
"-o"
ident
dest
;
file_dump
(
string
Scripts
.
parse_input_tree
)
;
opt
"-t"
dep
tree
;
opt
"-o"
ident
dest
;
]
]
...
...
etc/utils/bin
/parse_input_tree.py
→
lib/scripts
/parse_input_tree.py
View file @
631e6a6a
File moved
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