samtools-0.1.2: Binding to the C samtools library

Bio.SamTools.FaIdx

Description

Fetch sequences from an indexed fasta file

Synopsis

Documentation

data InHandle Source

Input handle for an indexed fasta file

filename :: InHandle -> FilePathSource

Name of the fasta file

open :: FilePath -> IO InHandleSource

Open an indexed fasta file

fetchSource

Arguments

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