@param fn File name of the FASTA file (can be compressed with bgzip).
@param fnfai File name of the FASTA index.
@param fngzi File name of the bgzip index.
@param flags Option flags to control index file caching and creation.
@return Pointer to a faidx_t struct on success, NULL on failure.
If fnfai is NULL, ".fai" will be appended to fn to make the FAI file name.
If fngzi is NULL, ".gzi" will be appended to fn for the bgzip index name.
The bgzip index is only needed if fn is compressed.
If (flags & FAI_CREATE) is true, the index files will be built using
fai_build3() if they are not already present.
The struct returned by a successful call should be freed via fai_destroy()
when it is no longer needed.
@param fn File name of the FASTA file (can be compressed with bgzip). @param fnfai File name of the FASTA index. @param fngzi File name of the bgzip index. @param flags Option flags to control index file caching and creation. @return Pointer to a faidx_t struct on success, NULL on failure.
If fnfai is NULL, ".fai" will be appended to fn to make the FAI file name. If fngzi is NULL, ".gzi" will be appended to fn for the bgzip index name. The bgzip index is only needed if fn is compressed.
If (flags & FAI_CREATE) is true, the index files will be built using fai_build3() if they are not already present.
The struct returned by a successful call should be freed via fai_destroy() when it is no longer needed.