Sha256: aa0081dcc5d0d3f2f4565fb09cbd483df02ee888ddbc56753764f1e20d973b26

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 Bytes

Contents

#!/usr/bin/ruby -w

require 'spec_id/proph'

if ARGV.size < 1
  puts "usage: #{File.basename(__FILE__)} <prob_cutoff> <pepproph.xml> ..."
  puts "     For each file outputs 'pepproph_min<prob_cutoff>.xml'"
  puts "     deleting all search_hits with peptides less than prob_cutoff"
end

files = ARGV.to_a
cutoff = files.shift
files.each do |file|
  outfile = file.gsub(/\.xml/, "_min#{cutoff}.xml")
  SpecID::Proph::Pep::Parser.new.filter_by_min_pep_prob(file, outfile, cutoff.to_f)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mspire-0.1.3 bin/pepproph_filter.rb
mspire-0.1.5 bin/pepproph_filter.rb
mspire-0.1.7 bin/pepproph_filter.rb