Class: Bio::Sequence::AA
- Inherits:
-
Object
- Object
- Bio::Sequence::AA
- Defined in:
- lib/bio/sequence/aa/aliphatic_index.rb
Instance Method Summary collapse
Instance Method Details
#aliphatic_index ⇒ Object
6 7 8 9 10 11 |
# File 'lib/bio/sequence/aa/aliphatic_index.rb', line 6 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 |