module BioVcf::VcfHeaderParser
Public Class Methods
get_column_names(lines)
click to toggle source
# File lib/bio-vcf/vcfheader.rb, line 16 def VcfHeaderParser.get_column_names(lines) lines.each do | line | if line =~ /^#[^#]/ # the first line that starts with a single hash names = line.split names[0].sub!(/^#/,'') return names end end nil end
parse_field(line, debug)
click to toggle source
# File lib/bio-vcf/vcfheader.rb, line 28 def VcfHeaderParser.parse_field(line, debug) BioVcf::VcfHeaderParser::RagelKeyValues.run_lexer(line, debug: debug) end