Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def Bio::SCOP::Raf::SeqMapIndex::__init__ (   self,
  filename 
)

Arguments:

  filename  -- The file to index

Definition at line 94 of file Raf.py.

00094                                  :
        """
        Arguments:
        
          filename  -- The file to index
        """
        dict.__init__(self)
        self.filename = filename

        f = open(self.filename)
        try:
            position = 0
            while True:
                line = f.readline()
                if not line: break
                key = line[0:5]
                if key != None :
                    self[key]=position
                position = f.tell()
        finally :
            f.close()

    def __getitem__(self, key) :


Generated by  Doxygen 1.6.0   Back to index