Sha256: 57eff7efa0696e17a6556394f94cb37da4c019a77b86db878b358010b5f6b3c8

Contents?: true

Size: 601 Bytes

Versions: 8

Compression:

Stored size: 601 Bytes

Contents

#!/usr/bin/ruby -w

require 'spec/mzxml/parser'
require 'spec/msrun'
require 'rexml/document'
include REXML

if ARGV.size < 1
  puts "usage: #{File.basename(__FILE__)} file.mzXML ..."
  puts "  outputs 'file.mzXML.timeIndex'"
  puts "  which contains rows of:"
  puts "  level scan_num time (if !msLevel1:) prec_mz prec_intensity"
end

# outputs rows of:
# level scan_num time [precursor_mz precursor_intensity(if !msLevel1)]

ARGV.each do |file|
  puts "READING: " + file
  outfile = file + '.timeIndex'
  obj = MS::MSRunIndex.new(file)
  puts "WRITING: " + outfile
  obj.to_index_file(outfile)
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mspire-0.4.9 script/mzXML2timeIndex.rb
mspire-0.3.0 script/mzXML2timeIndex.rb
mspire-0.3.9 script/mzXML2timeIndex.rb
mspire-0.3.1 script/mzXML2timeIndex.rb
mspire-0.4.2 script/mzXML2timeIndex.rb
mspire-0.4.4 script/mzXML2timeIndex.rb
mspire-0.4.5 script/mzXML2timeIndex.rb
mspire-0.4.7 script/mzXML2timeIndex.rb