Skip to content

Commit

Permalink
Update vcf_four_gamete.py
Browse files Browse the repository at this point in the history
Fixing off by 1 issue in region extension
  • Loading branch information
jaredgk committed Jan 22, 2021
1 parent a4f1ebb commit 4232831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgpipe/vcf_four_gamete.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def compatibleintervals(self):
if not self.extend_noninf:
tempcint[0] = self.poslist[cints[ci][0]-1]
if ci == len(cints)-1:
tempcint[1] = self.poslist[self.informpolysites[-1]]-1
tempcint[1] = self.poslist[self.informpolysites[-1]-1]-1
else:
tempcint[1] = self.poslist[self.informpolysites[self.informpolysites.index(cints[ci][1])+1]-1]-1
else:
Expand Down

0 comments on commit 4232831

Please sign in to comment.