Skip to content

Commit

Permalink
Add feature to disable mpa heatmap plot
Browse files Browse the repository at this point in the history
  • Loading branch information
boulund committed Apr 14, 2023
1 parent 02ae57d commit d30ca72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ situations.
- Added a new Slurm profile for use on CTMR Gandalf, also intended to be useful
as a starting point for creating custom Slurm profiles.
- Added a README with basic instructions for how to configure the workflow.
- Added function to disable MetaPhlAn heatmap plots, which may be useful when
processing very large numbers of samples.

### Fixed
- Fixed missing interactive Kaiju Krona plots for all samples in final report.
Expand Down
1 change: 1 addition & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ metaphlan:
keep_sam: False # Keep the sam files, set this to True if you want to run StrainPhlAn.
run_krona: True
heatmap:
create_plot: True # Whether to create the MetaPhlAn heatmap plot, set to False to disable
level: "Species" # Taxononomic level: Kingdom, Phylum, Class, Order, Family, Genus, Species, or Strain
topN: 50 # Number of top taxa to include in heatmap.
pseudocount: -1 # Negative value means to autocompute pseudocount
Expand Down
3 changes: 2 additions & 1 deletion workflow/rules/taxonomic_profiling/metaphlan.smk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ if config["taxonomic_profile"]["metaphlan"] or config["functional_profile"]["hum
mpa_outputs = expand(f"{OUTDIR}/metaphlan/levels/{{taxlvl}}.tsv",
taxlvl=("species", "genus", "family", "order"))

all_outputs.append(heatmap)
if mpa_config["heatmap"]["create_plot"]:
all_outputs.append(heatmap)
all_outputs.append(mpa_area_plot)
all_outputs.append(mpa_outputs)

Expand Down

0 comments on commit d30ca72

Please sign in to comment.