Back to index

python-biopython  1.60
Public Member Functions | Public Attributes | Static Private Attributes
Bio.FSSP.PosAlign Class Reference

List of all members.

Public Member Functions

def __init__
def __repr__

Public Attributes

 aa
 gap
 ss

Static Private Attributes

 __str__ = __repr__

Detailed Description

Definition at line 58 of file __init__.py.


Constructor & Destructor Documentation

def Bio.FSSP.PosAlign.__init__ (   self,
  inStr 
)

Definition at line 59 of file __init__.py.

00059 
00060    def __init__(self,inStr):
00061       inStr = inStr.strip()
00062       if len(inStr) != 1 and len(inStr)!= 2:
00063          raise ValueError('PosAlign: length not 2 chars' + inStr)
00064       if inStr == '..':
00065          self.aa = '-'
00066          self.gap = 1
00067       else:
00068          self.gap = 0
00069          self.aa = inStr[0]
00070          if self.aa == self.aa.lower():
00071             self.aa = 'C'
00072          if len(inStr) == 2:
00073             self.ss = inStr[1].upper()
00074          else:
00075             self.ss = '0'

Here is the caller graph for this function:


Member Function Documentation

Definition at line 76 of file __init__.py.

00076 
00077    def __repr__(self):
00078       if self.gap:
00079          outstring = '..'
00080       else:
00081          outstring = self.aa+self.ss.lower()
00082       return outstring


Member Data Documentation

Bio.FSSP.PosAlign.__str__ = __repr__ [static, private]

Definition at line 83 of file __init__.py.

Definition at line 64 of file __init__.py.

Definition at line 65 of file __init__.py.

Definition at line 72 of file __init__.py.


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