Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.GenBank.Record.Feature Class Reference

List of all members.

Public Member Functions

def __init__
def __str__

Public Attributes

 key
 location
 qualifiers

Detailed Description

Hold information about a Feature in the Feature Table of GenBank record.

Attributes:
o key - The key name of the featue (ie. source)
o location - The string specifying the location of the feature.
o qualfiers - A listing Qualifier objects in the feature.

Definition at line 614 of file Record.py.


Constructor & Destructor Documentation

Definition at line 622 of file Record.py.

00622 
00623     def __init__(self):
00624         self.key = ''
00625         self.location = ''
00626         self.qualifiers = []

Here is the caller graph for this function:


Member Function Documentation

Definition at line 627 of file Record.py.

00627 
00628     def __str__(self):
00629         output = Record.INTERNAL_FEATURE_FORMAT % self.key
00630         output += _wrapped_genbank(self.location, Record.GB_FEATURE_INDENT,
00631                                    split_char = ',')
00632         for qualifier in self.qualifiers:
00633             output += " " * Record.GB_FEATURE_INDENT
00634             
00635             # determine whether we can wrap on spaces
00636             space_wrap = 1
00637             for no_space_key in \
00638                 Bio.GenBank._BaseGenBankConsumer.remove_space_keys:
00639                 if qualifier.key.find(no_space_key) >= 0:
00640                     space_wrap = 0
00641             
00642             output += _wrapped_genbank(qualifier.key + qualifier.value,
00643                                        Record.GB_FEATURE_INDENT, space_wrap)
00644         return output

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 623 of file Record.py.

Definition at line 624 of file Record.py.

Definition at line 625 of file Record.py.


The documentation for this class was generated from the following file: