Skip to content

Commit

Permalink
fix equal short sequences being 1|2 for short alleles
Browse files Browse the repository at this point in the history
  • Loading branch information
wdecoster committed Jul 2, 2024
1 parent 25c43e7 commit 1fa9fcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "STRdust"
version = "0.8.3"
version = "0.8.4"
edition = "2021"


Expand Down
2 changes: 1 addition & 1 deletion src/vcf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl VCFRecord {
"."
} else if levenshtein(&allele2.seq, &repeat_ref_sequence) < repeat_ref_sequence.len() / 20 {
"0"
} else if levenshtein(&allele2.seq, &allele1.seq) < allele1.seq.len() / 20 {
} else if allele2.seq == allele1.seq || levenshtein(&allele2.seq, &allele1.seq) < allele1.seq.len() / 20 {
genotype1
} else {
next_alt
Expand Down

0 comments on commit 1fa9fcc

Please sign in to comment.