Module: BioVcf::VcfRecordParser
- Defined in:
- lib/bio-vcf/vcfrecord.rb
Class Method Summary collapse
-
.get_format(s) ⇒ Object
Parse the format field into a Hash.
- .get_info(s) ⇒ Object
Class Method Details
.get_format(s) ⇒ Object
Parse the format field into a Hash
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/bio-vcf/vcfrecord.rb', line 72 def VcfRecordParser.get_format s if s==$cached_sample_format_s $cached_sample_format else h = {} s.split(/:/).each_with_index { |v,i| h[v] = i } $cached_sample_format = h $cached_sample_format_s = s h end end |
.get_info(s) ⇒ Object
83 84 85 |
# File 'lib/bio-vcf/vcfrecord.rb', line 83 def VcfRecordParser.get_info s VcfRecordInfo.new(s) end |