Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.SeqFeature.Reference Class Reference

List of all members.

Public Member Functions

def __init__
def __str__
def __repr__

Public Attributes

 location
 authors
 consrtm
 title
 journal
 medline_id
 pubmed_id
 comment

Detailed Description

Represent a Generic Reference object.

Attributes:
o location - A list of Location objects specifying regions of
the sequence that the references correspond to. If no locations are
specified, the entire sequence is assumed.
o authors - A big old string, or a list split by author, of authors
for the reference.
o title - The title of the reference.
o journal - Journal the reference was published in.
o medline_id - A medline reference for the article.
o pubmed_id - A pubmed reference for the article.
o comment - A place to stick any comments about the reference.

Definition at line 437 of file SeqFeature.py.


Constructor & Destructor Documentation

Definition at line 452 of file SeqFeature.py.

00452 
00453     def __init__(self):
00454         self.location = []
00455         self.authors = ''
00456         self.consrtm = ''
00457         self.title = ''
00458         self.journal = ''
00459         self.medline_id = ''
00460         self.pubmed_id = ''
00461         self.comment = ''


Member Function Documentation

Definition at line 478 of file SeqFeature.py.

00478 
00479     def __repr__(self):
00480         #TODO - Update this is __init__ later accpets values
00481         return "%s(title=%s, ...)" % (self.__class__.__name__,
00482                                       repr(self.title))
00483 
00484 # --- Handling feature locations

Output an informative string for debugging.

Definition at line 462 of file SeqFeature.py.

00462 
00463     def __str__(self):
00464         """Output an informative string for debugging.
00465         """
00466         out = ""
00467         for single_location in self.location:
00468             out += "location: %s\n" % single_location
00469         out += "authors: %s\n" % self.authors
00470         if self.consrtm:
00471             out += "consrtm: %s\n" % self.consrtm
00472         out += "title: %s\n" % self.title
00473         out += "journal: %s\n" % self.journal
00474         out += "medline id: %s\n" % self.medline_id
00475         out += "pubmed id: %s\n" % self.pubmed_id
00476         out += "comment: %s\n" % self.comment
00477         return out


Member Data Documentation

Definition at line 454 of file SeqFeature.py.

Definition at line 460 of file SeqFeature.py.

Definition at line 455 of file SeqFeature.py.

Definition at line 457 of file SeqFeature.py.

Definition at line 453 of file SeqFeature.py.

Definition at line 458 of file SeqFeature.py.

Definition at line 459 of file SeqFeature.py.

Definition at line 456 of file SeqFeature.py.


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