multinomial.ml 527 Bytes
Newer Older
1 2 3 4 5 6 7
open Core
open Bistro.Std
open Bistro.EDSL
open Bistro_bioinfo.Std
open File_formats

let multinomial ~(tree_id:_ workflow) ~(tree_sc:_ workflow) ~(faa:aminoacid_fasta workflow) : [`multinomial] directory workflow =
8
  let env = Env.env_py in
9 10 11
  workflow ~descr:("calc_multinomial") [
    mkdir_p dest;
    cmd "python" ~env [
12 13 14 15
      file_dump (string Scripts.calc_multinomial) ;
      opt "-t" dep tree_sc;
      opt "-a" dep faa;
      opt "-o"  ident (dest // "out.tsv") ;
16 17 18 19 20
    ]
  ]

let results w =
  w / selector ["out.tsv"]