hPDB-1.2.0.4: Protein Databank file format library

Safe HaskellNone
LanguageHaskell98

Bio.PDB.StructureBuilder

Description

Front-end module presenting minimal interface for serial and parallel parsing.

Synopsis

Documentation

parse :: FilePath -> String -> (Structure, List PDBEvent) Source

Default parser - uses parallel capabilities, if available.

parseSerial :: FilePath -> String -> (Structure, List PDBEvent) Source

Given filename, and contents, parses a whole PDB file, returning a monadic action | with a tuple of (Structure, [PDBEvent]), where the list of events contains all | parsing or construction errors.

parseParallel :: FilePath -> ByteString -> (Structure, List PDBEvent) Source

Parse file in parallel with as many threads as we have capabilities.

parseWithNParallel :: Integral a => a -> FilePath -> ByteString -> (Structure, List PDBEvent) Source

Parse input file with N parallel threads.