AlignmentPanel ap;
- public AppVarna(SequenceI seq, String strucseq, String struc,
+ public AppVarna(String sname, SequenceI seq, String strucseq, String struc,
String name, AlignmentPanel ap)
{
this.ap = ap;
rnaList.add(rna1);
rnas.put(seq, rna1);
rnas.put(seq, trim);
- rna1.setName("consensus_" + rna1.getName());
+ rna1.setName(sname+" (with gaps)");
{
seqs.put(trim, seq);
if (aa[i].getRNAStruc() != null)
{
final String rnastruc = aa[i].getRNAStruc();
-
+ final String structureLine=aa[i].label;
menuItem = new JMenuItem();
- menuItem.setText("RNA structure - consensus");
+ menuItem.setText("RNA structure "+structureLine);
menuItem.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
{
- new AppVarna(seq, seq.getSequenceAsString(), rnastruc, seq
+ new AppVarna(structureLine, seq, seq.getSequenceAsString(), rnastruc, seq
.getName(), ap);
}
});
public void actionPerformed(ActionEvent e)
{
// TODO: VARNA does'nt print gaps in the sequence
- new AppVarna(seq,seq.getSequenceAsString(), rnastruc, seq
+ new AppVarna(seq.getName()+" structure",seq,seq.getSequenceAsString(), rnastruc, seq
.getName(), ap);
}
});