Permalink
Browse files

format empty filter lists

  • Loading branch information...
1 parent 27ee8e3 commit 2a728f4f26902835510d0d2b37bd8e0e6b25f8c2 @casbon casbon committed Sep 10, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 vcf/parser.py
View
@@ -581,7 +581,9 @@ def _format_alt(self, alt):
return ','.join(self._map(str, alt))
def _format_filter(self, flt):
- return self._stringify(flt, none='PASS', delim=';')
+ if flt == []:
+ return 'PASS'
+ return self._stringify(flt, none='.', delim=';')
def _format_info(self, info):
if not info:

0 comments on commit 2a728f4

Please sign in to comment.