Skip to content

Commit

Permalink
fix: issue with non-dup insertion at start of protein (#99) (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Apr 18, 2023
1 parent e72bd30 commit bc5b5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapper/altseq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ impl AltSeqToHgvsp {
alternative = reference.clone();
} else {
// is non-dup insertion
let start = *start as usize - 1;
let start = std::cmp::max(2, *start as usize) - 1;
let end = start + 1;

aa_start = Some(ProtPos {
Expand Down

0 comments on commit bc5b5cf

Please sign in to comment.