jamescasbon/PyVCF — Issue #3: support for negative number in FORMAT (patch).
Author: brentp
Created: 2012-01-13 21:41:46+00:00
State: open

Otherwise, can get an error on output from samtools.

```Patch
diff --git a/vcf.py b/vcf.py
index e52ebd9..103bbef 100644
--- a/vcf.py
+++ b/vcf.py
@@ -130,7 +130,7 @@ class _vcf_metadata_parser(object):
>''', re.VERBOSE)
self.format_pattern = re.compile(r'''\#\#FORMAT=<
ID=(?P.+),
- Number=(?P\d+|\.|[AG]),
+ Number=(?P-?\d+|\.|[AG]),
Type=(?P.+),
Description="(?P.*)"
>''', re.VERBOSE)
```