hPDB-0.99: Parser, print and manipulate structures in PDB file format.

Safe HaskellNone

Bio.PDB.Structure

Synopsis

Documentation

type String = ByteStringSource

We use only strict ByteString as strings in PDB parser.

vdot :: Vec3D -> Vec3D -> DoubleSource

Computes a dot product of two 3D vectors.

vnorm :: Vec3D -> DoubleSource

2-norm of a vector (also called a magnitude or length.)

vproj :: Vector3 -> Vector3 -> Vec3DSource

Finds a vector component of the first vector that is a projection onto direction of second vector.

vperpend :: Vec3D -> Vector3 -> Vec3DSource

Returns a component of the vector v that is perpendicular to w.

vperpends :: Vec3D -> [Vector3] -> Vec3DSource

Finds a component of the vector v that is perpendicular to all vectors in a list.

vdihedral :: Vec3D -> Vec3D -> Vec3D -> DoubleSource

Compute dihedral between three bond vectors using spherical angle formula.

(*|) :: Double -> Vec3D -> Vec3DSource

Scalar product. (* indicates side on which one can put a scalar.)

(|*) :: Vec3D -> Double -> Vec3DSource

Scalar product. (* indicates side on which one can put a scalar.)

data Model Source

PDB entry may contain multiple models, with slight differences in coordinates etc.

Constructors

Model 

Fields

modelId :: !Int
 
chains :: List Chain
 

data Chain Source

Single linear polymer chain of protein, or nucleic acids

Constructors

Chain 

Fields

chainId :: !Char
 
residues :: List Residue
 

data Residue Source

Residue groups all atoms assigned to the same aminoacid or nucleic acid base within a polymer chain.

Constructors

Residue 

Fields

resName :: !String
 
resSeq :: !Int
 
atoms :: List Atom
 
insCode :: !Char
 

data Atom Source

Single atom position | NOTE: disordered atoms are now reported as multiplicates

Constructors

Atom