@param idx Index
@param tid Target id
@param beg Start position in target
@param end End position in target
@return An iterator on success; NULL on failure
The following special values (defined in htslib/hts.h)can be used for @p tid.
When using one of these values, @p beg and @p end are ignored.
HTS_IDX_NOCOOR iterates over unmapped reads sorted at the end of the file
HTS_IDX_START iterates over the entire file
HTS_IDX_REST iterates from the current position to the end of the file
HTS_IDX_NONE always returns "no more alignment records"
When using HTS_IDX_REST or HTS_IDX_NONE, NULL can be passed in to @p idx.
@param idx Index @param tid Target id @param beg Start position in target @param end End position in target @return An iterator on success; NULL on failure
The following special values (defined in htslib/hts.h)can be used for @p tid. When using one of these values, @p beg and @p end are ignored.
HTS_IDX_NOCOOR iterates over unmapped reads sorted at the end of the file HTS_IDX_START iterates over the entire file HTS_IDX_REST iterates from the current position to the end of the file HTS_IDX_NONE always returns "no more alignment records"
When using HTS_IDX_REST or HTS_IDX_NONE, NULL can be passed in to @p idx.