AlignmentI xrefsAlignment = makeCrossReferencesAlignment(dataset,
xrefs);
- final SequenceI[] sequenceSelection = AlignFrame.this.viewport
- .getSequenceSelection();
if (!dna)
{
xrefsAlignment = AlignmentUtils.makeCdsAlignment(
- xrefsAlignment.getSequencesArray(), dataset,
- sequenceSelection);
+ xrefsAlignment.getSequencesArray(), dataset, sel);
xrefsAlignment.alignAs(alignment);
}
boolean copyAlignmentIsAligned = false;
if (dna)
{
- copyAlignment = AlignmentUtils.makeCdsAlignment(
- sequenceSelection, dataset,
+ copyAlignment = AlignmentUtils.makeCdsAlignment(sel, dataset,
xrefsAlignment.getSequencesArray());
if (copyAlignment.getHeight() == 0)
{
}
else
{
- copyAlignment = AlignmentUtils.makeCopyAlignment(
- sequenceSelection, xrefs.getSequencesArray(), dataset);
+ copyAlignment = AlignmentUtils.makeCopyAlignment(sel,
+ xrefs.getSequencesArray(), dataset);
}
copyAlignment.setGapCharacter(AlignFrame.this.viewport
.getGapCharacter());