For PE reads, I supposed the isize is calculated by most_right_ref_pos - most_left_ref_pos + 1, where most_right_ref_pos is calculated by the right read and its CIGAR.
This formula works when the insert sizes are normal (i.e. < 500).
But sometimes, when the insert size is irregular, it fails. For example:
For PE reads, I supposed the isize is calculated by
most_right_ref_pos - most_left_ref_pos + 1
, wheremost_right_ref_pos
is calculated by the right read and its CIGAR.This formula works when the insert sizes are normal (i.e. < 500).
But sometimes, when the insert size is irregular, it fails. For example:
Can anybody tell me how isize is calculated in such cases? I am developing a consensus reads generator, which highly relies on the alignment results.
Thank you in advance.