multinomial.ml 486 Bytes
Newer Older
1
open Core
Philippe Veber's avatar
Philippe Veber committed
2 3
open Bistro
open Bistro.Shell_dsl
4 5
open File_formats

Philippe Veber's avatar
Philippe Veber committed
6 7 8
let multinomial ~(tree_sc:_ pworkflow) ~(faa:aminoacid_fasta pworkflow) : [`multinomial] dworkflow =
  let img = Env.env_py in
  Workflow.shell ~descr:("calc_multinomial") [
9
    mkdir_p dest;
Philippe Veber's avatar
Philippe Veber committed
10
    cmd "python" ~img [
11 12 13 14
      file_dump (string Scripts.calc_multinomial) ;
      opt "-t" dep tree_sc;
      opt "-a" dep faa;
      opt "-o"  ident (dest // "out.tsv") ;
15 16 17 18
    ]
  ]

let results w =
Philippe Veber's avatar
Philippe Veber committed
19
  Workflow.select w ["out.tsv"]