Snakefile 706 Bytes
Newer Older
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
1
2
3
4
5
6
7
8
9
10
11
configfile: "config.yaml"

# ==== Snakefile path ====
__cat_rules = config.get("snakefiles", {}).get("cat")

__main_output_dir = config.get('output_dir', 'output')

# ==== Main config ====
SAMPLES = config.get('samples')
__input_dir = config.get('input_dir', 'data')

Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
12
# ==== Cat ====
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
13
14
15
16
17
18
19
20
21
__cat_merged_name = config.get('cat', {}).get('name_merge', 'cat_file')
__cat_output_dir = __input_dir

__cat_input = expand("{dir}/{{sample}}.emapper.seed_orthologs".format(dir=__input_dir), sample=SAMPLES)
__cat_output = "{dir}/{file_name}".format(dir=__cat_output_dir, file_name=__cat_merged_name)
include: __cat_rules

rule all:
    input: "{dir}/{file_name}".format(dir=__cat_output_dir, file_name=__cat_merged_name)