Snakefile 882 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
__eggnogmapper2_exec_command = config.get('eggnogmapper2', {}).get('exec_command', 'emapper.py')
__eggnogmapper2_diamond_options = config.get('eggnogmapper2', {}).get('diamond', {}).get('options', '')
__eggnogmapper2_diamond_threads = config.get('eggnogmapper2', {}).get('diamond', {}).get('threads', 4)

rule eggnogmapper2_diamond:
    """
    Run diamond mode of eggnogmapper v2
    """
    input:
        __eggnogmapper2_diamond_input
    output:
        __eggnogmapper2_diamond_output
    params:
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
14
        exec_command = __eggnogmapper2_exec_command + ' -m diamond --no_annot',
15
16
17
18
19
20
21
22
        output_prefix = __eggnogmapper2_diamond_output_prefix,
        options = __eggnogmapper2_diamond_options
    threads:
        __eggnogmapper2_diamond_threads
    shell:
        """
        {params.exec_command} {params.options} --cpu {threads} -i {input} -o {params.output_prefix}
        """