Skip to content

Commit

Permalink
cleanup _get_mane_p
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Oct 17, 2023
1 parent afbcc07 commit 1495e50
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cool_seq_tool/mappers/mane_transcript.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,8 @@ def _get_mane_p(mane_data: Dict, mane_c_pos_range: Tuple[int, int]) -> Dict:
"""
start = mane_c_pos_range[0] / 3
end = mane_c_pos_range[1] / 3

if start == end:
start = math.floor(start)
end = start
else:
start = math.ceil(start)
end = math.floor(end)
start = math.floor(start) if start == end else math.ceil(start)
end = math.floor(end)

return dict(
gene=mane_data["symbol"],
Expand Down

0 comments on commit 1495e50

Please sign in to comment.