Skip to content

Commit 0e829f6

Browse files
committed
fix: added option to skip pangenome analysis
1 parent 6048f72 commit 0e829f6

4 files changed

Lines changed: 6 additions & 1 deletion

File tree

.test/config/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ quast:
2323
extra: ""
2424

2525
panaroo:
26+
skip: False
2627
remove_source: "cmsearch"
2728
remove_feature: "tRNA|rRNA|ncRNA|exon|sequence_feature"
2829
extra: "--clean-mode strict --remove-invalid-genes"

config/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ quast:
2323
extra: ""
2424

2525
panaroo:
26+
skip: False
2627
remove_source: "cmsearch"
2728
remove_feature: "tRNA|rRNA|ncRNA|exon|sequence_feature"
2829
extra: "--clean-mode strict --remove-invalid-genes"

config/schemas/config.schema.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ properties:
8383
panaroo:
8484
type: object
8585
properties:
86+
skip:
87+
type: boolean
88+
description: Whether to skip Panaroo analysis
8689
remove_source:
8790
type: string
8891
description: Source types to remove in Panaroo (regex supported)

workflow/rules/common.smk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_final_input(wildcards):
5858
"results/qc/quast/{tool}/report.txt",
5959
tool=config["tool"],
6060
)
61-
if len(samples.index) > 1:
61+
if len(samples.index) > 1 and not config["panaroo"]["skip"]:
6262
inputs += expand(
6363
"results/qc/panaroo/{tool}/summary_statistics.txt",
6464
tool=config["tool"],

0 commit comments

Comments
 (0)