Table of Contents

Class: StructureBuilder Bio/PDB/StructureBuilder.py

Deals with contructing the Structure object. The StructureBuilder class is used by the PDBParser classes to translate a file to a Structure object.

Methods   
__init__
_is_completely_disordered
get_structure
init_atom
init_chain
init_model
init_residue
init_seg
init_structure
set_anisou
set_line_counter
set_sigatm
set_siguij
  __init__ 
__init__ ( self )

  _is_completely_disordered 
_is_completely_disordered ( self,  residue )

Return 1 if all atoms in the residue have a non blanc altloc.

  get_structure 
get_structure ( self )

Return the structure.

  init_atom 
init_atom (
        self,
        name,
        coord,
        b_factor,
        occupancy,
        altloc,
        fullname,
        )

Initiate a new Atom object.

Arguments: o name - string, atom name, e.g. CA, spaces should be stripped o coord - Numpy array (Float0, size 3), atomic coordinates o b_factor - float, B factor o occupancy - float o altloc - string, alternative location specifier o fullname - string, atom name including spaces, e.g. " CA "

  init_chain 
init_chain ( self,  chain_id )

Initiate a new Chain object with given id.

Arguments: o chain_id - string

  init_model 
init_model ( self,  model_id )

Initiate a new Model object with given id.

Arguments: o id - int

  init_residue 
init_residue (
        self,
        resname,
        field,
        resseq,
        icode,
        )

Initiate a new Residue object.

Arguments: o resname - string, e.g. "ASN" o field - hetero flag, "W" for waters, "H_" followed by the residue name for hetero residues (e.g. "H_FUC"), default blanc. o resseq - int, sequence identifier o icode - string, insertion code

Exceptions   
PDBConstructionException, "Blank altlocs in duplicate residue %s ('%s', %i, '%s')" %( resname, field, resseq, icode )
  init_seg 
init_seg ( self,  segid )

Flag a change in segid.

Arguments: o segid - string

  init_structure 
init_structure ( self,  structure_id )

Initiate a new Structure object with given id.

Arguments: o id - string

  set_anisou 
set_anisou ( self,  anisou_array )

Set anisotropic B factor of current Atom.

  set_line_counter 
set_line_counter ( self,  line_counter )

The line counter keeps track of the line in the PDB file that is being parsed.

Arguments: o line_counter - int

  set_sigatm 
set_sigatm ( self,  sigatm_array )

Set standard deviation of atom position of current Atom.

  set_siguij 
set_siguij ( self,  siguij_array )

Set standard deviation of anisotropic B factor of current Atom.


Table of Contents

This document was automatically generated on Mon Jul 1 12:02:52 2002 by HappyDoc version 2.0.1