/**
* like makeExactMapping but using a sequence mapping object
+ *
* @param sqmpping
* @param seq
*/
atom.alignmentMapping = -1;
}
// and now map sqmapping to the atom set.
- int[] range = sqmpping.locateRange(seq.getStart(),seq.getEnd());
- int r=0,from,to;
- while (r<range.length)
+ int[] range = sqmpping.locateRange(seq.getStart(), seq.getEnd());
+ int r = 0, from, to;
+ while (r < range.length)
{
- from=range[r++];
- to=range[r++];
- for (int pdbpos=from;pdbpos<=to;pdbpos++)
+ from = range[r++];
+ to = range[r++];
+ for (int pdbpos = from; pdbpos <= to; pdbpos++)
{
if (pdbpos >= residues.size())
{
atom.alignmentMapping = sqmpping.getPosition(pdbpos);
}
}
- }
+ }
}
/**
// Useful for debugging mappings - adds annotation for mapped position
float min = -1, max = 0;
Annotation[] an = new Annotation[sq.getEnd() - sq.getStart() + 1];
- for (int i = sq.getStart(), j = sq
- .getEnd(), k = 0; i <= j; i++, k++)
+ for (int i = sq.getStart(), j = sq.getEnd(),
+ k = 0; i <= j; i++, k++)
{
int prn = mapping.getPDBResNum(k + 1);