Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Jan 22, 2024
1 parent 77d2447 commit c290f2c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
wigToBigWig $TMPDIR/out_cov.wig $TMPDIR/chrom.sizes $(basename {snakemake.output.cov_bw})
md5sum $(basename {snakemake.output.cov_bw}) >$(basename {snakemake.output.cov_bw_md5})
popd
# Convert mapping quality to bigWig file
Expand All @@ -90,6 +89,7 @@
wigToBigWig $TMPDIR/out_mq.wig $TMPDIR/chrom.sizes $(basename {snakemake.output.mq_bw})
md5sum $(basename {snakemake.output.mq_bw}) >$(basename {snakemake.output.mq_bw_md5})
popd
# Create output links -----------------------------------------------------------------------------
Expand Down
21 changes: 17 additions & 4 deletions tests/snappy_pipeline/workflows/test_workflows_ngs_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,10 @@ def test_generate_doc_files_step_part_run_get_input_files(ngs_mapping_workflow):
def test_generate_doc_files_step_part_get_output_files(ngs_mapping_workflow):
"""Tests BamCollectDocStepPart.get_output_files() - run"""
expected = {
"bw": "work/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.cov.bw",
"bw_md5": "work/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.cov.bw.md5",
"cov_bw": "work/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.cov.bw",
"cov_bw_md5": "work/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.cov.bw.md5",
"mq_bw": "work/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.mq.bw",
"mq_bw_md5": "work/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.mq.bw.md5",
"vcf": "work/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.cov.vcf.gz",
"vcf_md5": "work/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.cov.vcf.gz.md5",
"vcf_tbi": "work/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.cov.vcf.gz.tbi",
Expand All @@ -677,6 +679,8 @@ def test_generate_doc_files_step_part_get_output_files(ngs_mapping_workflow):
"output/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.cov.vcf.gz.tbi.md5",
"output/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.cov.bw",
"output/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.cov.bw.md5",
"output/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.mq.bw",
"output/{mapper}.{library_name}/report/cov/{mapper}.{library_name}.mq.bw.md5",
"output/{mapper}.{library_name}/log/{mapper}.{library_name}.bam_collect_doc.log",
"output/{mapper}.{library_name}/log/{mapper}.{library_name}.bam_collect_doc.log.md5",
"output/{mapper}.{library_name}/log/{mapper}.{library_name}.bam_collect_doc.conda_info.txt",
Expand Down Expand Up @@ -779,10 +783,19 @@ def test_ngs_mapping_workflow_files(ngs_mapping_workflow):
for stats in ("bamstats", "flagstats", "idxstats")
]
expected += [
"output/bwa.P00{i}-N1-DNA1-WGS1/report/cov/bwa.P00{i}-N1-DNA1-WGS1.cov.{ext}".format(
"output/bwa.P00{i}-N1-DNA1-WGS1/report/cov/bwa.P00{i}-N1-DNA1-WGS1.{ext}".format(
i=i, ext=ext
)
for ext in ("bw", "bw.md5", "vcf.gz", "vcf.gz.md5", "vcf.gz.tbi", "vcf.gz.tbi.md5")
for ext in (
"cov.bw",
"cov.bw.md5",
"cov.vcf.gz",
"cov.vcf.gz.md5",
"cov.vcf.gz.tbi",
"cov.vcf.gz.tbi.md5",
"mq.bw",
"mq.bw.md5",
)
for i in range(1, 7)
]
expected += [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,19 @@ def test_ngs_mapping_workflow_files(ngs_mapping_workflow):
for stats in ("bamstats", "flagstats", "idxstats")
]
expected += [
"output/bwa.{library_name}/report/cov/bwa.{library_name}.cov.{ext}".format(
"output/bwa.{library_name}/report/cov/bwa.{library_name}.{ext}".format(
library_name=library_name, ext=ext
)
for ext in ("bw", "bw.md5", "vcf.gz", "vcf.gz.md5", "vcf.gz.tbi", "vcf.gz.tbi.md5")
for ext in (
"cov.bw",
"cov.bw.md5",
"cov.vcf.gz",
"cov.vcf.gz.md5",
"cov.vcf.gz.tbi",
"cov.vcf.gz.tbi.md5",
"mq.bw",
"mq.bw.md5",
)
for library_name in dna
]
expected += [
Expand Down

0 comments on commit c290f2c

Please sign in to comment.