1 import jalview.analysis.*;
2 import jalview.datamodel.*;
3 import jalview.gui.AlignFrame;
4 import jalview.gui.AlignViewport;
6 def af = Jalview.getAlignframes();
8 // walk through all alignments, stripping off all text prior to and including last '|' symbol in sequence IDs
12 def al = ala.viewport.alignment;
15 SequenceI[] seqs = al.getSequencesArray();
19 if (sq.getName().indexOf("|")>-1)
21 sq.setName(sq.getName().substring(sq.getName().lastIndexOf("|")+1));
22 if (sq.getDatasetSequence()!=null)
24 sq.getDatasetSequence().setName(sq.getName());