| Home | Trees | Indices | Help |
|
|---|
|
|
moleculeWriter.MoleculeWriter --+
|
PdbWriter
|
|||
|
__init__(self) Constructor: userRecords contains input from user to be written to file. |
||
|
write(self,
filename,
nodes,
sort=False,
sortFunc=None,
records=['ATOM','CONECT'],
bondOrigin=('File',),
ssOrigin='File') required argument: filename -- path to the new file, a .pdb extension will be added when missing. |
||
|
write_atom(self,
f,
atm) Takes a file object and an Atom instance. |
||
| formatName(self, at) | ||
|
addRecord(self,
key,
record=[]) Allows user to enter own record for the record type given by key. |
||
| defineHYDBNDRecords(self, atoms) | ||
|
defineHELIXRecords(self,
helix) Takes a list of Helix objects and define the corresponding HELIX records |
||
|
defineSHEETRecords(self,
sheet) Takes a set of Strand objects and define the SHEET records |
||
|
defineTURNRecords(self,
turn) Takes a set of Turn objects and define the TURN records |
||
|
defineATOM_HETATMRecord(self,
atm) Define the ATOM or HETATM rec for the given atm |
||
|
defineTERRecord(self,
atom) TER record to the file. |
||
|
defineSecondaryStructureSection(self,
mol,
origin='') The Secondary structure section contains the following records: HELIX, SHEET, TURN Information will taken from either the file or the data structure required argument: origin can either be '', File or Stride |
||
|
defineCoordsSection(self,
nodes,
sort=False,
sortFunc=None,
atmRec=True,
hetRec=True) The coordinate section should contain the following records: MODEL, ATOM, SIGATM, ANISOU, SIGUIJ, TER, HETATM, ENDMDL Here we only save the current conformation and only the ATOM, TER, and HETATM records. |
||
|
defineConnectSection(self,
atms,
bondOrigin=('File',)) The Connectivity section contains the following records: CONECT bondOrigin -- either a string 'all' or a tuple of string describing the origin of the bonds: 'File' : CONECT records of the originating file describing the molecule 'BuiltByDistance': Bonds created by distance. |
||
|
|||
|
required argument:
filename -- path to the new file, a .pdb extension will be added
when missing.
nodes -- TreeNode, TreeNodeSet instance to save as PDB
optional arguments:
sort -- (False) Boolean flag to specify whether or not to sort the
given nodes
sortFunc -- (None) sort function that will be used to sort the nodes
when specified.This function has to return (-1, 0 or 1).
records -- list of PDB record to write out
bondOrigin -- (('File', )) This will be used if the CONECT records are
written out. Can be any combination of 'File',
'BuiltByDistance' and 'UserDefined'.
ssOrigin -- 'File' This will be used if the TURN, HELIX and SHEET
records are written. Can be either from the originating
PDB file or from the data structure.
|
|
|
|
|
|
|
|
|
|
|
|
The Connectivity section contains the following records:
CONECT
bondOrigin -- either a string 'all' or a tuple of string describing the
origin of the bonds:
'File' : CONECT records of the originating file describing the molecule
'BuiltByDistance': Bonds created by distance.
'UserDefined' : Bonds added by the user.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Fri Nov 2 14:10:38 2007 | http://epydoc.sourceforge.net |