Module: BioVcf::VcfHeaderParser
- Defined in:
- lib/bio-vcf/vcfheader.rb
Class Method Summary collapse
Class Method Details
.get_column_names(lines) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/bio-vcf/vcfheader.rb', line 5 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 |