Skip to content

Commit

Permalink
Hifiasm: account for lines with no asterisk (#2268)
Browse files Browse the repository at this point in the history
* changed hifiasm module to account for lines with no asterisk

* [automated] Update CHANGELOG.md

* [automated] Update CHANGELOG.md

---------

Co-authored-by: Michael Beavitt <mbeavitt@b-hiveinnovations.co.uk>
Co-authored-by: MultiQC Bot <multiqc-bot@seqera.io>
  • Loading branch information
3 people committed Jan 19, 2024
1 parent c501ac9 commit d11815a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@

### Module updates

- **mosdepth**: Add additional summaries to general stats #2257 ([#2257](https://github.com/MultiQC/MultiQC/pull/2257))
- **Seqera Platform CLI**: Updates for v0.9.2 ([#2248](https://github.com/MultiQC/MultiQC/pull/2248))
- **Bismark**: fix old link in docs ([#2252](https://github.com/MultiQC/MultiQC/pull/2252))
- **BclConvert**: fix duplicated `yield` for 3.9.3+ when the yield is provided explicitly in Quality_Metrics ([#2253](https://github.com/MultiQC/MultiQC/pull/2253))
- **Bismark**: fix old link in docs ([#2252](https://github.com/MultiQC/MultiQC/pull/2252))
- **HiFiasm**: account for lines with no asterisk ([#2268](https://github.com/MultiQC/MultiQC/pull/2268))
- **mosdepth**: Add additional summaries to general stats #2257 ([#2257](https://github.com/MultiQC/MultiQC/pull/2257))
- **Picard**: fix using multiple times in report: do not pass `module.anchor` to `self.find_log_files` ([#2255](https://github.com/MultiQC/MultiQC/pull/2255))
- **Seqera Platform CLI**: Updates for v0.9.2 ([#2248](https://github.com/MultiQC/MultiQC/pull/2248))

## [MultiQC v1.19](https://github.com/ewels/MultiQC/releases/tag/v1.19) - 2023-12-18

Expand Down
7 changes: 5 additions & 2 deletions multiqc/modules/hifiasm/hifiasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ def extract_kmer_graph(self, fin):
# Special case
if occurrence == "rest":
continue
# Count of the occurrence
count = int(spline[3])
# Count of the occurrence, checking for lines with no asterisk before count.
if "*" in spline[2]:
count = int(spline[3])
else:
count = int(spline[2])
data[int(occurrence)] = count
# If we are no longer in the histogram
elif found_histogram:
Expand Down

0 comments on commit d11815a

Please sign in to comment.