Back to index

python-biopython  1.60
Public Member Functions | Public Attributes | Static Public Attributes
Bio.Phylo.PhyloXML.MolSeq Class Reference
Inheritance diagram for Bio.Phylo.PhyloXML.MolSeq:
Inheritance graph
Collaboration diagram for Bio.Phylo.PhyloXML.MolSeq:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __str__
def __repr__

Public Attributes


Static Public Attributes

tuple re_value = re.compile(r'[a-zA-Z\.\-\?\*_]+')

Detailed Description

Store a molecular sequence.

    value : string
        the sequence itself
    is_aligned : bool
        True if this sequence is aligned with the others (usually meaning
        all aligned seqs are the same length and gaps may be present)

Definition at line 813 of file

Constructor & Destructor Documentation

def Bio.Phylo.PhyloXML.MolSeq.__init__ (   self,
  is_aligned = None 

Definition at line 825 of file

00826     def __init__(self, value, is_aligned=None):
00827         _check_str(value, self.re_value.match)
00828         self.value = value
00829         self.is_aligned = is_aligned

Here is the call graph for this function:

Member Function Documentation

def Bio.Phylo.BaseTree.TreeElement.__repr__ (   self) [inherited]
Show this object's constructor with its primitive arguments.

Definition at line 216 of file

00217     def __repr__(self):
00218         """Show this object's constructor with its primitive arguments."""
00219         def pair_as_kwarg_string(key, val):
00220             if isinstance(val, basestring):
00221                 return "%s='%s'" % (key, _sugar.trim_str(unicode(val)))
00222             return "%s=%s" % (key, val)
00223         return u'%s(%s)' % (self.__class__.__name__,
00224                             ', '.join(pair_as_kwarg_string(key, val)
00225                                   for key, val in self.__dict__.iteritems()
00226                                   if val is not None and
00227                                   type(val) in (str, int, float, bool, unicode)
00228                                   ))

Definition at line 830 of file

00831     def __str__(self):
00832         return self.value

Member Data Documentation

Definition at line 828 of file

tuple Bio.Phylo.PhyloXML.MolSeq.re_value = re.compile(r'[a-zA-Z\.\-\?\*_]+') [static]

Definition at line 823 of file

Definition at line 827 of file

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