Sha256: 778b062a43084705b644c4d6e3840349807393257ea85c0cf615c15fbc3b00d9

Contents?: true

Size: 701 Bytes

Versions: 3

Compression:

Stored size: 701 Bytes

Contents

#!/usr/bin/env ruby

require 'trollop'
require 'ms/mzml/data_array'

parser = Trollop::Parser.new do
  banner "usage: #{File.basename(__FILE__)} [OPTIONS] <base64> ..."
  banner "output: space separated data, one line per base64 string"
  banner ""
  opt :type, "kind of data (float32|float64|int8|int16|int32|int64)", :default => 'float64'
  opt :not_compressed, "zlib compression was *not* used"
end

begin
  opts = parser.parse(ARGV)
rescue help=Trollop::HelpNeeded 
end

if help || ARGV.size == 0
  parser.educate && exit
end

type = opts[:type].to_sym
compressed = !opts[:not_compressed]

ARGV.each do |base64|
  puts MS::Mzml::DataArray.from_binary(base64, type, compressed).join(" ")
end






Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mspire-0.6.26 script/mzml_read_binary.rb
mspire-0.6.25 script/mzml_read_binary.rb
mspire-0.6.24 script/mzml_read_binary.rb