Class that represents a PDB file and allows extractions of interesting
parts.
The structure itself is never changed. In order to extract sub-parts
of a structure one selects these parts and writes them as new pdb
file.
The advantage over a simple :program:`grep` is that you will be able
to read any odd pdb file and you will also able to do things like
:meth:`~edPDB.cbook.PDB.extract_protein` or
:meth:`~edPDB.cbook.PDB.extract_lipids`.
|
|
|
write(self,
filename,
**kwargs)
Write pdbfile which includes or excludes residues. |
source code
|
|
|
|
|
|
|
extract_resnames(self,
filename,
resnames,
**kwargs)
Write a pdb file with *resnames* extracted. |
source code
|
|
|
|
|
extract_notprotein(self,
filename,
**kwargs)
Write a pdb file without any amino acids extracted. |
source code
|
|
|
extract_lipids(self,
filename,
lipid_resnames=' POPC|POPG|POPE|DMPC|DPPE|DOPE ' ,
**kwargs)
Write a pdb file with the lipids extracted. |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|