JAL-1665 getSequenceFeatures; Desktop.getAlignFrames camel-cased
[jalview.git] / examples / groovy / iterateOverAlignments.groovy
1 import jalview.analysis.*;
2 import jalview.datamodel.*;
3 import jalview.gui.AlignFrame;
4 import jalview.gui.AlignViewport;
5
6 def af = Jalview.getAlignFrames();
7
8 for (ala in af)
9 {
10         def al = ala.viewport.alignment;
11         if (al!=null && al.getCodonFrames()!=null)
12         {
13                 al.getCodonFrames().each { 
14                         it.getdnaToProt().each {
15                                 it2 -> println it2.fromShifts+"\n"
16                         }
17                 }
18         }
19 }
20