BiobaseFR3D- Importer for FR3D resources

Safe HaskellSafe-Infered



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



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).