Sha256: b5c77ce93e2c5dafdc12c0a48a9851e8e0a87ef224c67fad338a87ea57a3378c

Contents?: true

Size: 381 Bytes

Versions: 4

Compression:

Stored size: 381 Bytes

Contents

#!/usr/bin/ruby -w


require 'spec_id/aa_freqs'

if ARGV.size < 1
  puts "usage: #{File.basename(__FILE__)} <file>.fasta ..."
  puts "prints the amino acid frequencies of every amino acid in each fasta file"
  exit
end

ARGV.each do |file|
  obj = SpecID::AAFreqs.new(file)
  puts file
  obj.aafreqs.sort_by{|v| v.to_s }.each do |k,v|
    puts "#{k}: #{v}"
  end
  puts ""
end




Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mspire-0.2.1 bin/find_aa_freq.rb
mspire-0.2.2 bin/find_aa_freq.rb
mspire-0.2.4 bin/find_aa_freq.rb
mspire-0.2.0 bin/find_aa_freq.rb