Sha256: 1fdc699af15b30c8c43ec7353d6434452f7cd674e9f4d7768e133598bceba514
Contents?: true
Size: 633 Bytes
Versions: 5
Compression:
Stored size: 633 Bytes
Contents
#!/usr/bin/ruby require "ms/msrun/plms1" ext = "plms1" if ARGV.size == 0 puts "usage: #{File.basename(__FILE__)} <file>.mz[X]ML ..." puts "output: <file>.#{ext} ..." puts "" puts " plms1 is the Prince Lab MS 1 binary file format" puts " [matlab readers and writers also exist]" puts "" puts "options:" puts " --spec print file spec and exit" end if ARGV.include?("--spec") puts Ms::Msrun::Plms1::SPECIFICATION exit end ARGV.each do |file| outfile = file.sub(/\.mzX?ML$/,".#{ext}") Ms::Msrun.open(file) do |ms| # see docs for lots more options here ms.to_plms1.write(outfile) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ms-msrun-0.3.6 | bin/ms_to_plms1.rb |
ms-msrun-0.3.5 | bin/ms_to_plms1.rb |
ms-msrun-0.3.4 | bin/ms_to_plms1.rb |
ms-msrun-0.3.3 | bin/ms_to_plms1.rb |
ms-msrun-0.3.2 | bin/ms_to_plms1.rb |