ample.util.pdb_model module

Created on 7 Aug 2013

@author: jmht

Classes for holding data from PDB files

class CrystalInfo(line=None)[source]

Bases: object

Methods

fromLine  
fromLine(line)[source]
class OriginInfo(spaceGroupLabel=None)[source]

Bases: object

Methods

isFloating  
nonRedundantAlternateOrigins  
redundantAlternateOrigins  
spaceGroup  
isFloating(spaceGroupLabel=None)[source]
nonRedundantAlternateOrigins(spaceGroupLabel=None)[source]
redundantAlternateOrigins(spaceGroupLabel=None)[source]
spaceGroup()[source]
class PdbAtom(line=None)[source]

Bases: object

Methods

fromHetatm(hetatm) Create Atom from Hetatm
fromLine(line) Initialise from the line from a PDB
toLine() Create a line suitable for printing to a PDB file
fromHetatm(hetatm)[source]

Create Atom from Hetatm

fromLine(line)[source]

Initialise from the line from a PDB

toLine()[source]

Create a line suitable for printing to a PDB file

class PdbHetatm(line=None)[source]

Bases: ample.util.pdb_model.PdbAtom

Identical to PdbAtom but just with a different _atomType

Methods

fromHetatm(hetatm) Create Atom from Hetatm
fromLine(line) Initialise from the line from a PDB
toLine() Create a line suitable for printing to a PDB file
class PdbInfo[source]

Bases: object

A class to hold information extracted from a PDB file

Methods

getSequence() Return the sequence for the first model/chain
numAtoms([modelIdx]) Return the total number of ATOM atoms in the model
numCalpha([modelIdx]) Return the total number of CA ATOM atoms in the model
numChains([modelIdx]) Return the total number of chains in the model
getSequence()[source]

Return the sequence for the first model/chain

numAtoms(modelIdx=0)[source]

Return the total number of ATOM atoms in the model

numCalpha(modelIdx=0)[source]

Return the total number of CA ATOM atoms in the model

numChains(modelIdx=0)[source]

Return the total number of chains in the model

class PdbModel[source]

Bases: object

A class to hold information on a single model in a PDB file

class PdbModres(line)[source]

Bases: object

Methods

fromLine(line) Initialise from the line from a PDB
toLine() Create a line suitable for printing to a PDB file
fromLine(line)[source]

Initialise from the line from a PDB

toLine()[source]

Create a line suitable for printing to a PDB file