Skip to content

Commit

Permalink
RSeQC: Handle empty files nicely.
Browse files Browse the repository at this point in the history
Closes #1604
  • Loading branch information
ewels committed Jan 27, 2022
1 parent a1b4cdf commit bae13ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
- **RSeQC**
- Fixed minor bug in new TIN parsing where the sample name was not being correctly cleaned ([#1484](https://github.com/ewels/MultiQC/issues/1484))
- Fixed bug in the `junction_saturation` submodule ([#1582](https://github.com/ewels/MultiQC/issues/1582))
- Fixed bug where empty files caused `tin` submodule to crash ([#1604](https://github.com/ewels/MultiQC/issues/1604))
- **Mosdepth**
- Added mean coverage, as requested by [#1566](https://github.com/ewels/MultiQC/issues/1566)
- Fixed issue [#1568](https://github.com/ewels/MultiQC/issues/1568)
Expand Down
4 changes: 2 additions & 2 deletions multiqc/modules/rseqc/tin.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def parse_reports(self):
try:
reader = csv.DictReader(f["f"], delimiter="\t")
contents = next(reader)
except csv.Error:
log.error(f"Could not parse file '{f['fn']}'")
except (csv.Error, StopIteration) as e:
log.error(f"Could not parse file '{f['fn']}': {e}")
continue

s_name = self.clean_s_name(contents["Bam_file"], f)
Expand Down

0 comments on commit bae13ef

Please sign in to comment.