Sha256: 1ae3ea28e0b792f16db1aacdb6e8471f7cf6afa8e0b2aa653988aaed2e4480ba
Contents?: true
Size: 328 Bytes
Versions: 2
Compression:
Stored size: 328 Bytes
Contents
module BioVcf module VcfLine # Split a line into fields and check size def VcfLine.parse line,expected_size=nil fields = line.strip.split(/\t/) raise "Expected #{expected_size} fields but got #{fields.size} in "+fields.to_s if expected_size and fields.size != expected_size fields end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bio-vcf-0.0.2 | lib/bio-vcf/vcfline.rb |
bio-vcf-0.0.1 | lib/bio-vcf/vcfline.rb |