Package Bio :: Package Mindy :: Module SimpleSeqRecord :: Class FunctionIndexer
[hide private]
[frames] | no frames]

Class FunctionIndexer

source code

BaseSeqRecordIndexer --+
                       |
                      FunctionIndexer

Indexer to index based on values returned by a function.

This class is passed a function which will return id, name and alias information from a SeqRecord object. It needs to return either one item, which is an id from the title, or three items which are (in order), the id, a list of names, and a list of aliases.

This indexer allows indexing to be completely flexible based on passed functions.

Instance Methods [hide private]
 
__init__(self, index_function) source code
 
primary_key_name(self) source code
 
secondary_key_names(self) source code
 
get_id_dictionary(self, seq_record) source code

Inherited from BaseSeqRecordIndexer: get_builder

Method Details [hide private]

__init__(self, index_function)
(Constructor)

source code 
Overrides: BaseSeqRecordIndexer.__init__

primary_key_name(self)

source code 
Overrides: BaseSeqRecordIndexer.primary_key_name

secondary_key_names(self)

source code 
Overrides: BaseSeqRecordIndexer.secondary_key_names

get_id_dictionary(self, seq_record)

source code 
Overrides: BaseSeqRecordIndexer.get_id_dictionary