Repository navigation
pmdshodh 0.3.2
pmdshodh 0.3.2 has the last two fixes from the 0.3 audit (docs/audit-0.3.md, findings B8 and B9), which is now complete. For valid input, default-mode scores and kept reads are unchanged from 0.3.1. The JSON run summary is now format_version 4.
Fixed
- A CRAM with a mapped read past the end of its reference sequence made pmdshodh crash (exit 101) while decoding it. It is now an input error (exit 2) that names the read, as with SAM and BAM (B9).
--pmdtools-compatnow drops reads whose SEQ is 1 base, as PMDtools 0.60 does, counted as the new skip reasontoo_short(B8).
Install
pip install pmdshodh==0.3.2Or download the binary for your platform below and check it against SHA256SUMS. A Bioconda package is still to come.
Changes
Changed
- JSON run summary
format_version4 (was 3):reads.skippedhas a new reason,too_short, counted only with--pmdtools-compat(see Fixed, B8). Other fields are unchanged.reportreads versions 1 to 4.
Fixed
--pmdtools-compatscored reads whose SEQ is 1 base, but PMDtools 0.60 drops them silently, whatever their CIGAR operation, strand or flags. A 2-base SEQ with a single aligned base (1S1M,1M1I) is still scored (rule found by black-box probes, docs/blackbox.md 1.6g). Compat now drops them, counted asskipped.too_short, and leaves them out offilteroutput and the damage table, as PMDtools does. Default mode still scores them. Found by the 0.3 audit's edge-case map (docs/audit-0.3.md, B8).- A CRAM whose mapped read runs past the end of its reference sequence made pmdshodh panic while decoding it (exit 101), with
-@ 1and more threads. samtools writes such files and reads them back. Such a read is now an input error (exit 2) that names it, andfilterleaves no output, as with SAM and BAM input and-r. Output for valid CRAMs is unchanged. Found on a synthetic record by the 0.3 audit, while writing the reason for an untested check (docs/audit-0.3.md, B9).
What's Changed
- Map the audit edge-case matrix to tests by @dpatel511 in #63
- Drop 1-base reads in compat mode (audit B8) by @dpatel511 in #64
- Classify every default-vs-compat difference on real data by @dpatel511 in #65
- Run each audit property on 10,000 small cases by @dpatel511 in #66
- Reject CRAM reads past their reference end instead of panicking (audit B9) by @dpatel511 in #67
- Prepare 0.3.2 by @dpatel511 in #68
Full Changelog: v0.3.1...v0.3.2