public static int completeCircularPasses ( int index , int seqLength ) { int count = 0 ; while ( index > seqLength ) { count ++ ; index -= seqLength ; } return count - 1 ; }
Works in a similar way to modulateCircularLocation but returns the number of complete passes over a Sequence length a circular location makes i . e . if we have a sequence of length 10 and the location 3 .. 52 we make 4 complete passes through the genome to go from position 3 to position 52 .