2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
23 import jalview.ext.so.SequenceOntology;
24 import jalview.gui.AlignFrame;
25 import jalview.gui.Desktop;
26 import jalview.gui.PromptUserConfig;
27 import jalview.io.AppletFormatAdapter;
28 import jalview.io.BioJsHTMLOutput;
29 import jalview.io.DataSourceType;
30 import jalview.io.FileFormat;
31 import jalview.io.FileFormatException;
32 import jalview.io.FileFormatI;
33 import jalview.io.FileLoader;
34 import jalview.io.HtmlSvgOutput;
35 import jalview.io.IdentifyFile;
36 import jalview.io.NewickFile;
37 import jalview.io.gff.SequenceOntologyFactory;
38 import jalview.schemes.ColourSchemeI;
39 import jalview.schemes.ColourSchemeProperty;
40 import jalview.util.MessageManager;
41 import jalview.util.Platform;
42 import jalview.ws.jws2.Jws2Discoverer;
44 import java.io.BufferedReader;
46 import java.io.FileOutputStream;
47 import java.io.IOException;
48 import java.io.InputStreamReader;
49 import java.io.OutputStreamWriter;
50 import java.io.PrintWriter;
51 import java.net.MalformedURLException;
53 import java.net.URISyntaxException;
55 import java.security.AllPermission;
56 import java.security.CodeSource;
57 import java.security.PermissionCollection;
58 import java.security.Permissions;
59 import java.security.Policy;
60 import java.util.HashMap;
62 import java.util.Vector;
64 import javax.swing.LookAndFeel;
65 import javax.swing.UIManager;
67 import groovy.lang.Binding;
68 import groovy.util.GroovyScriptEngine;
71 * Main class for Jalview Application <br>
73 * start with: java -classpath "$PATH_TO_LIB$/*:$PATH_TO_CLASSES$" \
76 * or on Windows: java -classpath "$PATH_TO_LIB$/*;$PATH_TO_CLASSES$" \
77 * jalview.bin.Jalview jalview.bin.Jalview
79 * (ensure -classpath arg is quoted to avoid shell expansion of '*' and do not
80 * embellish '*' to e.g. '*.jar')
88 * singleton instance of this class
90 private static Jalview instance;
92 private Desktop desktop;
94 public static AlignFrame currentAlignFrame;
98 // grab all the rights we can the JVM
99 Policy.setPolicy(new Policy()
102 public PermissionCollection getPermissions(CodeSource codesource)
104 Permissions perms = new Permissions();
105 perms.add(new AllPermission());
110 public void refresh()
117 * keep track of feature fetching tasks.
125 * TODO: generalise to track all jalview events to orchestrate batch
129 private int queued = 0;
131 private int running = 0;
133 public FeatureFetcher()
138 public void addFetcher(final AlignFrame af,
139 final Vector<String> dasSources)
141 final long id = System.currentTimeMillis();
143 final FeatureFetcher us = this;
144 new Thread(new Runnable()
156 af.setProgressBar(MessageManager
157 .getString("status.das_features_being_retrived"), id);
158 af.featureSettings_actionPerformed(null);
159 af.setProgressBar(null, id);
168 public synchronized boolean allFinished()
170 return queued == 0 && running == 0;
175 public static Jalview getInstance()
181 * main class for Jalview application
184 * open <em>filename</em>
186 public static void main(String[] args)
188 instance = new Jalview();
189 instance.doMain(args);
195 void doMain(String[] args)
197 System.setSecurityManager(null);
199 .println("Java version: " + System.getProperty("java.version"));
200 System.out.println(System.getProperty("os.arch") + " "
201 + System.getProperty("os.name") + " "
202 + System.getProperty("os.version"));
204 ArgsParser aparser = new ArgsParser(args);
205 boolean headless = false;
207 if (aparser.contains("help") || aparser.contains("h"))
212 if (aparser.contains("nodisplay") || aparser.contains("nogui")
213 || aparser.contains("headless"))
215 System.setProperty("java.awt.headless", "true");
218 String usrPropsFile = aparser.getValue("props");
219 Cache.loadProperties(usrPropsFile); // must do this before
220 if (usrPropsFile != null)
223 "CMD [-props " + usrPropsFile + "] executed successfully!");
228 final String jabawsUrl = aparser.getValue("jabaws");
229 if (jabawsUrl != null)
233 Jws2Discoverer.getDiscoverer().setPreferredUrl(jabawsUrl);
235 "CMD [-jabaws " + jabawsUrl + "] executed successfully!");
236 } catch (MalformedURLException e)
239 "Invalid jabaws parameter: " + jabawsUrl + " ignored");
243 String defs = aparser.getValue("setprop");
246 int p = defs.indexOf('=');
249 System.err.println("Ignoring invalid setprop argument : " + defs);
253 System.out.println("Executing setprop argument: " + defs);
254 // DISABLED FOR SECURITY REASONS
255 // TODO: add a property to allow properties to be overriden by cli args
256 // Cache.setProperty(defs.substring(0,p), defs.substring(p+1));
258 defs = aparser.getValue("setprop");
260 if (System.getProperty("java.awt.headless") != null
261 && System.getProperty("java.awt.headless").equals("true"))
265 System.setProperty("http.agent",
266 "Jalview Desktop/" + Cache.getDefault("VERSION", "Unknown"));
270 } catch (NoClassDefFoundError error)
272 error.printStackTrace();
273 System.out.println("\nEssential logging libraries not found."
274 + "\nUse: java -classpath \"$PATH_TO_LIB$/*:$PATH_TO_CLASSES$\" jalview.bin.Jalview");
282 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
283 } catch (Exception ex)
285 System.err.println("Unexpected Look and Feel Exception");
286 ex.printStackTrace();
288 if (Platform.isAMac())
291 LookAndFeel lookAndFeel = ch.randelshofer.quaqua.QuaquaManager
293 System.setProperty("com.apple.mrj.application.apple.menu.about.name",
295 System.setProperty("apple.laf.useScreenMenuBar", "true");
296 if (lookAndFeel != null)
300 UIManager.setLookAndFeel(lookAndFeel);
301 } catch (Throwable e)
304 "Failed to set QuaQua look and feel: " + e.toString());
307 if (lookAndFeel == null || !(lookAndFeel.getClass()
308 .isAssignableFrom(UIManager.getLookAndFeel().getClass()))
309 || !UIManager.getLookAndFeel().getClass().toString()
310 .toLowerCase().contains("quaqua"))
315 "Quaqua LaF not available on this plaform. Using VAqua(4).\nSee https://issues.jalview.org/browse/JAL-2976");
316 UIManager.setLookAndFeel("org.violetlib.aqua.AquaLookAndFeel");
317 } catch (Throwable e)
320 "Failed to reset look and feel: " + e.toString());
326 * configure 'full' SO model if preferences say to,
327 * else use the default (SO Lite)
329 if (Cache.getDefault("USE_FULL_SO", true))
331 SequenceOntologyFactory.setInstance(new SequenceOntology());
336 desktop = new Desktop();
337 desktop.setInBatchMode(true); // indicate we are starting up
338 desktop.setVisible(true);
339 desktop.startServiceDiscovery();
340 if (!aparser.contains("nousagestats"))
342 startUsageStats(desktop);
346 System.err.println("CMD [-nousagestats] executed successfully!");
349 if (!aparser.contains("noquestionnaire"))
351 String url = aparser.getValue("questionnaire");
354 // Start the desktop questionnaire prompter with the specified
356 Cache.log.debug("Starting questionnaire url at " + url);
357 desktop.checkForQuestionnaire(url);
359 "CMD questionnaire[-" + url + "] executed successfully!");
363 if (Cache.getProperty("NOQUESTIONNAIRES") == null)
365 // Start the desktop questionnaire prompter with the specified
368 // "http://anaplog.compbio.dundee.ac.uk/cgi-bin/questionnaire.pl";
370 String defurl = "http://www.jalview.org/cgi-bin/questionnaire.pl";
372 "Starting questionnaire with default url: " + defurl);
373 desktop.checkForQuestionnaire(defurl);
379 System.err.println("CMD [-noquestionnaire] executed successfully!");
382 if (!aparser.contains("nonews"))
384 desktop.checkForNews();
387 BioJsHTMLOutput.updateBioJS();
390 String file = null, data = null;
391 FileFormatI format = null;
392 DataSourceType protocol = null;
393 FileLoader fileLoader = new FileLoader(!headless);
395 String groovyscript = null; // script to execute after all loading is
396 // completed one way or another
397 // extract groovy argument and execute if necessary
398 groovyscript = aparser.getValue("groovy", true);
399 file = aparser.getValue("open", true);
401 if (file == null && desktop == null)
403 System.out.println("No files to open!");
406 String vamsasImport = aparser.getValue("vdoc");
407 String vamsasSession = aparser.getValue("vsess");
408 if (vamsasImport != null || vamsasSession != null)
410 if (desktop == null || headless)
413 "Headless vamsas sessions not yet supported. Sorry.");
416 // if we have a file, start a new session and import it.
417 boolean inSession = false;
418 if (vamsasImport != null)
422 DataSourceType viprotocol = AppletFormatAdapter
423 .checkProtocol(vamsasImport);
424 if (viprotocol == DataSourceType.FILE)
426 inSession = desktop.vamsasImport(new File(vamsasImport));
428 else if (viprotocol == DataSourceType.URL)
430 inSession = desktop.vamsasImport(new URL(vamsasImport));
433 } catch (Exception e)
435 System.err.println("Exeption when importing " + vamsasImport
436 + " as a vamsas document.");
441 System.err.println("Failed to import " + vamsasImport
442 + " as a vamsas document.");
446 System.out.println("Imported Successfully into new session "
447 + desktop.getVamsasApplication().getCurrentSession());
450 if (vamsasSession != null)
452 if (vamsasImport != null)
454 // close the newly imported session and import the Jalview specific
455 // remnants into the new session later on.
456 desktop.vamsasStop_actionPerformed(null);
458 // now join the new session
461 if (desktop.joinVamsasSession(vamsasSession))
464 "Successfully joined vamsas session " + vamsasSession);
468 System.err.println("WARNING: Failed to join vamsas session "
471 } catch (Exception e)
474 "ERROR: Failed to join vamsas session " + vamsasSession);
477 if (vamsasImport != null)
479 // the Jalview specific remnants can now be imported into the new
480 // session at the user's leisure.
482 "Skipping Push for import of data into existing vamsas session."); // TODO:
487 // desktop.getVamsasApplication().push_update();
492 // Finally, deal with the remaining input data.
497 desktop.setProgressBar(
499 .getString("status.processing_commandline_args"),
500 progress = System.currentTimeMillis());
502 System.out.println("CMD [-open " + file + "] executed successfully!");
504 if (!file.startsWith("http://"))
506 if (!(new File(file)).exists())
508 System.out.println("Can't find " + file);
516 protocol = AppletFormatAdapter.checkProtocol(file);
520 format = new IdentifyFile().identify(file, protocol);
521 } catch (FileFormatException e1)
526 AlignFrame af = fileLoader.LoadFileWaitTillLoaded(file, protocol,
530 System.out.println("error");
534 setCurrentAlignFrame(af);
535 data = aparser.getValue("colour", true);
538 data.replaceAll("%20", " ");
540 ColourSchemeI cs = ColourSchemeProperty
541 .getColourScheme(af.getViewport(),
542 af.getViewport().getAlignment(), data);
547 "CMD [-color " + data + "] executed successfully!");
552 // Must maintain ability to use the groups flag
553 data = aparser.getValue("groups", true);
556 af.parseFeaturesFile(data,
557 AppletFormatAdapter.checkProtocol(data));
558 // System.out.println("Added " + data);
560 "CMD groups[-" + data + "] executed successfully!");
562 data = aparser.getValue("features", true);
565 af.parseFeaturesFile(data,
566 AppletFormatAdapter.checkProtocol(data));
567 // System.out.println("Added " + data);
569 "CMD [-features " + data + "] executed successfully!");
572 data = aparser.getValue("annotations", true);
575 af.loadJalviewDataFile(data, null, null, null);
576 // System.out.println("Added " + data);
578 "CMD [-annotations " + data + "] executed successfully!");
580 // set or clear the sortbytree flag.
581 if (aparser.contains("sortbytree"))
583 af.getViewport().setSortByTree(true);
584 if (af.getViewport().getSortByTree())
586 System.out.println("CMD [-sortbytree] executed successfully!");
589 if (aparser.contains("no-annotation"))
591 af.getViewport().setShowAnnotation(false);
592 if (!af.getViewport().isShowAnnotation())
594 System.out.println("CMD no-annotation executed successfully!");
597 if (aparser.contains("nosortbytree"))
599 af.getViewport().setSortByTree(false);
600 if (!af.getViewport().getSortByTree())
603 .println("CMD [-nosortbytree] executed successfully!");
606 data = aparser.getValue("tree", true);
612 "CMD [-tree " + data + "] executed successfully!");
613 NewickFile nf = new NewickFile(data,
614 AppletFormatAdapter.checkProtocol(data));
616 .setCurrentTree(af.showNewickTree(nf, data).getTree());
617 } catch (IOException ex)
619 System.err.println("Couldn't add tree " + data);
620 ex.printStackTrace(System.err);
623 // TODO - load PDB structure(s) to alignment JAL-629
624 // (associate with identical sequence in alignment, or a specified
626 if (groovyscript != null)
628 // Execute the groovy script after we've done all the rendering stuff
629 // and before any images or figures are generated.
630 System.out.println("Executing script " + groovyscript);
631 executeGroovyScript(groovyscript, af);
632 System.out.println("CMD groovy[" + groovyscript
633 + "] executed successfully!");
636 String imageName = "unnamed.png";
637 while (aparser.getSize() > 1)
639 String outputFormat = aparser.nextValue();
640 file = aparser.nextValue();
642 if (outputFormat.equalsIgnoreCase("png"))
644 af.createPNG(new File(file));
645 imageName = (new File(file)).getName();
646 System.out.println("Creating PNG image: " + file);
649 else if (outputFormat.equalsIgnoreCase("svg"))
651 File imageFile = new File(file);
652 imageName = imageFile.getName();
653 af.createSVG(imageFile);
654 System.out.println("Creating SVG image: " + file);
657 else if (outputFormat.equalsIgnoreCase("html"))
659 File imageFile = new File(file);
660 imageName = imageFile.getName();
661 HtmlSvgOutput htmlSVG = new HtmlSvgOutput(af.alignPanel);
662 htmlSVG.exportHTML(file);
664 System.out.println("Creating HTML image: " + file);
667 else if (outputFormat.equalsIgnoreCase("biojsmsa"))
671 System.err.println("The output html file must not be null");
676 BioJsHTMLOutput.refreshVersionInfo(
677 BioJsHTMLOutput.BJS_TEMPLATES_LOCAL_DIRECTORY);
678 } catch (URISyntaxException e)
682 BioJsHTMLOutput bjs = new BioJsHTMLOutput(af.alignPanel);
683 bjs.exportHTML(file);
685 .println("Creating BioJS MSA Viwer HTML file: " + file);
688 else if (outputFormat.equalsIgnoreCase("imgMap"))
690 af.createImageMap(new File(file), imageName);
691 System.out.println("Creating image map: " + file);
694 else if (outputFormat.equalsIgnoreCase("eps"))
696 File outputFile = new File(file);
698 "Creating EPS file: " + outputFile.getAbsolutePath());
699 af.createEPS(outputFile);
703 if (af.saveAlignment(file, format))
705 System.out.println("Written alignment in " + format
706 + " format to " + file);
710 System.out.println("Error writing file " + file + " in "
711 + format + " format!!");
716 while (aparser.getSize() > 0)
718 System.out.println("Unknown arg: " + aparser.nextValue());
722 AlignFrame startUpAlframe = null;
723 // We'll only open the default file if the desktop is visible.
725 // ////////////////////
727 if (!headless && file == null && vamsasImport == null
728 && jalview.bin.Cache.getDefault("SHOW_STARTUP_FILE", true))
730 file = jalview.bin.Cache.getDefault("STARTUP_FILE",
731 jalview.bin.Cache.getDefault("www.jalview.org",
732 "http://www.jalview.org")
733 + "/examples/exampleFile_2_7.jar");
735 "http://www.jalview.org/examples/exampleFile_2_3.jar"))
737 // hardwire upgrade of the startup file
738 file.replace("_2_3.jar", "_2_7.jar");
739 // and remove the stale setting
740 jalview.bin.Cache.removeProperty("STARTUP_FILE");
743 protocol = DataSourceType.FILE;
745 if (file.indexOf("http:") > -1)
747 protocol = DataSourceType.URL;
750 if (file.endsWith(".jar"))
752 format = FileFormat.Jalview;
758 format = new IdentifyFile().identify(file, protocol);
759 } catch (FileFormatException e)
765 startUpAlframe = fileLoader.LoadFileWaitTillLoaded(file, protocol,
767 // extract groovy arguments before anything else.
770 // Once all other stuff is done, execute any groovy scripts (in order)
771 if (groovyscript != null)
773 if (Cache.groovyJarsPresent())
775 System.out.println("Executing script " + groovyscript);
776 executeGroovyScript(groovyscript, startUpAlframe);
781 "Sorry. Groovy Support is not available, so ignoring the provided groovy script "
785 // and finally, turn off batch mode indicator - if the desktop still exists
790 desktop.setProgressBar(null, progress);
792 desktop.setInBatchMode(false);
796 private static void showUsage()
799 "Usage: jalview -open [FILE] [OUTPUT_FORMAT] [OUTPUT_FILE]\n\n"
800 + "-nodisplay\tRun Jalview without User Interface.\n"
801 + "-props FILE\tUse the given Jalview properties file instead of users default.\n"
802 + "-colour COLOURSCHEME\tThe colourscheme to be applied to the alignment\n"
803 + "-annotations FILE\tAdd precalculated annotations to the alignment.\n"
804 + "-tree FILE\tLoad the given newick format tree file onto the alignment\n"
805 + "-features FILE\tUse the given file to mark features on the alignment.\n"
806 + "-fasta FILE\tCreate alignment file FILE in Fasta format.\n"
807 + "-clustal FILE\tCreate alignment file FILE in Clustal format.\n"
808 + "-pfam FILE\tCreate alignment file FILE in PFAM format.\n"
809 + "-msf FILE\tCreate alignment file FILE in MSF format.\n"
810 + "-pileup FILE\tCreate alignment file FILE in Pileup format\n"
811 + "-pir FILE\tCreate alignment file FILE in PIR format.\n"
812 + "-blc FILE\tCreate alignment file FILE in BLC format.\n"
813 + "-json FILE\tCreate alignment file FILE in JSON format.\n"
814 + "-jalview FILE\tCreate alignment file FILE in Jalview format.\n"
815 + "-png FILE\tCreate PNG image FILE from alignment.\n"
816 + "-svg FILE\tCreate SVG image FILE from alignment.\n"
817 + "-html FILE\tCreate HTML file from alignment.\n"
818 + "-biojsMSA FILE\tCreate BioJS MSA Viewer HTML file from alignment.\n"
819 + "-imgMap FILE\tCreate HTML file FILE with image map of PNG image.\n"
820 + "-eps FILE\tCreate EPS file FILE from alignment.\n"
821 + "-questionnaire URL\tQueries the given URL for information about any Jalview user questionnaires.\n"
822 + "-noquestionnaire\tTurn off questionnaire check.\n"
823 + "-nonews\tTurn off check for Jalview news.\n"
824 + "-nousagestats\tTurn off google analytics tracking for this session.\n"
825 + "-sortbytree OR -nosortbytree\tEnable or disable sorting of the given alignment by the given tree\n"
827 // "-setprop PROPERTY=VALUE\tSet the given Jalview property,
828 // after all other properties files have been read\n\t
829 // (quote the 'PROPERTY=VALUE' pair to ensure spaces are
830 // passed in correctly)"
831 + "-jabaws URL\tSpecify URL for Jabaws services (e.g. for a local installation).\n"
832 + "-fetchfrom nickname\tQuery nickname for features for the alignments and display them.\n"
834 // "-vdoc vamsas-document\tImport vamsas document into new
835 // session or join existing session with same URN\n"
836 // + "-vses vamsas-session\tJoin session with given URN\n"
837 + "-groovy FILE\tExecute groovy script in FILE, after all other arguments have been processed (if FILE is the text 'STDIN' then the file will be read from STDIN)\n"
838 + "\n~Read documentation in Application or visit http://www.jalview.org for description of Features and Annotations file~\n\n");
841 private static void startUsageStats(final Desktop desktop)
844 * start a User Config prompt asking if we can log usage statistics.
846 PromptUserConfig prompter = new PromptUserConfig(Desktop.desktop,
847 "USAGESTATS", "Jalview Usage Statistics",
848 "Do you want to help make Jalview better by enabling "
849 + "the collection of usage statistics with Google Analytics ?"
850 + "\n\n(you can enable or disable usage tracking in the preferences)",
857 "Initialising googletracker for usage stats.");
858 Cache.initGoogleTracker();
859 Cache.log.debug("Tracking enabled.");
866 Cache.log.debug("Not enabling Google Tracking.");
869 desktop.addDialogThread(prompter);
873 * Locate the given string as a file and pass it to the groovy interpreter.
875 * @param groovyscript
876 * the script to execute
877 * @param jalviewContext
878 * the Jalview Desktop object passed in to the groovy binding as the
881 private void executeGroovyScript(String groovyscript, AlignFrame af)
884 * for scripts contained in files
891 if (groovyscript.trim().equals("STDIN"))
893 // read from stdin into a tempfile and execute it
896 tfile = File.createTempFile("jalview", "groovy");
897 PrintWriter outfile = new PrintWriter(
898 new OutputStreamWriter(new FileOutputStream(tfile)));
899 BufferedReader br = new BufferedReader(
900 new InputStreamReader(System.in));
902 while ((line = br.readLine()) != null)
904 outfile.write(line + "\n");
910 } catch (Exception ex)
912 System.err.println("Failed to read from STDIN into tempfile "
913 + ((tfile == null) ? "(tempfile wasn't created)"
914 : tfile.toString()));
915 ex.printStackTrace();
920 sfile = tfile.toURI().toURL();
921 } catch (Exception x)
924 "Unexpected Malformed URL Exception for temporary file created from STDIN: "
934 sfile = new URI(groovyscript).toURL();
935 } catch (Exception x)
937 tfile = new File(groovyscript);
940 System.err.println("File '" + groovyscript + "' does not exist.");
943 if (!tfile.canRead())
945 System.err.println("File '" + groovyscript + "' cannot be read.");
948 if (tfile.length() < 1)
950 System.err.println("File '" + groovyscript + "' is empty.");
955 sfile = tfile.getAbsoluteFile().toURI().toURL();
956 } catch (Exception ex)
958 System.err.println("Failed to create a file URL for "
959 + tfile.getAbsoluteFile());
966 Map<String, Object> vbinding = new HashMap<>();
967 vbinding.put("Jalview", this);
970 vbinding.put("currentAlFrame", af);
972 Binding gbinding = new Binding(vbinding);
973 GroovyScriptEngine gse = new GroovyScriptEngine(new URL[] { sfile });
974 gse.run(sfile.toString(), gbinding);
975 if ("STDIN".equals(groovyscript))
977 // delete temp file that we made -
978 // only if it was successfully executed
981 } catch (Exception e)
983 System.err.println("Exception Whilst trying to execute file " + sfile
984 + " as a groovy script.");
985 e.printStackTrace(System.err);
990 public static boolean isHeadlessMode()
992 String isheadless = System.getProperty("java.awt.headless");
993 if (isheadless != null && isheadless.equalsIgnoreCase("true"))
1000 public AlignFrame[] getAlignFrames()
1002 return desktop == null ? new AlignFrame[] { getCurrentAlignFrame() }
1003 : Desktop.getAlignFrames();
1008 * Quit method delegates to Desktop.quit - unless running in headless mode
1009 * when it just ends the JVM
1013 if (desktop != null)
1023 public static AlignFrame getCurrentAlignFrame()
1025 return Jalview.currentAlignFrame;
1028 public static void setCurrentAlignFrame(AlignFrame currentAlignFrame)
1030 Jalview.currentAlignFrame = currentAlignFrame;