Back to index

python-biopython  1.60
Classes | Functions
Bio.Crystal Namespace Reference

Classes

class  CrystalError
class  Hetero
class  Chain
class  Crystal

Functions

def wrap_line
def validate_key

Class Documentation

class Bio::Crystal::CrystalError

Definition at line 16 of file __init__.py.


Function Documentation

def Bio.Crystal.validate_key (   key)

Definition at line 25 of file __init__.py.

00025 
00026 def validate_key(key):
00027     if type(key) != type(''):
00028         raise CrystalError('chain requires a string label')
00029     if len(key) != 1:
00030         raise CrystalError('chain label should contain one letter')

def Bio.Crystal.wrap_line (   line)

Definition at line 19 of file __init__.py.

00019 
00020 def wrap_line(line):
00021     output = ''
00022     for i in range(0, len(line), 80):
00023         output = output + '%s\n' % line[ i: i + 80 ]
00024     return output

Here is the caller graph for this function: