Biskit :: ChainWriter :: ChainWriter :: Class ChainWriter
[hide private]
[frames] | no frames]

Class ChainWriter

source code

Take chain from chainCleaner; write single PDB with unique segementID and no chainID

Instance Methods [hide private]
  __init__(self, path)
Take chains from ChainCleaner and write pdb files.
PDBFile _startPDB(self, chain, fname)
Create pdb file and write header.
  removeTER(self, fname)
Remove TER record from PDB.
  writeChain(self, chain)
Write single chain as PDB.

Method Details [hide private]

__init__(self, path)
(Constructor)

source code 

Take chains from ChainCleaner and write pdb files. File names are created from segid of each chain + '_seg.pdb'
Parameters:
  • path (string) - output path for PDB files

_startPDB(self, chain, fname)

source code 

Create pdb file and write header.
Parameters:
  • chain (chain object) - Scientific.IO.PDB.PeptideChain object
  • fname (string) - file name
Returns: PDBFile
handle of open file

removeTER(self, fname)

source code 

Remove TER record from PDB.
Parameters:
  • fname (string) - name of existing file.

writeChain(self, chain)

source code 

Write single chain as PDB. File name will be segid + '_seg.pdb'.
Parameters:
  • chain (chain object) - Scientific.IO.PDB.PeptideChain object