Repository navigation
Commit 1583da3
committed
fix: predictCoding uses CDS-mapped width for exon/intron boundary deletions (#83)
A deletion starting in an exon and extending into the intron produced
incorrect REFCODON/VARCODON because .getRefCodons() and the frameshift
calculation used the genomic width of the variant rather than the
transcript-space (CDSLOC) width.
For example, a 51bp genomic deletion with only 37bp overlapping the CDS
would compute cend using 51, causing the reference codon to extend
incorrectly into the next exon's sequence.
Fix: replace width(txlocal) (genomic width) with
width(mcols(txlocal)$CDSLOC) (CDS-mapped width) in both:
- .getRefCodons(): codon boundary calculation
- frameshift detection: refwidth for length-change check
Fixes #831 parent c8a9ee0 commit 1583da3
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
203 | | - | |
| 204 | + | |
204 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
205 | 209 | | |
206 | | - | |
| 210 | + | |
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
| |||
0 commit comments