Skip to content

Commit

Permalink
Bugfix: Reverse strand A->G SNP coordinates.
Browse files Browse the repository at this point in the history
  • Loading branch information
t-neumann committed Feb 8, 2019
1 parent 355169f commit 704df5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion slamdunk/utils/SNPtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ def __init__(self, vcfFile):
self._agSNPs = {}

def _addSNP(self, snp):

if(snp[3].upper() == "T" and snp[4].upper() == "C"):
key = snp[0] + snp[1]
self._tcSNPs[key] = True

if(snp[3].upper() == "A" and snp[4].upper() == "G"):
key = snp[0] + str(int(snp[1]) - 1)
key = snp[0] + snp[1]
self._agSNPs[key] = True

def read(self):
Expand Down

0 comments on commit 704df5e

Please sign in to comment.