File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 4141 match_start = int (end2 ) + int (end_diff )
4242 match_end = int (start2 ) - int (start_diff )
4343
44+ if str (match_start ) not in divided [chr2 ].keys ():
45+ for potential_start in divided [chr2 ].keys ():
46+ if (int (potential_start ) - 20 ) <= match_start <= (int (potential_start ) + 20 ):
47+ match_start = int (potential_start )
48+
49+ # sometimes there are small indels
50+ if str (match_start ) in divided [chr2 ].keys ():
51+ if int (divided [chr2 ][str (match_start )]) != int (match_end ):
52+ match_end = int (divided [chr2 ][str (match_start )])
53+
4454 saved_line2 = chr2 + ":" + str (match_start ) + ":" + str (match_end )
4555 new_group = True
4656
4757 for numbers in group .keys ():
4858 if saved_line in group [numbers ]['list' ]:
4959 new_group = False
5060 if (saved_line2 not in group [numbers ]['list' ]) and (start2 in divided [chr2 ].keys ()):
51- group [numbers ]['list' ].append (saved_line2 )
61+ group [numbers ]['list' ].append (saved_line2 )
5262 elif saved_line2 in group [numbers ]['list' ]:
5363 new_group = False
5464 if saved_line not in group [numbers ]['list' ]:
You can’t perform that action at this time.
0 commit comments