Updated code for position variation between triplet pairs analysis