Object[] alnAndHiddenCols = alignmentView
.getAlignmentAndHiddenColumns(gapChar);
- SequenceI[] sequences = (SequenceI[]) alnAndHiddenCols[0];
- Alignment aln = new Alignment(sequences);
- HiddenColumns alhidden = (HiddenColumns) alnAndHiddenCols[1];
+ Alignment aln = new Alignment((SequenceI[]) alnAndHiddenCols[0]);
aln.setDataset(currentView.getDataset());
+ aln.setHiddenColumns((HiddenColumns) alnAndHiddenCols[1]);
try
{
JnetAnnotationMaker
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
+import jalview.datamodel.HiddenColumns;
import jalview.gui.AlignFrame;
import jalview.gui.Desktop;
import jalview.gui.JvOptionPane;
if (idx >= 0)
alnCpy.setSeqrep(alnCpy.getSequenceAt(idx));
}
+ if (result.getHiddenColumns() != null)
+ alnCpy.setHiddenColumns(new HiddenColumns(result.getHiddenColumns()));
displayResultsNewFrame(alnCpy);
});
SwingUtilities.invokeLater(infoPanel::setResultsReady);