fai_fetch

@param fai Pointer to the faidx_t struct @param reg Region in the format "chr2:20,000-30,000" @param len Length of the region; -2 if seq not present, -1 general error @return Pointer to the sequence; NULL on failure

The returned sequence is allocated by malloc() family and should be destroyed by end users by calling free() on it.

To work around ambiguous parsing issues, eg both "chr1" and "chr1:100-200" are reference names, quote using curly braces. Thus "{chr1}:100-200" and "{chr1:100-200}" disambiguate the above example.

extern (C)
char*
fai_fetch
(
const(faidx_t)* fai
,
const(char)* reg
,
int* len
)

Meta