Skip to content

Commit 027dced

Browse files
committed
updating generation of variant key
1 parent 99e7c2a commit 027dced

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ga4ghphetools"
3-
version = "0.5.26"
3+
version = "0.5.27"
44
edition = "2021"
55
keywords = ["GA4GH", "Phenopacket Schema", "Human Phenotype Ontology"]
66
description = "Generate GA4GH phenopackets from tabular data"

src/dto/hgvs_variant.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ impl HgvsVariant {
151151
pub fn generate_variant_key(hgvs: &str, symbol: &str, transcript: &str) -> String {
152152
let mut hgvs_norm = hgvs
153153
.replace("c.", "c")
154+
.replace("+", "plus")
155+
.replace("-", "minus")
154156
.replace('>', "to");
155157
hgvs_norm = hgvs_norm
156158
.chars()

0 commit comments

Comments
 (0)