} catch (q) {
// currentAlFrame is not defined - so we were run as an interactive script from the Groovy console
// in that case, just pick the first alignmentFrame in the stack.
- msaf = Jalview.getAlignframes()[0]
+ msaf = Jalview.getAlignFrames()[0]
};
// Finally start Jalview's JabaWS MSA Client with the alignment from msaf
new MsaWSClient(service, msaf.getTitle(), msaf.gatherSequencesForAlignment(), false,
import static java.awt.Toolkit.*
-def curviewport = Jalview.getAlignframes()[Jalview.getAlignframes().length-1].getViewport();
+def curviewport = Jalview.getAlignFrames()[Jalview.getAlignFrames().length-1].getViewport();
// TSV output by default.
// change "\t" to "," to output CSV file
// do something groovy in jalview
print "Hello World.\n";
-def alf = Jalview.getAlignframes();
+def alf = Jalview.getAlignFrames();
for (ala in alf)
{
def alignment = ala.viewport.alignment;
writeAnnot = {
- new File(it).append(new jalview.io.AnnotationFile().printAnnotations(Jalview.getAlignframes()[0].getViewport().getAlignment().getAlignmentAnnotation(),null,null))
+ new File(it).append(new jalview.io.AnnotationFile().printAnnotations(Jalview.getAlignFrames()[0].getViewport().getAlignment().getAlignmentAnnotation(),null,null))
}
import jalview.gui.AlignFrame;
import jalview.gui.AlignViewport;
-def af = Jalview.getAlignframes();
+def af = Jalview.getAlignFrames();
for (ala in af)
{
import jalview.gui.AlignFrame;
import jalview.gui.AlignViewport;
-def af = Jalview.getAlignframes();
+def af = Jalview.getAlignFrames();
def al = af[0].viewport.alignment;
ParseProperties pp = new ParseProperties(al);
pp.getScoresFromDescription("Score", "ScanPS Raw Score", "([-0-9.+]+)");
// do something groovy in jalview
print "Hello World.\n";
-def alf = Jalview.getAlignframes();
+def alf = Jalview.getAlignFrames();
for (ala in alf)
{
// ala is an jalview.gui.AlignFrame object
import jalview.gui.AlignFrame;
import jalview.gui.AlignViewport;
-def af = Jalview.getAlignframes();
+def af = Jalview.getAlignFrames();
def todie = "PDBFile"; // about to delete this type of group
for (ala in af)
def nfeat=0;
def nseq=0;
-for (ala in Jalview.getAlignframes()) {
+for (ala in Jalview.getAlignFrames()) {
def al = ala.viewport.alignment;
if (al!=null)
{
{
def tfeat=0;
if (sq!=null) {
- SequenceFeature[] sf = sq.getDatasetSequence().getSequenceFeatures();
+ SequenceFeature[] sf = sq.getSequenceFeatures();
for (sfpos in sf)
{
if (sfpos!=null && sfpos.getType().equals(toselect))
import java.awt.datatransfer.StringSelection
import static java.awt.Toolkit.*
-def curviewport = Jalview.getAlignframes()[Jalview.getAlignframes().length-1].getViewport()
+def curviewport = Jalview.getAlignFrames()[Jalview.getAlignFrames().length-1].getViewport()
def debug = false
import jalview.gui.AlignFrame;
import jalview.gui.AlignViewport;
-def af = Jalview.getAlignframes();
+def af = Jalview.getAlignFrames();
// walk through all alignments, stripping off all text prior to and including last '|' symbol in sequence IDs