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
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
VEBER Philippe
codepi
Commits
c2f56eac
Commit
c2f56eac
authored
Oct 22, 2020
by
Louis Duchemin
Browse files
Gemma univariate LMM call as Bistro workflow
parent
c67a3c8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
lib/gemma.ml
lib/gemma.ml
+24
-0
lib/gemma.mli
lib/gemma.mli
+7
-0
No files found.
lib/gemma.ml
View file @
c2f56eac
...
...
@@ -34,6 +34,30 @@ let%pworkflow phenotype_of_tree nhx =
in
Out_channel
.
with_file
[
%
dest
]
~
f
:
(
write_phenotypes
leaves
)
let
template_of_lmm
lmm
=
int
(
match
lmm
with
|
`Wald
->
1
|
`LRT
->
2
|
`Score
->
3
|
`All
->
4
)
let
univariate_lmm
~
lmm
~
genotype
~
phenotype
~
relatedness_matrix
=
Workflow
.
shell
~
descr
:
"gemma.univariate_lmm"
[
cmd
"gemma"
[
opt
"-g"
dep
genotype
;
opt
"-p"
dep
phenotype
;
opt
"-lmm"
template_of_lmm
lmm
;
opt
"-k"
dep
relatedness_matrix
;
opt
"-outdir"
Fn
.
id
tmp
;
]
;
cmd
"cp"
[
tmp
//
"result.assoc.txt"
;
dest
;
]
;
]
let
template_of_mode
m
=
int
(
match
m
with
...
...
lib/gemma.mli
View file @
c2f56eac
...
...
@@ -14,3 +14,10 @@ val calculate_relatedness_matrix :
genotype
:
bimbam
file
->
phenotype
:
bimbam
file
->
relatedness_matrix
file
val
univariate_lmm
:
lmm
:
[
`Wald
|
`LRT
|
`Score
|
`All
]
->
genotype
:
bimbam
file
->
phenotype
:
bimbam
file
->
relatedness_matrix
:
relatedness_matrix
file
->
text
file
\ No newline at end of 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