if (translated == null
|| !(aaRes == translated.charAt(0)))
{
+ // debug
+ System.out.println(("Mismatch at " + i + "/" + aaResidue + ": "
+ + codon + "(" + translated + ") != " + aaRes));
return false;
}
}
boolean asSplitFrame = true;
if (asSplitFrame)
{
- final Alignment copyAlignment = new Alignment(
- AlignFrame.this.viewport.getAlignment());
+ final Alignment copyAlignment = new Alignment(new Alignment(
+ AlignFrame.this.viewport.getSequenceSelection()));
AlignFrame copyThis = new AlignFrame(copyAlignment,
AlignFrame.DEFAULT_WIDTH, AlignFrame.DEFAULT_HEIGHT);
copyThis.setTitle(AlignFrame.this.getTitle());
: copyMe;
AlignmentI protein = proteinFrame.viewport.getAlignment();
protein.setCodonFrames(mappings);
- proteinFrame.viewport.initComplementConsensus();
cdnaFrame.setVisible(true);
proteinFrame.setVisible(true);
if (al != null && al.getHeight() > 0)
{
+ if (title == null)
+ {
+ title = getDefaultRetrievalTitle();
+ }
if (alignFrame == null)
{
AlignFrame af = new AlignFrame(al, AlignFrame.DEFAULT_WIDTH,
// Alignments?
}
- if (title == null)
- {
- title = getDefaultRetrievalTitle();
- }
SequenceFeature[] sfs = null;
List<SequenceI> alsqs;
synchronized (alsqs = al.getSequences())