hPDB-1.2.0: Protein Databank file format library

Safe HaskellSafe-Inferred

Bio.PDB.EventParser.PDBEvents

Description

This module contains datatype declaration for PDB parsing events generated by PDBEventParser module.

Synopsis

Documentation

type String = ByteStringSource

We use only strict ByteString as strings in PDB parser.

newtype ATID Source

Atom id: atom name, residue name, chain, residue id, residue insertion code

Constructors

ATID (String, String, Char, Int, Char) 

Instances

newtype RESID Source

Residue id: residue name, chain, residue id, residue insertion code

Constructors

RESID (String, Char, Int, Char) 

Instances

data PDBEvent Source

Datatype for event-based PDB parser

Constructors

ATOM 

Fields

no :: !Int
 
atomtype :: !String
 
restype :: !String
 
chain :: !Char
 
resid :: !Int
 
resins :: !Char
 
altloc :: !Char
 
coords :: !Vector3
 
occupancy :: !Double
 
bfactor :: !Double
 
segid :: !String
 
elt :: !String
 
charge :: !String
 
hetatm :: !Bool
 
SIGATM 

Fields

no :: !Int
 
atomtype :: !String
 
restype :: !String
 
chain :: !Char
 
resid :: !Int
 
resins :: !Char
 
altloc :: !Char
 
coords :: !Vector3
 
occupancy :: !Double
 
bfactor :: !Double
 
segid :: !String
 
elt :: !String
 
charge :: !String
 
ANISOU 

Fields

no :: !Int
 
atomtype :: !String
 
restype :: !String
 
chain :: !Char
 
resid :: !Int
 
resins :: !Char
 
altloc :: !Char
 
u_1_1 :: !Int
 
u_2_2 :: !Int
 
u_3_3 :: !Int
 
u_1_2 :: !Int
 
u_1_3 :: !Int
 
u_2_3 :: !Int
 
segid :: !String
 
elt :: !String
 
charge :: !String
 
SIGUIJ 

Fields

no :: !Int
 
atomtype :: !String
 
restype :: !String
 
chain :: !Char
 
resid :: !Int
 
resins :: !Char
 
altloc :: !Char
 
u_1_1 :: !Int
 
u_2_2 :: !Int
 
u_3_3 :: !Int
 
u_1_2 :: !Int
 
u_1_3 :: !Int
 
u_2_3 :: !Int
 
segid :: !String
 
elt :: !String
 
charge :: !String
 
SEQRES 

Fields

serial :: !Int
 
chain :: !Char
 
num :: !Int
 
resList :: ![String]
 
HEADER 
TITLE 

Fields

continuation :: !Int
 
title :: !String
 
KEYWDS 

Fields

continuation :: !Int
 
aList :: ![String]
 
AUTHOR 

Fields

continuation :: !Int
 
aList :: ![String]
 
REMARK 

Fields

num :: !Int
 
text :: ![String]
 
EXPDTA 
MDLTYP 

Fields

continuation :: !Int
 
aList :: ![String]
 
NUMMDL 

Fields

num :: !Int
 
MODEL 

Fields

num :: !Int
 
CONECT 

Fields

atoms :: ![Int]
 
CAVEAT 

Fields

cont :: !Int
 
pdbid :: !String
 
comment :: !String
 
DBREF 
REVDAT 

Fields

modNum :: !Int
 
cont :: !Int
 
modDat :: !String
 
modId :: !String
 
modTyp :: !Int
 
details :: ![String]
 
HETNAM 

Fields

cont :: !Int
 
hetId :: !String
 
name :: !String
 
notSynonym :: !Bool
 
HET 

Fields

hetId :: !String
 
chain :: !Char
 
seqNum :: !Int
 
insCode :: !Char
 
atmNum :: !Int
 
description :: !String
 
FORMUL 

Fields

compNum :: !Int
 
hetId :: !String
 
cont :: !Int
 
isWater :: !Bool
 
