Back to index

python-biopython  1.60
Classes | Functions
Bio.SCOP.Raf Namespace Reference

Classes

class  SeqMapIndex
class  SeqMap
class  Res

Functions

def normalize_letters
def parse

Function Documentation

def Bio.SCOP.Raf.normalize_letters (   one_letter_code)
Convert RAF one-letter amino acid codes into IUPAC standard codes.

Letters are uppercased, and "." ("Unknown") is converted to "X".

Definition at line 35 of file Raf.py.

00035 
00036 def normalize_letters(one_letter_code):
00037     """Convert RAF one-letter amino acid codes into IUPAC standard codes.
00038     
00039     Letters are uppercased, and "." ("Unknown") is converted to "X".
00040     """
00041     if one_letter_code == '.':
00042         return 'X'
00043     else:
00044         return one_letter_code.upper()

Here is the caller graph for this function:

def Bio.SCOP.Raf.parse (   handle)
Iterates over a RAF file, returning a SeqMap object for each line
in the file.

Arguments:
    
    handle -- file-like object.

Definition at line 309 of file Raf.py.

00309 
00310 def parse(handle):
00311     """Iterates over a RAF file, returning a SeqMap object for each line
00312     in the file.
00313 
00314     Arguments:
00315         
00316         handle -- file-like object.
00317     """ 
00318     for line in handle:
00319         yield SeqMap(line)