Commit 9b5fbe32 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

rename all as SnakeFile

parent 34ac04e2
......@@ -19,7 +19,7 @@ __metaphlan2_input = "{dir}/{sample}.{ext}".format(dir=__input_dir,
ext=__metaphlan2_input_type + ".gz")
__metaphlan2_output = "{dir}/{sample}.txt".format(dir=__metaphlan2_output_dir,
sample="{sample}")
include: "metaphlan2.rules"
include: "SnakeFile"
rule all:
input:
......
......@@ -17,7 +17,7 @@ __metaphlan2_heatmap_output_file_name = config['metaphlan2_heatmap'].get('output
__metaphlan2_heatmap_input = __input
__metaphlan2_heatmap_output = "{dir}/{file_name}".format(dir=__metaphlan2_heatmap_output_dir,
file_name=__metaphlan2_heatmap_output_file_name)
include: "metaphlan2_heatmap.rules"
include: "SnakeFile"
rule all:
input:
......
......@@ -21,7 +21,7 @@ __metaphlan2_merge_input = expand("{dir}/{sample}.txt".format(dir=__input_dir,
sample=config['samples'])
__metaphlan2_merge_output = "{dir}/{file_name}".format(dir=__metaphlan2_merge_output_dir,
file_name=__metaphlan2_merge_output_file_name)
include: "metaphlan2_merge.rules"
include: "SnakeFile"
rule all:
input:
......
configfile: "config.yaml"
# ==== Rule paths ====
__metaphlan2_rules = config.get("rules", {}).get("metaphlan2", "../../tools/metaphlan2/metaphlan2/metaphlan2.rules")
__metaphlan2_merge_rules = config.get("rules", {}).get("metaphlan2_merge", "../../tools/metaphlan2/metaphlan2_merge/metaphlan2_merge.rules")
__metaphlan2_heatmap_rules = config.get("rules", {}).get("metaphlan2_heatmap", "../../tools/metaphlan2/metaphlan2_heatmap/metaphlan2_heatmap.rules")
__metaphlan2_rules = config.get("rules", {}).get("metaphlan2", "../../tools/metaphlan2/metaphlan2/SnakeFile")
__metaphlan2_merge_rules = config.get("rules", {}).get("metaphlan2_merge", "../../tools/metaphlan2/metaphlan2_merge/SnakeFile")
__metaphlan2_heatmap_rules = config.get("rules", {}).get("metaphlan2_heatmap", "../../tools/metaphlan2/metaphlan2_heatmap/SnakeFile")
__graphlan_from_metaphlan2_rules = config.get("rules", {}).get("graphlan_from_metaphlan2", "../subworkflows/graphlan_from_metaphlan2/SnakeFile")
__input_dir = config['input_dir']
......
......@@ -8,9 +8,9 @@ This subworkflow need to be called to be used by specifying:
"""
# ==== Rule paths ====
__export2graphlan_rules = config.get("rules", {}).get("export2graphlan", "../../tools/metaphlan2/metaphlan2/metaphlan2.rules")
__graphlan_annotate_rules = config.get("rules", {}).get("graphlan_annotate", "../../tools/metaphlan2/metaphlan2_merge/metaphlan2_merge.rules")
__graphlan_rules = config.get("rules", {}).get("graphlan", "../../tools/metaphlan2/metaphlan2_heatmap/metaphlan2_heatmap.rules")
__export2graphlan_rules = config.get("rules", {}).get("export2graphlan", "../../tools/metaphlan2/metaphlan2/SnakeFile")
__graphlan_annotate_rules = config.get("rules", {}).get("graphlan_annotate", "../../tools/metaphlan2/metaphlan2_merge/SnakeFile")
__graphlan_rules = config.get("rules", {}).get("graphlan", "../../tools/metaphlan2/metaphlan2_heatmap/SnakeFile")
# ---- export2graphlan
__export2graphlan_input = __graphlan_from_metaphlan2_input
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment