Sha256: 07b8be3506df02e49ea69b17bd72dbe73c12ea0b5e17008b5b7225c579527313
Contents?: true
Size: 559 Bytes
Versions: 6
Compression:
Stored size: 559 Bytes
Contents
#!/usr/bin/env ruby require 'bio-maf' require 'bigbio' require 'optparse' require 'ostruct' options = OpenStruct.new options.parser = Bio::MAF::Parser OptionParser.new do |opts| opts.banner = "Usage: maf_dump_blocks [options] <maf>" opts.separator "" opts.separator "Options:" opts.on("--parser PARSER", "parser") do |name| options.parser = Bio::MAF.const_get(name) end end.parse!(ARGV) src_path = ARGV.shift parser = options.parser.new(src_path) parser.each_block do |block| $stdout.printf("%12d\t%7d\n", block.offset, block.size) end
Version data entries
6 entries across 6 versions & 1 rubygems