Use read end pos to build BAM linear index