Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.Sequencing.Ace.ds Class Reference

List of all members.

Public Member Functions

def __init__

Public Attributes

 chromat_file
 phd_file
 time
 chem
 dye
 template
 direction

Detailed Description

DS lines, include file name of a read's chromatogram file.

Definition at line 84 of file Ace.py.


Constructor & Destructor Documentation

def Bio.Sequencing.Ace.ds.__init__ (   self,
  line = None 
)

Definition at line 86 of file Ace.py.

00086 
00087     def __init__(self, line=None):
00088         self.chromat_file=''
00089         self.phd_file=''
00090         self.time=''
00091         self.chem=''
00092         self.dye=''
00093         self.template=''
00094         self.direction=''
00095         if line:
00096             tags=['CHROMAT_FILE','PHD_FILE','TIME','CHEM','DYE','TEMPLATE','DIRECTION']
00097             poss=map(line.find,tags)
00098             tagpos=dict(zip(poss,tags))
00099             if -1 in tagpos:
00100                 del tagpos[-1]
00101             ps=tagpos.keys()
00102             ps.sort()
00103             for (p1,p2) in zip(ps,ps[1:]+[len(line)+1]):
00104                 setattr(self,tagpos[p1].lower(),line[p1+len(tagpos[p1])+1:p2].strip())   


Member Data Documentation

Definition at line 90 of file Ace.py.

Definition at line 87 of file Ace.py.

Definition at line 93 of file Ace.py.

Definition at line 91 of file Ace.py.

Definition at line 88 of file Ace.py.

Definition at line 92 of file Ace.py.

Definition at line 89 of file Ace.py.


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