class Bio::AAindex

Description

Bio::AAindex is the super class of Bio::AAindex1 and Bio::AAindex2, parser classes for AAindex Amino Acid Index Database.

Except Bio::AAindex.auto, do not use this class directly. Methods of this super class is used from AAindex1 and AAindex2 classes.

Examples

# auto-detection of data format
aax1 = Bio::AAindex.auto("PRAM900102.aaindex1")
aax2 = Bio::AAindex.auto("DAYM780301.aaindex2")

# Example of Bio::AAindex1 class
aax1 = Bio::AAindex1.new("PRAM900102.aaindex1")
aax1.entry_id
aax1.index

# Example of Bio::AAindex2 class
aax2 = Bio::AAindex2.new("DAYM780301.aaindex2")
aax2.entry_id
aax2.matrix
aax2.matrix[2,2]
aax2.matrix('R', 'A')
aax2['R', 'A']

References