Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Oct 23, 2024
1 parent b726a7e commit bce728e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/seqvars/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -759,12 +759,9 @@ mod gene_related_annotation {
let (tx_accession, tx_version) = if ann.feature_id.is_empty() {
(None, None)
} else {
let feature_id_split: Vec<&str> =
ann.feature_id.split(".").collect::<Vec<_>>();
let feature_id_split: Vec<&str> = ann.feature_id.split(".").collect::<Vec<_>>();
let tx_accession = feature_id_split.first().map(|s| s.to_string());
let tx_version = feature_id_split
.get(1)
.and_then(|s| s.parse::<i32>().ok());
let tx_version = feature_id_split.get(1).and_then(|s| s.parse::<i32>().ok());
(tx_accession, tx_version)
};

Expand Down

0 comments on commit bce728e

Please sign in to comment.