0f,
11f,
AlignmentAnnotation.BAR_GRAPH);
+ quality.hasText = true;
alignment.addAnnotation(quality);
}
{
try
{
- long t = System.currentTimeMillis();
-
int alWidth = alignment.getWidth();
Conservation cons = new jalview.analysis.Conservation("All",
cons.calculate();
cons.verdict(false, ConsPercGaps);
- if (showQuality)
+ if (quality!=null)
{
cons.findQuality();
}
- System.out.println("Conservation took " + (System.currentTimeMillis() - t) +
- "ms");
-
String sequence = cons.getConsSequence().getSequence();
float minR;
conservation.annotations = new Annotation[alWidth];
- if (showQuality)
+ if (quality!=null)
{
+ quality.graphMax = cons.qualityRange[1].floatValue();
quality.annotations = new Annotation[alWidth];
qmin = cons.qualityRange[0].floatValue();
qmax = cons.qualityRange[1].floatValue();
minB + (maxB * vprop)));
// Quality calc
- if (showQuality)
+ if (quality!=null)
{
value = ( (Double) cons.quality.get(i)).floatValue();
vprop = value - qmin;
minB + (maxB * vprop)));
}
}
-
- if (quality != null)
- {
- quality.graphMax = cons.qualityRange[1].floatValue();
- }
}
catch (OutOfMemoryError error)
{
consensus.annotations = null;
consensus.annotations = new Annotation[aWidth];
- long t = System.currentTimeMillis();
+
hconsensus = new Hashtable[aWidth];
AAFrequency.calculate(alignment.getSequencesArray(),
0,
alignment.getWidth(),
hconsensus);
- System.out.println("Consensus took " +
- (System.currentTimeMillis() - t) + "ms");
-
for (int i = 0; i < aWidth; i++)
{
float value = 0;