Skip to content

Commit

Permalink
Make header case-insensitive
Browse files Browse the repository at this point in the history
One more place to take header case into account.
  • Loading branch information
garrett-stevens committed Mar 31, 2017
1 parent 5fad3d3 commit 8535064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cadd2vcf.py
Expand Up @@ -24,7 +24,7 @@ def main(precision, path):
if i == 0:
print(hdr.format(comment=line.strip("# ").strip()))
continue
if header is None and line.startswith("#Chrom"):
if header is None and line.lower().startswith("#chrom"):
header = line[1:].lower().rstrip().split("\t")
continue
d = dict(zip(header, line.rstrip().split("\t")))
Expand Down

0 comments on commit 8535064

Please sign in to comment.