Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
snakemake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Metagenomics
snakemake
Commits
8bb596da
Commit
8bb596da
authored
6 years ago
by
Kenzo-Hugo Hillion
Browse files
Options
Downloads
Patches
Plain Diff
add graphlan to metaphlan2 workflow
parent
8c192e82
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflows/simple_metaphlan2/SnakeFile
+11
-1
11 additions, 1 deletion
workflows/simple_metaphlan2/SnakeFile
workflows/simple_metaphlan2/config.yaml
+11
-0
11 additions, 0 deletions
workflows/simple_metaphlan2/config.yaml
with
22 additions
and
1 deletion
workflows/simple_metaphlan2/SnakeFile
+
11
−
1
View file @
8bb596da
...
@@ -4,6 +4,7 @@ configfile: "config.yaml"
...
@@ -4,6 +4,7 @@ configfile: "config.yaml"
__metaphlan2_rules = "../../tools/metaphlan2/metaphlan2/metaphlan2.rules"
__metaphlan2_rules = "../../tools/metaphlan2/metaphlan2/metaphlan2.rules"
__metaphlan2_merge_rules = "../../tools/metaphlan2/metaphlan2_merge/metaphlan2_merge.rules"
__metaphlan2_merge_rules = "../../tools/metaphlan2/metaphlan2_merge/metaphlan2_merge.rules"
__metaphlan2_heatmap_rules = "../../tools/metaphlan2/metaphlan2_heatmap/metaphlan2_heatmap.rules"
__metaphlan2_heatmap_rules = "../../tools/metaphlan2/metaphlan2_heatmap/metaphlan2_heatmap.rules"
__graphlan_from_metaphlan2_rules = "../subworkflows/graphlan_from_metaphlan2/SnakeFile"
__input_dir = config['input_dir']
__input_dir = config['input_dir']
__main_output_dir = config.get('output_dir', 'output')
__main_output_dir = config.get('output_dir', 'output')
...
@@ -36,6 +37,15 @@ __metaphlan2_heatmap_output = "{dir}/{file_name}".format(dir=__metaphlan2_heatma
...
@@ -36,6 +37,15 @@ __metaphlan2_heatmap_output = "{dir}/{file_name}".format(dir=__metaphlan2_heatma
file_name=__metaphlan2_heatmap_output_file_name)
file_name=__metaphlan2_heatmap_output_file_name)
include: __metaphlan2_heatmap_rules
include: __metaphlan2_heatmap_rules
# ---- Graphlan Dendogram
__graphlan_from_metaphlan2_output_dir = __main_output_dir + "/graphlan"
__graphlan_from_metaphlan2_output_file_name = config['graphlan_from_metaphlan2'].get('output_name',"dendogram.png")
__graphlan_from_metaphlan2_input = __metaphlan2_merge_output
__graphlan_from_metaphlan2_output = "{dir}/{file_name}".format(dir=__graphlan_from_metaphlan2_output_dir,
file_name=__graphlan_from_metaphlan2_output_file_name)
include: __graphlan_from_metaphlan2_rules
rule all:
rule all:
input:
input:
__metaphlan2_heatmap_output
heatmap: __metaphlan2_heatmap_output,
dendogram: __graphlan_from_metaphlan2_output
This diff is collapsed.
Click to expand it.
workflows/simple_metaphlan2/config.yaml
+
11
−
0
View file @
8bb596da
...
@@ -20,3 +20,14 @@ metaphlan2_merge:
...
@@ -20,3 +20,14 @@ metaphlan2_merge:
metaphlan2_heatmap
:
metaphlan2_heatmap
:
exec_command
:
singularity run --app heatmap --bind /pasteur/ /pasteur/gaia/projets/p01/Atm/singularity/metaphlan2/metaphlan2.simg
exec_command
:
singularity run --app heatmap --bind /pasteur/ /pasteur/gaia/projets/p01/Atm/singularity/metaphlan2/metaphlan2.simg
output_name
:
snakemake_heatmap.png
output_name
:
snakemake_heatmap.png
export2graphlan
:
exec_command
:
singularity run --app export2graphlan --bind /pasteur/ /pasteur/gaia/projets/p01/Atm/singularity/graphlan/graphlan.simg
options
:
"
--skip_rows
1,2
--most_abundant
100
--abundance_threshold
1
--least_biomarkers
10
--annotations
5,6
--external_annotations
7
--min_clade_size
1"
graphlan_annotate
:
exec_command
:
singularity run --app graphlan_annotate --bind /pasteur/ /pasteur/gaia/projets/p01/Atm/singularity/graphlan/graphlan.simg
graphlan
:
exec_command
:
singularity run --bind /pasteur/ /pasteur/gaia/projets/p01/Atm/singularity/graphlan/graphlan.simg
options
:
"
--dpi
300
--external_legends"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment