Skip to content
Browse files

split samples on tab not space

  • Loading branch information...
1 parent 8537a6a commit 190fd4e0a5ec136bd2fa93337ae3d5c22aef0171 James Casbon committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 vcf/parser.py
View
4 vcf/parser.py
@@ -166,7 +166,7 @@ def gt_type(self):
# grab the numeric alleles of the gt string; tokenize by phasing
(a1, a2) = self.gt_nums.split("/") \
if not self.phased else self.gt_nums.split("|")
- if a1 == a2:
+ if a1 == a2:
if a1 == "0": return 0
else: return 2
else: return 1
@@ -518,7 +518,7 @@ def _parse_metainfo(self):
line = self.reader.next()
- fields = line.split()
+ fields = line.split('\t')
self.samples = fields[9:]
self._sample_indexes = dict([(x,i) for (i,x) in enumerate(self.samples)])

0 comments on commit 190fd4e

Please sign in to comment.
Something went wrong with that request. Please try again.