Sha256: 1e6a17d7dbe77f28fbbf15c8cf0e6c038ccd6583c8c2d541dca52bd1d4474454

Contents?: true

Size: 255 Bytes

Versions: 1

Compression:

Stored size: 255 Bytes

Contents

require 'bio'

module Bio
  class Sequence
    class AA
      def aliphatic_index
        comp = self.composition
        a = 2.9
        b = 3.9
        (comp['A']+a*comp['V'].to_f+b*(comp['I']+comp['L'])).to_f/length.to_f*100
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bio-aliphatic_index-0.0.1 lib/bio/sequence/aa/aliphatic_index.rb