// annotation.setCalcId(calcId);
AlignmentAnnotation annotation = alignViewport.getAlignment()
.findOrCreateAnnotation(typeName, calcId, false, dseq, null);
- constructAnnotationFromScore(annotation, base, dseq.getLength(), scr);
- annotation.createSequenceMapping(dseq, dseq.findPosition(base), false);
+ constructAnnotationFromScore(annotation, 0, dseq.getLength(), scr);
+ annotation.createSequenceMapping(dseq, base, false);
annotation.adjustForAlignment();
dseq.addAlignmentAnnotation(annotation);
ourAnnot.add(annotation);
Annotation[] elm = new Annotation[alWidth];
Iterator<Float> vals = scr.getScores().iterator();
float m = 0f, x = 0f;
- for (int i = base; vals.hasNext(); i++)
+ for (int i = 0; vals.hasNext(); i++)
{
float val = vals.next().floatValue();
if (i == 0)