Table of Contents

Class: LinParser Bio/SCOP/Lin.py

Parse information from a lin file.

Members: parse Parse a record from a lin file.

Methods   
_clean
_parse_hierarchy
_parse_info
parse
  _clean 
_clean (
        self,
        str,
        label,
        )

Exceptions   
SyntaxError, "Expected %s but got %s" %( label, l )
SyntaxError, "I could not find the label in %s" % str
  _parse_hierarchy 
_parse_hierarchy (
        self,
        data,
        rec,
        )

Exceptions   
SyntaxError, data
  _parse_info 
_parse_info (
        self,
        data,
        rec,
        )

Exceptions   
SyntaxError, "I expected 4 columns in %s" % data
  parse 
parse ( self,  line )

S.parse(line) -> Lin

data should be a string containing an entry from a lin file.

Exceptions   
SyntaxError, "I couldn't find 'Class:' in\n%s" % line

Table of Contents

This document was automatically generated on Sat Jul 7 09:49:56 2001 by HappyDoc version r1_5