Skip to content

Instantly share code, notes, and snippets.

@arahuja
Created April 20, 2016 18:15
Show Gist options
  • Save arahuja/e8986a1e5eaae8c63b3872fc92188e83 to your computer and use it in GitHub Desktop.
Save arahuja/e8986a1e5eaae8c63b3872fc92188e83 to your computer and use it in GitHub Desktop.
let seq2hla_from_bam
~path
~sample =
let open Biokepi.KEDSL in
let open Biokepi.Pipeline.Construct in
let reference_build = "b37" in
let work_dir =
Biokepi.Machine.work_dir Demeter.machine
// "mskcc-bladder-rna" in
let initial_bam =
workflow_node
(bam_file ~host:Demeter.host ~reference_build path)
in
let pipeline =
Biokepi.Pipeline.Construct.(
bam ~dataset:sample initial_bam
|> bam_to_fastq `Paired
|> seq2hla
)
in
let hla_results =
let compiler =
Compiler.create ()
~processors:8
~reference_build
~work_dir
~machine: Demeter.machine
in
Compiler.seq2hla_hla_types_step ~compiler pipeline
in
hla_results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment