101102103104105106107108109110111112113114
int nPairs = 0; while (alignments.hasNext()) { Alignment al = alignments.next(); if (isProperPair(al)) { insertSizes[nPairs] = Math.abs(al.getInferredInsertSize()); nPairs++; } if (nPairs >= MAX_PAIRS) {