Snakefile 581 Bytes
Newer Older
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
1
2
3
4
5
6
7
__export2graphlan_exec_command = config['export2graphlan'].get('exec_command', 'export2graphlan.py')
__export2graphlan_options = config['export2graphlan'].get('options', "")

rule export2graphlan:
    input:
        __export2graphlan_input
    output:
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
8
        tree = __export2graphlan_output_tree,
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
9
        annot = __export2graphlan_output_annotation
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
10
11
12
13
    params:
        exec_command = __export2graphlan_exec_command,
        options = __export2graphlan_options
    shell:
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
14
        "{params.exec_command} {params.options} -i {input} --tree {output.tree} --annotation {output.annot}"