Skip to content

Commit d997a84

Browse files
author
Måns Magnusson
authored
Merge pull request #102 from moonso/parse-new-header-format
parse new header format
2 parents bd93f16 + f152159 commit d997a84

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ Try to use the following format:
1010

1111
## [x.x.x]
1212

13+
### Changed
14+
- Adds support for escaped characters in FORMAT description header strings
15+
1316
### Fixed
1417
- Documentation about cli options `strict` and `phased`

genmod/vcf_tools/header_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def __init__(self):
5959
>''', re.VERBOSE)
6060
self.filter_pattern = re.compile(r'''\#\#FILTER=<
6161
ID=(?P<id>[^,]+),
62-
Description="(?P<desc>[^"]*)"
63-
>''', re.VERBOSE)
62+
Description="(?P<desc>.+">$)
63+
''', re.VERBOSE)
6464
self.contig_pattern = re.compile(r'''\#\#contig=<
6565
ID=(?P<id>[^,]+)
6666
.*

0 commit comments

Comments
 (0)