fai_build |
Build index for a FASTA or razip compressed FASTA file.
void fai_build( const char *fn);
fn
File "fn.fai" will be generated.
fai_destroy |
Distroy a faidx_t struct.
void fai_destroy( faidx_t *fai);
fai
fai_load |
Load index from "fn.fai".
faidx_t *fai_load( const char *fn);
fn
fai_fetch |
Fetch the sequence in a region.
char *fai_fetch( const faidx_t *fai, const char *reg, int *len);
fai
reg
len
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.
© The Wellcome Trust Sanger Institute. Last Updated: Saturday, June 13, 2009