From 62e8f49025f8af12ade0edcc4a822218a654403f Mon Sep 17 00:00:00 2001 From: Marco Cormio Date: Mon, 8 Jan 2018 17:30:42 +0100 Subject: [PATCH] GT field gets set to None when no call is made --- vcf/parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcf/parser.py b/vcf/parser.py index c3c3d08..5b787c7 100644 --- a/vcf/parser.py +++ b/vcf/parser.py @@ -478,6 +478,8 @@ def _parse_samples(self, samples, samp_fmt, site): # short circuit the most common if samp_fmt._fields[i] == 'GT': sampdat[i] = vals + if vals == ".": + sampdat[i] = None continue # genotype filters are a special case elif samp_fmt._fields[i] == 'FT':