return pairs;
}
-
-
-
-
/**
* Function to get the end position corresponding to a given start position
*
final int open = basePair.getBP5();
final int close = basePair.getBP3();
- // System.out.println("open " + open + " close " + close);
- // System.out.println("lastclose " + lastclose + " lastopen " + lastopen);
+ // jalview.bin.Console.outPrintln("open " + open + " close " + close);
+ // jalview.bin.Console.outPrintln("lastclose " + lastclose + " lastopen "
+ // + lastopen);
// we're moving from right to left based on closing pair
/*
/*
* catch things like <<..<<..>>..<<..>>>> |
*/
- int j = bps.size() - 1;
- while (j >= 0)
+ int j = bps.size();
+ while (--j >= 0)
{
int popen = bps.get(j).getBP5();
- // System.out.println("j " + j + " popen " + popen + " lastopen "
+ // jalview.bin.Console.outPrintln("j " + j + " popen " + popen + "
+ // lastopen "
// +lastopen + " open " + open);
if ((popen < lastopen) && (popen > open))
{
break;
}
}
- j -= 1;
}
// Put positions and helix information into the hashtable