try
{
AlignmentAnnotation consensus = getConsensusAnnotation();
- AlignmentAnnotation gap = getOccupancyAnnotation();
+ AlignmentAnnotation gap = getGapAnnotation();
if ((consensus == null && gap == null) || calcMan.isPending(this))
{
calcMan.workerComplete(this);
ProfilesI hconsensus = AAFrequency.calculate(aseqs, width, 0, width,
true);
- alignViewport.setConsensusProfiles(hconsensus);
+ alignViewport.setSequenceConsensusHash(hconsensus);
setColourSchemeConsensus(hconsensus);
}
*
* @return
*/
- protected AlignmentAnnotation getOccupancyAnnotation()
+ protected AlignmentAnnotation getGapAnnotation()
{
- return alignViewport.getOccupancyAnnotation();
+ return alignViewport.getAlignmentGapAnnotation();
}
/**
&& hconsensus != null)
{
deriveConsensus(consensus, hconsensus);
- AlignmentAnnotation occupancy = getOccupancyAnnotation();
- if (occupancy != null)
+ AlignmentAnnotation gap = getGapAnnotation();
+ if (gap != null)
{
- deriveOccupancy(occupancy, hconsensus);
+ deriveOccupancy(gap, hconsensus);
}
}
}
* @param hconsensus
* the computed consensus data
*/
- protected void deriveOccupancy(AlignmentAnnotation gapAnnotation,
+ protected void deriveGap(AlignmentAnnotation gapAnnotation,
ProfilesI hconsensus)
{
long nseq = getSequences().length;
- AAFrequency.completeOccupancyAnnot(gapAnnotation, hconsensus,
+ AAFrequency.completeGapAnnot(gapAnnotation, hconsensus,
hconsensus.getStartColumn(), hconsensus.getEndColumn() + 1,
nseq);
}
protected Object getViewportConsensus()
{
// TODO convert ComplementConsensusThread to use Profile
- return alignViewport.getConsensusProfiles();
+ return alignViewport.getSequenceConsensusHash();
}
}