Sha256: 4728c53ff637589547f4c05a917277f0762af0c8e1e1d0b45264da1ec55bbe1e

Contents?: true

Size: 709 Bytes

Versions: 32

Compression:

Stored size: 709 Bytes

Contents

#!/usr/bin/env ruby

require 'trollop'
require 'mspire/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 Mspire::Mzml::DataArray.from_binary(base64, type, compressed).join(" ")
end






Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
mspire-0.8.4 script/mzml_read_binary.rb
mspire-0.8.3 script/mzml_read_binary.rb
mspire-0.8.2 script/mzml_read_binary.rb
mspire-0.8.1 script/mzml_read_binary.rb
mspire-0.8.0 script/mzml_read_binary.rb
mspire-0.7.18 script/mzml_read_binary.rb
mspire-0.7.17 script/mzml_read_binary.rb
mspire-0.7.13 script/mzml_read_binary.rb
mspire-0.7.12 script/mzml_read_binary.rb
mspire-0.7.11 script/mzml_read_binary.rb
mspire-0.7.10 script/mzml_read_binary.rb
mspire-0.7.9 script/mzml_read_binary.rb