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 71d1f4b commit fe1aa02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
3 changes: 0 additions & 3 deletions snappy_pipeline/workflows/ngs_mapping/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1204,9 +1204,6 @@ def _get_params_run(self, wildcards):

return {
"path_targets_bed": path_targets_bed,
"max_coverage": self.config["target_coverage_report"]["max_coverage"],
"min_cov_warning": self.config["target_coverage_report"]["min_cov_warning"],
"min_cov_ok": self.config["target_coverage_report"]["min_cov_ok"],
"detailed_reporting": self.config["target_coverage_report"]["detailed_reporting"],
}

Expand Down
11 changes: 2 additions & 9 deletions snappy_pipeline/workflows/variant_export_external/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
ResourceUsage,
WritePedigreeSampleNameStepPart,
)
from snappy_pipeline.workflows.ngs_mapping import TargetCoverageReportStepPart
from snappy_pipeline.workflows.ngs_mapping import AlfredQcStepPart

#: Default configuration for the somatic_variant_calling step
DEFAULT_CONFIG = r"""
Expand All @@ -119,14 +119,10 @@
# region coverage or selecting targeted exons. Only used if 'bam_available_flag' is True.
# It will not generated detailed reporting.
path_targets_bed: OPTIONAL # OPTIONAL
# Maximal/minimal/warning coverage
max_coverage: 200
min_cov_warning: 20 # >= 20x for WARNING
min_cov_ok: 50 # >= 50x for OK
"""


class BamReportsExternalStepPart(TargetCoverageReportStepPart):
class BamReportsExternalStepPart(AlfredQcStepPart):
"""Build target coverage report and QC report for external BAM files"""

#: Step name
Expand Down Expand Up @@ -214,9 +210,6 @@ def _get_params_run(self, wildcards):
"bam": sorted(list(self._collect_bam_files(wildcards))),
"bam_count": len(sorted(list(self._collect_bam_files(wildcards)))),
"path_targets_bed": self.config["target_coverage_report"]["path_targets_bed"],
"max_coverage": self.config["target_coverage_report"]["max_coverage"],
"min_cov_warning": self.config["target_coverage_report"]["min_cov_warning"],
"min_cov_ok": self.config["target_coverage_report"]["min_cov_ok"],
"detailed_reporting": False,
}

Expand Down

0 comments on commit fe1aa02

Please sign in to comment.