Skip to content

Commit

Permalink
Merge pull request #261 from Clinical-Genomics/fix_report_crash_missi…
Browse files Browse the repository at this point in the history
…ng_transcripts

Fix app crashing when transcripts/exons are needed for a report but not available
  • Loading branch information
northwestwitch authored Mar 26, 2024
2 parents 8812dcc + fcb832d commit a7d5f3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
### Fixed
- Avoid MySQLdb.OperationalError `Server has gone away` by modifying by setting `pool_pre_ping=True` when creating the engine
- Coverage report screenshot displayed on README page and on the documenattion to reflect true statistics from the demo samples
- Coverage report/overview page crashing when transcripts or exons intervals are required only genes are loaded

## [1.5]
### Added
Expand Down
5 changes: 4 additions & 1 deletion src/chanjo2/meta/handle_d4.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,12 @@ def get_report_sample_interval_coverage(
completeness_thresholds: List[Optional[int]],
default_threshold: int,
report_data: dict,
):
) -> None:
"""Compute stats to populate a coverage report and coverage overview for one sample."""

if not intervals_coords:
return

# Compute intervals coverage
intervals_coverage: List[float] = get_d4tools_intervals_mean_coverage(
d4_file_path=d4_file_path, intervals=intervals_coords
Expand Down

0 comments on commit a7d5f3d

Please sign in to comment.