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.10.8.0 script/mzml_read_binary.rb
mspire-0.10.7.3 script/mzml_read_binary.rb
mspire-0.10.7.2 script/mzml_read_binary.rb
mspire-0.10.7.1 script/mzml_read_binary.rb
mspire-0.10.7 script/mzml_read_binary.rb
mspire-0.10.6 script/mzml_read_binary.rb
mspire-0.10.5 script/mzml_read_binary.rb
mspire-0.10.4 script/mzml_read_binary.rb
mspire-0.10.3 script/mzml_read_binary.rb
mspire-0.10.2 script/mzml_read_binary.rb
mspire-0.10.1 script/mzml_read_binary.rb
mspire-0.10.0 script/mzml_read_binary.rb
mspire-0.9.2 script/mzml_read_binary.rb
mspire-0.9.1 script/mzml_read_binary.rb
mspire-0.9.0 script/mzml_read_binary.rb
mspire-0.8.7 script/mzml_read_binary.rb
mspire-0.8.6.2 script/mzml_read_binary.rb
mspire-0.8.6.1 script/mzml_read_binary.rb
mspire-0.8.6 script/mzml_read_binary.rb
mspire-0.8.5 script/mzml_read_binary.rb