formula :: ![String]
 
CISPEP 

Fields

serial :: !Int
 
res1 :: !RESID
 
res2 :: !RESID
 
modNum :: !Int
 
angle :: Maybe Double
 
HELIX 
SHEET 
ORIGXn 

Fields

n :: Int
 
o :: [Vector3]
 
t :: [Double]
 
SCALEn 

Fields

n :: Int
 
o :: [Vector3]
 
t :: [Double]
 
MTRIXn 

Fields

serial :: !Int
 
relMol :: !Bool
 
n :: !Int
 
o :: ![Vector3]
 
t :: ![Double]
 
CRYST1 

Fields

a :: !Double
 
b :: !Double
 
c :: !Double
 
alpha :: !Double
 
beta :: !Double
 
gamma :: !Double
 
spcGrp :: !String
 
zValue :: !Int
 
COMPND 

Fields

cont :: !Int
 
tokens :: ![(String, String)]
 
SOURCE 

Fields

cont :: !Int
 
tokens :: ![(String, String)]
 
TER 

Fields

num :: !Int
 
resname :: !String
 
chain :: !Char
 
resid :: !Int
 
insCode :: !Char
 
MASTER 

Fields

numRemark :: !Int
 
numHet :: !Int
 
numHelix :: !Int
 
numSheet :: !Int
 
numTurn :: !Int
 
numSite :: !Int
 
numXform :: !Int
 
numAts :: !Int
 
numMaster :: !Int
 
numConect :: !Int
 
numSeqres :: !Int
 
END 
ENDMDL 
SITE 

Fields

serial :: !Int
 
siteid :: !String
 
numres :: !Int
 
residues :: ![RESID]
 
OBSLTE 

Fields

cont :: !Int
 
date :: !String
 
this :: !String
 
entries :: ![String]
 
SPRSDE 

Fields

cont :: !Int
 
date :: !String
 
this :: !String
 
entries :: ![String]
 
SPLIT 

Fields

cont :: !Int
 
codes :: ![String]
 
SSBOND 

Fields

serial :: !Int
 
res1 :: RESID
 
res2 :: RESID
 
symOp1 :: !String
 
symOp2 :: !String
 
bondLen :: !Double
 
LINK 

Fields

at1 :: !ATID
 
altloc1 :: !Char
 
at2 :: !ATID
 
altloc2 :: !Char
 
symop1 :: !String
 
symop2 :: !String
 
linkdist :: Maybe Double
 
SLTBRG 

Fields

at1 :: !ATID
 
altloc1 :: !Char
 
at2 :: !ATID
 
altloc2 :: !Char
 
symOp1 :: !String
 
symOp2 :: !String
 
HYDBND 

Fields

at1 :: !ATID
 
altloc1 :: !Char
 
atH :: !ATID
 
altlocH :: !Char
 
at2 :: !ATID
 
altloc2 :: !Char
 
symOp1 :: !String
 
symOp2 :: !String
 
TVECT 

Fields

serial :: !Int
 
vec :: Vector3
 
JRNL 

Fields

cont :: !Int
 
content :: ![(String, String)]
 
isFirst :: !Bool
 
MODRES 

Fields

pdbCode :: !String
 
residue :: !RESID
 
stdRes :: !String
 
comment :: !String
 
SEQADV 
PDBParseError !Int !Int !String 
PDBIgnoredLine ByteString 

Instances

data StrandSenseT Source

Enumeration of beta-strand sense.

Constructors

Parallel 
Antiparallel 

data HelixT Source

Enumeration of helix types

PDB Class number in columns 39-40 for each type of helix in HELIX record:

  1. Right-handed alpha (default, most common)
  2. Right-handed omega
  3. Right-handed pi
  4. Right-handed gamma
  5. Right-handed 3 - 10
  6. Left-handed alpha
  7. Left-handed omega
  8. Left-handed gamma
  9. 2 - 7 ribbon/helix
  10. Polyproline