//GEN-BEGIN:initComponents
private void initComponents() {
scrollPane = new javax.swing.JScrollPane();
textPane = new javax.swing.JTextPane();
textPane.setContentType("text/html");
textPane.setEditable(false);
textPane.setText("\r\n \r\n\r\n \r\n \r\n \n\tALTER (ALignment " +
"Transformation EnviRonment) "+ AlterProperties.getInstance().getProperty("project.version")
+"
\n\n\tThe following " +
"document provides " +
"information on " +
"how to use the desktop version of ALTER, an evironment for alignment transformation. ALTER aims to solve the existing problem with different formats and different programs for multiple sequences alignments. It converts multiple sequences alignments between known formats so they can be processed by a set phylogenetic analyzers.
\n\n\t
\n\n\tLoad sequences into ALTER
\n\n\tLoading sequences into the application can be achieved by following one of these two simple steps:
\n\n\t- \n\t\tClicking on the "Load..." button (or pressing CTRL + L) will display a file chooser. Select a file containing a multiple sequences alignment in one of the supported formats (scroll down for an explanation of the supported formats) and its sequences will be loaded into the input text area.
\n\t- \n\t\tSequences can also be pasted into the input text area.
\n
\n
\n\n\tSave input file
\n\n\tSaving the input file will copy the sequences contained in the input text area to a file in the system. There are two options in this step:
\n\n\t- \n\t\tBy clicking on the "Save..." button belonging to the input area (or by pressing CTRL + I) the file used to load the sequences into ALTER will be overwritten with the text contained in the input text area. If no file was used to load the sequences, and the sequences have not been saved before, the action taken would be the same as using the "Save As..." button.
\n\t- \n\t\tBy clicking on the "Save As..." button belonging to the input area a file selector will be displayed. After selecting a name (or a file to overwrite) in the file system, the content of the input text area will be written to the selected file.
\n
\n\n\t
\n\n\tSave output file
\n\n\tSaving the output file will copy the sequences contained in the output text area to a file in the system. There are two options in this step:
\n\n\t- \n\t\tBy clicking on the "Save..." button belonging to the output area (or by pressing CTRL + O) the file previously used to save the converted sequences will be overwritten with the text contained in the output text area. If the converted sequences have not been saved before, the action taken would be the same as using the "Save As..." button.
\n\t- \n\t\tBy clicking on the "Save As..." button belonging to the output area a file selector will be displayed. After selecting a name (or a file to overwrite) in the file system, the content of the output text area will be written to the selected file.
\n
\n\n\t
\n\n\tSave all files
\n\n\tBy clicking on "File->Save All" button (or pressing CTRL + A) both the input and the output files will be overwritten with the sequences contained in the text areas. If a file was not used for either input or output a file chooser will be displayed to select the file.
\n\n
\n
\n
\n\n\tConvert sequences
\n\n\tIn order to convert the sequences loaded into one of the supported formats the "Convert..." button must be clicked. Once this button is clicked, a dialog will be displayed to select the options for conversion. These options are now explained:
\n\n\t- \n\t\tInput: Options for the input sequences\n\t\t
\n\t\t\t- \n\t\t\t\tOS: Operating system used to create the input file (Linux, MacOS and Windows are supported).
\n\t\t\t- \n\t\t\t\tProgram: The program used to create the input file (Clustal, MAFFT and TCoffee are supported).
\n\t\t\t- \n\t\t\t\tFormat: The format in which the input file is (ALN, FASTA, GDE, MSF, NEXUS, PHYLIP and PIR are supported). Some restrictions can apply here due to the formats supported by the input programs.
\n\t\t\t- \n\t\t\t\tAutodetect: By selecting this option the input format will be detected automatically.
\n\t\t
\n\t \n\t- \n\t\tCollapse: Options for haplotype collapse (removing of redundant sequences)\n\t\t
\n\t\t\t- \n\t\t\t\tCollapse sequences to haplotypes: This option enables the haplotype collapse feature. When checked, it activates the rest of the options to handle this process.
\n\t\t\t- \n\t\t\t\tLimit: Sets the limit to collapse the sequences. Only sequences differing in the same or less residues than the limit will be collapsed.
\n\t\t\t- \n\t\t\t\tTreat gaps as missing data: Gaps are treated as a fifth state by default. This option makes the collapse feature treat gaps as missing data.
\n\t\t\t- \n\t\t\t\tCount missing data as differences: Missing data can be ommited from the process is this option is not checked.
\n\t\t
\n\t \n\t- \n\t\tOutput: Options for the output sequences\n\t\t
\n\t\t\t- \n\t\t\t\tOS: Operating system used to processed the output file (Linux, MacOS and Windows are supported).
\n\t\t\t- \n\t\t\t\tProgram: The program used to process the output file (jModelTest, MrBayes, PAML, PAUP, PhyML, PortTest, RAxML, TCS and CodABC are supported). If "ANY" is selected the sequences will be converted to an standard format.
\n\t\t\t- \n\t\t\t\tFormat: The format in which the output file will be (ALN, FASTA, GDE, MSF, NEXUS, PHYLIP and PIR are supported). Some restrictions can apply here due to the formats supported by the input programs.
\n\t\t\t- \n\t\t\t\tLower case: Outputs the sequences using lower case characters.
\n\t\t\t- \n\t\t\t\tMatch encoding: Uses match characters (character “.”) to indicate that the same residue is located in the same position of the first sequence. This option is not available for MSF format since it prints gaps as “.” characters.
\n\t\t\t- \n\t\t\t\tResidue numbers: Outputs the sum of the number of residues to that point next to each line of each sequence. This option is only available for ALN format.
\n\t\t\t- \n\t\t\t\tSequential: Outputs the sequences in sequential format. This option is only available for NEXUS and PHYLIP formats.
\n\t\t
\n\t \n
\n\n\tThank you for using ALTER, we hope you enjoy it!
\n\n \r\n\r\n");
scrollPane.setViewportView(textPane);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(scrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 594, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(scrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 484, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
}// //GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JScrollPane scrollPane;
private javax.swing.JTextPane textPane;
// End of variables declaration//GEN-END:variables
}
ALTER-1.3.4/alter-lib/src/main/java/es/uvigo/ei/sing/alter/gui/MainFrame.java 0000775 0000000 0000000 00000123256 13005362432 0026401 0 ustar 00root root 0000000 0000000 /*
* This file is part of ALTER.
*
* ALTER is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ALTER is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ALTER. If not, see