Skip to content

Commit

Permalink
fix: address requeste refactoring from amftools to maf
Browse files Browse the repository at this point in the history
  • Loading branch information
dlaehnemann committed Aug 19, 2024
1 parent 080a9fc commit d38cced
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .test/config-simple/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ params:
gene_coverage:
min_avg_coverage: 0

maftools:
maf:
activate: true

report:
Expand Down
4 changes: 2 additions & 2 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ report:
# select a sample sheet column for stratification
by-column: condition

# standardized mutation overview plots with maftools:
# standardized mutation overview plots with maf:
# https://bioconductor.org/packages/release/bioc/vignettes/maftools/inst/doc/maftools.html
maftools:
maf:
activate: false

calling:
Expand Down
4 changes: 2 additions & 2 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ def get_final_output(wildcards):
)
)

if config["maftools"]["activate"]:
if config["maf"]["activate"]:
final_output.extend(
expand(
"results/maftools/{group}.{event}.{calling_type}.fdr-controlled.maf",
"results/maf/{group}.{event}.{calling_type}.fdr-controlled.maf",
group=(
variants_groups
if calling_type == "variants"
Expand Down
6 changes: 3 additions & 3 deletions workflow/rules/maftools.smk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ rule group_bcf_to_vcf:
input:
"results/final-calls/{group}.{event}.{calling_type}.fdr-controlled.bcf",
output:
temp("results/maftools/{group}.{event}.{calling_type}.fdr-controlled.vcf"),
temp("results/maf/{group}.{event}.{calling_type}.fdr-controlled.vcf"),
log:
"logs/maftools/{group}.{event}.{calling_type}.fdr-controlled.log",
wrapper:
Expand All @@ -11,10 +11,10 @@ rule group_bcf_to_vcf:

rule group_vcf_to_maf:
input:
vcf="results/maftools/{group}.{event}.{calling_type}.fdr-controlled.vcf",
vcf="results/maf/{group}.{event}.{calling_type}.fdr-controlled.vcf",
ref=genome,
output:
maf="results/maftools/{group}.{event}.{calling_type}.fdr-controlled.maf",
maf="results/maf/{group}.{event}.{calling_type}.fdr-controlled.maf",
log:
"logs/maftools/{group}.{event}.{calling_type}.fdr-controlled.log",
conda:
Expand Down

0 comments on commit d38cced

Please sign in to comment.