Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display sentieon dedup metrics in multiqc #1123

Merged
merged 6 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions assets/multiqc_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,38 @@ sample_names_replace:
"\\.[0-9]{4}$": ".md" # should match ".0001" but only at the end of strings for module Markduplicates/EstimateLibraryComplexity
module: picard

custom_data:
dedup_metrics:
id: "dedup_metrics"
section_name: "Sentieon Dedup Metrics"
plot_type: "table"
pconfig:
id: "dedup_metrics"
namespace: "Sentieon Dedup Metrics"
headers:
LIBRARY:
description: "LIBRARY"
UNPAIRED_READS_EXAMINED:
description: "UNPAIRED_READS_EXAMINE"
READ_PAIRS_EXAMINED:
description: "READ_PAIRS_EXAMINED"
SECONDARY_OR_SUPPLEMENTARY_RDS:
description: "SECONDARY_OR_SUPPLEMENTARY_RDS"
UNMAPPED_READS:
description: "UNMAPPED_READS"
UNPAIRED_READ_DUPLICATES:
description: "UNPAIRED_READ_DUPLICATES"
READ_PAIR_DUPLICATES:
description: "READ_PAIR_DUPLICATES"
READ_PAIR_OPTICAL_DUPLICATES:
description: "READ_PAIR_OPTICAL_DUPLICATES"
PERCENT_DUPLICATION:
description: "PERCENT_DUPLICATION"
ESTIMATED_LIBRARY_SIZE:
description: "ESTIMATED_LIBRARY_SIZE"
sp:
snpeff:
contents: "SnpEff_version"
max_filesize: 5000000
dedup_metrics:
fn: "*.metrics.multiqc.tsv"
2 changes: 1 addition & 1 deletion conf/modules/sentieon_dedup.config
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ process {
[
mode: params.publish_dir_mode,
path: { "${params.outdir}/reports/" },
pattern: "*metrics",
pattern: "*{metrics,metrics.multiqc.tsv}",
saveAs: { !(params.skip_tools && params.skip_tools.split(',').contains('sentieon_dedup_report')) ? "sentieon_dedup/${meta.id}/${it}" : null}
]
]
Expand Down
5 changes: 3 additions & 2 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,9 @@
},
"sentieon/dedup": {
"branch": "master",
"git_sha": "2cb2012b268b3502ac74463e510e76be99e2cdbf",
"installed_by": ["modules"]
"git_sha": "e311732e4d878d7e47872226bef5f8630dc81675",
"installed_by": ["modules"],
"patch": "modules/nf-core/sentieon/dedup/sentieon-dedup.diff"
asp8200 marked this conversation as resolved.
Show resolved Hide resolved
},
"sentieon/gvcftyper": {
"branch": "master",
Expand Down
4 changes: 4 additions & 0 deletions modules/nf-core/sentieon/dedup/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion modules/nf-core/sentieon/dedup/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions subworkflows/local/bam_sentieon_dedup/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ workflow BAM_SENTIEON_DEDUP {

// Gather all reports generated
reports = reports.mix(SENTIEON_DEDUP.out.metrics)
reports = reports.mix(SENTIEON_DEDUP.out.metrics_multiqc_tsv)
reports = reports.mix(SENTIEON_DEDUP.out.score)
reports = reports.mix(CRAM_QC_MOSDEPTH_SAMTOOLS.out.reports)

Expand Down
2 changes: 2 additions & 0 deletions tests/test_sentieon_dedup_from_bam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
- path: results/csv/recalibrated.csv
md5sum: 1888a924bc70bd80165a96ad641e22d6
- path: results/multiqc
- path: results/multiqc/multiqc_report.html
contains: ["Sentieon Dedup Metrics", "PERCENT_DUPLICATION", "ESTIMATED_LIBRARY_SIZE"]
- path: results/preprocessing/sentieon_dedup/test/test.md.cram
# binary changes md5sums on reruns
- path: results/preprocessing/sentieon_dedup/test/test.md.cram.crai
Expand Down
2 changes: 2 additions & 0 deletions tests/test_sentieon_dedup_from_cram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
- path: results/csv/recalibrated.csv
md5sum: 1888a924bc70bd80165a96ad641e22d6
- path: results/multiqc
- path: results/multiqc/multiqc_report.html
contains: ["Sentieon Dedup Metrics", "PERCENT_DUPLICATION", "ESTIMATED_LIBRARY_SIZE"]
- path: results/preprocessing/sentieon_dedup/test/test.md.cram
# binary changes md5sums on reruns
- path: results/preprocessing/sentieon_dedup/test/test.md.cram.crai
Expand Down