Skip to content

Commit

Permalink
Update libAnnoShared.py
Browse files Browse the repository at this point in the history
Fix if condition in loadItems function, caused by typo in version 2.0.0.
  • Loading branch information
DanielFaulkner authored Feb 2, 2021
1 parent aa60ade commit 3c99dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libAnnoShared.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def loadItems(self, chr, start, end):
annoentry = Annotation(line,self.type,self.header)
# Long if statement to check if the annotation spans the range completely, starts in the range or ends in the range.
# NOTE: Removal of the first <= and >= in the below line will omit annotations of the exact same length.
if annoentry.chrName.upper()==chr and ((annoentry.alignStart<=start and annoentry.alignEnd>=end) or (annoentry.alignStart>start and annoentry.alignStart<end) or (annoentry.alignEnd>=start and annoentry.alignEnd>end)):
if annoentry.chrName.upper()==chr and ((annoentry.alignStart<=start and annoentry.alignEnd>=end) or (annoentry.alignStart>=start and annoentry.alignStart<=end) or (annoentry.alignEnd>=start and annoentry.alignEnd<=end)):
# Store annotation
displayItems.append(annoentry)
# Load the next line
Expand Down

0 comments on commit 3c99dca

Please sign in to comment.