Skip to content

Commit

Permalink
stop auto-adding GT to the format field on 8-column VCFs. SVTyper adds
Browse files Browse the repository at this point in the history
this itself and is the only place we think this matters. Closes hall-lab#59.
  • Loading branch information
ernfrid committed Mar 29, 2016
1 parent d4cb742 commit d238d20
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions svtools/vcf/variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ def __init__(self, var_list, vcf, fixed_genotypes=False):
# FIXME This should be an exception
sys.stderr.write('\nError: VCF file must have at least 8 columns\n')
exit(1)
if len(var_list) < 9:
var_list.append("GT")

# make a genotype for each sample at variant
format_field_tags = var_list[8].split(':')
Expand Down

0 comments on commit d238d20

Please sign in to comment.