fai_load3_format

@param fn File name of the FASTA/FASTQ file (can be compressed with bgzip). @param fnfai File name of the FASTA/FASTQ index. @param fngzi File name of the bgzip index. @param flags Option flags to control index file caching and creation. @param format FASTA or FASTQ file format @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.

extern (C)
fai_load3_format
(
const(char)* fn
,
const(char)* fnfai
,
const(char)* fngzi
,
int flags
,)

Meta