{
long t = System.currentTimeMillis();
+ int alWidth = alignment.getWidth();
+
Conservation cons = new jalview.analysis.Conservation("All",
jalview.schemes.ResidueProperties.propHash, 3,
- alignment.getSequences(), 0, alignment.getWidth() - 1);
+ alignment.getSequences(), 0, alWidth -1);
cons.calculate();
cons.verdict(false, ConsPercGaps);
System.out.println("Conservation took " + (System.currentTimeMillis() - t) +
"ms");
- int alWidth = alignment.getWidth();
+
String sequence = cons.getConsSequence().getSequence();
float minR;
float minG;
if(ap!=null)
{
- ap.annotationPanel.repaint();
+ ap.repaint();
}
updatingConservation = false;
}
if (ap != null)
{
- ap.annotationPanel.repaint();
+ ap.repaint();
}
// be done to remove redundancy.
CigarArray aligview = getViewAsCigars(selectedOnly);
if (aligview!=null) {
- return new AlignmentView(aligview,
+ return new AlignmentView(aligview,
(selectedOnly && selectionGroup!=null) ? selectionGroup.getStartRes() : 0);
}
return null;