hPDB-1.2.0.6: Protein Databank file format library

Safe HaskellNone
LanguageHaskell98

Bio.PDB.Iterable

Description

Iterable instances and convenience functions.

Synopsis

Documentation

class Iterable a b where #

Minimal complete definition

itmapM, itfoldM, itfoldr, itfoldl, itfoldl', itlength

firstModel :: Iterable a Model => a -> Maybe Model Source #

Takes a first model.

numAtoms :: Iterable a Atom => a -> Int Source #

Number of all atoms within the structure.

numResidues :: Iterable a Residue => a -> Int Source #

Number of all residues within the structure.

numChains :: Iterable a Chain => a -> Int Source #

Number of all chains within the structure.

numModels :: Iterable a Model => a -> Int Source #

Number of all models within the structure.