hts_idx_load3

@param fn Input BAM/BCF/etc filename @param fnidx The input index filename @param fmt One of the HTS_FMT_* index formats @param flags Flags to alter behaviour (see description) @return The index, or NULL if an error occurred.

If @p fnidx is NULL, the index name will be derived from @p fn in the same way as hts_idx_load().

If @p fnidx is not NULL, @p fmt is ignored.

The @p flags parameter can be set to a combination of the following values:

HTS_IDX_SAVE_REMOTE Save a local copy of any remote indexes HTS_IDX_SILENT_FAIL Fail silently if the index is not present

The index struct returned by a successful call should be freed via hts_idx_destroy() when it is no longer needed.

@system nothrow @nogc extern (C)
hts_idx_load3
(
const(char)* fn
,
const(char)* fnidx
,
int fmt
,
int flags
)

Meta