}
/**
- * If this is a protein alignment and there are mappings to cDNA, add the cDNA
- * consensus annotation.
+ * If this is a protein alignment and there are mappings to cDNA, adds the
+ * cDNA consensus annotation and returns true, else returns false.
*/
- public void initComplementConsensus()
+ public boolean initComplementConsensus()
{
if (!alignment.isNucleotide())
{
"PID for cDNA", new Annotation[1], 0f, 100f,
AlignmentAnnotation.BAR_GRAPH);
initConsensus(complementConsensus);
+ return true;
}
}
}
+ return false;
}
private void initConsensus(AlignmentAnnotation aa)
// derived annotation
private void initGapCounts(AlignmentAnnotation counts)
{
- counts.hasText = false;
+ counts.hasText = true;
counts.autoCalculated = true;
+ counts.scaleColLabel = true;
counts.graph = AlignmentAnnotation.BAR_GRAPH;
if (showConsensus)