Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Genome
- openGenome :: FilePath -> IO Genome
- closeGenome :: Genome -> IO ()
- withGenome :: FilePath -> (Genome -> IO a) -> IO a
- getSeq :: BioSeq s a => Genome -> Query -> IO (Either String (s a))
- getChrom :: Genome -> ByteString -> IO (Either String (DNA IUPAC))
- getChrSizes :: Genome -> [(ByteString, Int)]
- mkIndex :: [FilePath] -> FilePath -> IO ()
Documentation
The first 2048 bytes are header. Header consists of a magic string, followed by chromosome information. Example: HASKELLBIOINFORMATICSnCHR1 START SIZE
closeGenome :: Genome -> IO () Source #
getChrom :: Genome -> ByteString -> IO (Either String (DNA IUPAC)) Source #
Retrieve whole chromosome.
getChrSizes :: Genome -> [(ByteString, Int)] Source #
Retrieve chromosome size information.