if (dna)
{
copyAlignment = AlignmentUtils.makeCdsAlignment(
- sequenceSelection, dataset);
+ sequenceSelection, dataset, xrefsAlignment);
if (copyAlignment.getHeight() == 0)
{
System.err.println("Failed to make CDS alignment");
protected void setAnnotationsVisibility(boolean visible,
boolean forSequences, boolean forAlignment)
{
- for (AlignmentAnnotation aa : alignPanel.getAlignment()
- .getAlignmentAnnotation())
+ AlignmentAnnotation[] anns = alignPanel.getAlignment()
+ .getAlignmentAnnotation();
+ if (anns == null)
+ {
+ return;
+ }
+ for (AlignmentAnnotation aa : anns)
{
/*
* don't display non-positional annotations on an alignment