From 1495e50fbfd78ab841a467e302e8e3bf31456a93 Mon Sep 17 00:00:00 2001 From: korikuzma Date: Tue, 17 Oct 2023 07:23:14 -0400 Subject: [PATCH] cleanup _get_mane_p --- cool_seq_tool/mappers/mane_transcript.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/cool_seq_tool/mappers/mane_transcript.py b/cool_seq_tool/mappers/mane_transcript.py index 0516b217..b38582f4 100644 --- a/cool_seq_tool/mappers/mane_transcript.py +++ b/cool_seq_tool/mappers/mane_transcript.py @@ -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"],