Skip to content
Browse files

Write record without crashing on missing GT

  • Loading branch information...
1 parent 2a728f4 commit a2a1a8e3c86dc27ab54029257bbe823c8c8ba03d @martijnvermaat martijnvermaat committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 vcf/parser.py
View
2 vcf/parser.py
@@ -591,7 +591,7 @@ def _format_info(self, info):
return ';'.join([self._stringify_pair(x,y) for x, y in info.iteritems()])
def _format_sample(self, fmt, sample):
- if sample.data.GT is None:
+ if getattr(sample.data, 'GT', None) is None:
return "./."
return ':'.join([self._stringify(x) for x in sample.data])

0 comments on commit a2a1a8e

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