Skip to content

Commit

Permalink
format empty filter lists
Browse files Browse the repository at this point in the history
  • Loading branch information
James Casbon committed Sep 10, 2012
1 parent 27ee8e3 commit 2a728f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vcf/parser.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -581,7 +581,9 @@ def _format_alt(self, alt):
return ','.join(self._map(str, alt)) return ','.join(self._map(str, alt))


def _format_filter(self, flt): 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): def _format_info(self, info):
if not info: if not info:
Expand Down

0 comments on commit 2a728f4

Please sign in to comment.