Skip to content

Commit

Permalink
Optimize interval access and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Feb 25, 2024
1 parent c707fe4 commit 050e8fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions snap/deciphon_snap/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def make_hmmer_steps(annot: DomAnnot):
a = x.align
core_positions = a.core_positions
core_positions = list(range(a.core_interval.start, a.core_interval.stop + 1))
start = a.query_interval.to_pyinterval().start
stop = a.query_interval.to_pyinterval().stop
start = a.query_interval.py.start
stop = a.query_interval.py.stop
offset = start - 1
amino_pos = [offset + i for i in accumulate([int(i != "-") for i in a.query])]
assert amino_pos[0] == start
Expand Down
2 changes: 1 addition & 1 deletion snap/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "deciphon-snap"
version = "0.10.1"
version = "0.10.2"
description = "Reader for Deciphon snap files."
authors = ["Danilo Horta <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 050e8fe

Please sign in to comment.