Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Gitlab is now running v13.9.0 - More info ->
here
<-
Open sidebar
VEBER Philippe
codepi
Commits
92bcfe14
Commit
92bcfe14
authored
Jan 15, 2021
by
Louis Duchemin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RER converge start up handle from orthomam
parent
d79f5bbb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
lib/orthomam.ml
lib/orthomam.ml
+26
-0
lib/orthomam.mli
lib/orthomam.mli
+10
-0
No files found.
lib/orthomam.ml
View file @
92bcfe14
...
...
@@ -595,3 +595,29 @@ let draw_site q pos =
|
Error
msg
->
failwith
msg
in
Workflow
.
path_plugin
~
descr
:
"orthomam."
f
let
rer_converge
?
max_read
?
transform
?
weighted
?
scale
?
continuous
~
db
~
phenotypes
=
let
open
Bistro_bio
in
let
module
RER
=
Rer_converge
in
let
species_tree
=
estimated_codon_tree
db
in
let
model
=
Iqtree
.
model_spec
~
freq_type
:
`F
`ECMK07
in
let
queries
=
alignments_of_db
db
|>
List
.
map
~
f
:
(
query
~
convergent_species
:
phenotypes
)
in
let
gene_ids
=
List
.
map
~
f
:
family_id
queries
in
let
ali_files
=
List
.
map
~
f
:
Q
.
alignment
queries
in
let
gene_trees
=
List
.
map
~
f
:
(
fun
q
->
Iqtree
.
iqtree
~
te
:
species_tree
~
m
:
model
~
st
:
(
`CODON
1
)
(
`phylip
q
)
|>
Iqtree
.
treefile
)
ali_files
|>
List
.
zip_exn
gene_ids
in
let
gene_tree_set
=
RER
.
gene_tree_file
gene_trees
in
let
phenotype
=
RER
.
phenotypes_of_convergent_species
phenotypes
in
RER
.
rer_converge
?
max_read
?
transform
?
weighted
?
scale
?
continuous
~
gene_tree_set
~
phenotype
lib/orthomam.mli
View file @
92bcfe14
...
...
@@ -85,3 +85,13 @@ val site_ranking :
Candidate_site
.
t
list
workflow
val
draw_site
:
query
->
int
->
pdf
file
val
rer_converge
:
?
max_read
:
int
->
?
transform
:
[
`none
|
`sqrt
|
`log
]
->
?
weighted
:
bool
->
?
scale
:
bool
->
?
continuous
:
bool
->
db
:
Orthomam_db
.
t
->
phenotypes
:
string
list
workflow
->
tsv
file
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