BiobaseFR3D-0.2.3.0: Importer for FR3D resources

Safe HaskellSafe-Infered

Biobase.FR3D.Import

Description

Importing of FR3D data. Both basepairs and near interactions are currently supported. More parsers will come if required.

Synopsis

Documentation

iFR3D :: Monad m => Iteratee ByteString m FR3DSource

An Iteratee from a bytestring to one FR3D entry. Since each file contains exactly one entry, this is no problem.

bs2basepair :: ByteString -> BasepairSource

Helper function turning a bytestring line into a basepair entry

fromDirSelect :: String -> FilePath -> IO [FR3D]Source

Convenience function: given a directory name, extracts a list of all FR3D entries.

fromDirNear :: FilePath -> IO [FR3D]Source

This one select the near interactions

fromDir :: FilePath -> IO [FR3D]Source

And this one the basepairs (this one you normally want).