Fetch sequences from an indexed fasta file
- data InHandle
- filename :: InHandle -> FilePath
- open :: FilePath -> IO InHandle
- close :: InHandle -> IO ()
- withFastaIndex :: FilePath -> (InHandle -> IO a) -> IO a
- fetch :: InHandle -> ByteString -> (Int64, Int64) -> IO ByteString
- fetchLoc :: Location l => InHandle -> OnSeq l -> IO (Maybe ByteString)
- readLoc :: Location l => FilePath -> OnSeq l -> IO (Maybe ByteString)
Documentation
:: InHandle | |
-> ByteString | Sequence name |
-> (Int64, Int64) | (Starting, ending) position, 0-based |
-> IO ByteString |
Fetch a region specified by sequence name and coordinates, or the empty string when the sequence is not found.