Skip to content

Commit

Permalink
Fixing vcf parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeVance committed Oct 31, 2023
1 parent 9338444 commit 850740f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions piranha/analysis/parseHaplos.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def parseVCFCalls(vcfFileList):

elif len(ref) > 1:
#MNP with no del, split
for pos2, ref2, alt2 in zip(pos,ref,alt):
haps[i].append((pos2,alt2))
haps[i].append((pos,alt[0]))
haps[i].append((str(int(pos)+1),alt[1]))

else:
#just a normal SNP
Expand Down

0 comments on commit 850740f

Please sign in to comment.