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
6b7c7e02
Commit
6b7c7e02
authored
Oct 17, 2020
by
Louis Duchemin
Browse files
Gemma pipeline for relatedness matrix
parent
8c0cd86d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
lib/gemma.ml
lib/gemma.ml
+29
-0
lib/gemma.mli
lib/gemma.mli
+15
-0
No files found.
lib/gemma.ml
0 → 100644
View file @
6b7c7e02
open
Core_kernel
open
Bistro
open
Bistro
.
Shell_dsl
class
type
relatedness_matrix
=
object
inherit
text
method
format
:
[
`gemma_relatedness_matrix
]
end
let
%
pworkflow
genotype_of_fasta
fasta
=
let
module
G
=
Reviewphiltrans_toolbox
.
Gemma
in
G
.
write_genotypes
~
alignment
:
[
%
path
fasta
]
~
output
:
[
%
dest
]
let
template_of_mode
m
=
int
(
match
m
with
|
`Centered
->
1
|
`Standardized
->
2
)
let
calculate_relatedness_matrix
~
mode
~
genotype
~
phenotype
=
Workflow
.
shell
~
descr
:
"gemma.calculate_relatedness_matrix"
[
cmd
"gemma"
[
opt
"-g"
dep
genotype
;
opt
"-p"
dep
phenotype
;
opt
"-gk"
template_of_mode
mode
;
opt
"-o"
Fn
.
id
dest
;
]
]
\ No newline at end of file
lib/gemma.mli
0 → 100644
View file @
6b7c7e02
open
Bistro
open
File_formats
class
type
relatedness_matrix
=
object
inherit
text
method
format
:
[
`gemma_relatedness_matrix
]
end
val
genotype_of_fasta
:
aminoacid_fasta
file
->
bimbam
file
val
calculate_relatedness_matrix
:
mode
:
[
`Centered
|
`Standardized
]
->
genotype
:
bimbam
file
->
phenotype
:
bimbam
file
->
relatedness_matrix
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