This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Description
|
def makeSearchLocus(locus,upSearch,downSearch): |
|
if locus.sense() == '-': |
|
searchLocus = Locus(locus.chr(),locus.start()-downSearch,locus.end()+upSearch,locus.sense(),locus.ID()) |
|
else: |
|
searchLocus = Locus(locus.chr(),locus.start()-upSearch,locus.end()+downSearch,locus.sense(),locus.ID()) |
|
return searchLocus |
This function should check the chromosome bounds when trying to extend the search locus. Otherwise you get downstream issues such as #83.