Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Metagenomics
snakemake
Commits
9b792513
Commit
9b792513
authored
May 09, 2019
by
Kenzo-Hugo Hillion
♻
Browse files
add rules for metaphlan2 heatmap
parent
44756d39
Changes
3
Hide whitespace changes
Inline
Side-by-side
tools/metaphlan2/metaphlan2_heatmap/config.yaml
0 → 100644
View file @
9b792513
samples
:
-
S1
-
S2
input
:
data/table.txt
metaphlan2_merge
:
options
:
"
"
exec_command
:
metaphlan_hclust_heatmap.py
\ No newline at end of file
tools/metaphlan2/metaphlan2_heatmap/metaphlan2_heatmap.rules
0 → 100644
View file @
9b792513
__metaphlan2_heatmap_exec_command = config['metaphlan2_heatmap']['exec_command']
__metaphlan2_heatmap_options = config['metaphlan2_heatmap'].get('options', "")
rule heatmap:
input:
__metaphlan2_heatmap_input
output:
__metaphlan2_heatmap_output
params:
exec_command = __metaphlan2_heatmap_exec_command,
options = __metaphlan2_heatmap_options
shell:
"{params.exec_command} {params.options} --in {input} --out {output}"
tools/metaphlan2/metaphlan2_heatmap/usage_example.rules
0 → 100644
View file @
9b792513
"""
This example would be used as followed:
$ snakemake --snakefile metaphlan2_heatmap.rules
It requires the presence of input files within data/table.txt to work based on config file
"""
configfile: "config.yaml"
__input = config['input']
__main_output_dir = config.get('output_dir', 'output')
# ---- Metaphlan2 heatmap
__metaphlan2_heatmap_output_dir = __main_output_dir + "/metaphlan2_heatmap"
__metaphlan2_heatmap_output_file_name = config['metaphlan2_heatmap'].get('output_name',"heatmap.png")
__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"
rule all:
input:
__metaphlan2_heatmap_output
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment