Skip to content

Commit

Permalink
small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
friend1ws committed Nov 1, 2018
1 parent 47b3cca commit 6f1a21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genomon_sv/filterFunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def filterNonMatchControl(inputFilePath, outputFilePath, controlFile, matchedNor
# get the records for control junction data for the current position
tabixErrorFlag = 0
try:
records = tabixfile.fetch(F[0], int(F[1]) - controlPanel_check_margin, int(F[2]) + controlPanel_check_margin)
records = tabixfile.fetch(F[0], max(int(F[1]) - controlPanel_check_margin, 0), int(F[2]) + controlPanel_check_margin)
except Exception as inst:
# print >> sys.stderr, "%s: %s" % (type(inst), inst.args)
tabixErrorMsg = str(inst.args)
Expand Down

0 comments on commit 6f1a21b

Please sign in to comment.