template/vcf2json.erb in bio-vcf-0.8.0 vs template/vcf2json.erb in bio-vcf-0.8.1

- old
+ new

@@ -1,8 +1,20 @@ +=HEADER +<% require 'json' %> +[ + { "HEADER": { + "options": <%= options.to_h.to_json %>, + "files": <%= ARGV %>, + "version": "<%= BIOVCF_VERSION %>" + }, + +=BODY + { "seq:chr": "<%= rec.chrom %>" , "seq:pos": <%= rec.pos %> , "seq:ref": "<%= rec.ref %>" , "seq:alt": "<%= rec.alt[0] %>" , - "seq:maf": <%= rec.info.maf[0] %> , "dp": <%= rec.info.dp %> , -}; +}, +=FOOTER +]