label.output_values = Output Values...
label.output_points = Output points...
label.output_transformed_points = Output transformed points
+label.output_alignment = Output pairwise alignments
+label.pairwise_alignment_for_params = Pairwise alignments for {0}
label.input_data = Input Data...
label.nucleotide_matrix = Nucleotide matrix
label.protein_matrix = Protein matrix
label.output_values = Valores de salida...
label.output_points = Puntos de salida...
label.output_transformed_points = Puntos de salida transformados
+label.output_alignment = Alineaciones de pares de salida
+label.pairwise_alignment_for_params = Alineaciiones por pares para {0}
label.input_data = Datos de entrada...
label.nucleotide_matrix = Matriz nucleotÃdica
label.protein_matrix = Matriz proteica
/*
* outputs
*/
+ private PairwiseAlignPanel alignment;
+
private MatrixI pairwiseScores;
private MatrixI eigenMatrix;
{
try
{
- PairwiseAlignPanel alignment = new PairwiseAlignPanel(seqs, true, 100, 5);
+ alignment = new PairwiseAlignPanel(seqs, true, 100, 5);
float[][] scores = alignment.getAlignmentScores(); //bigger index first -- eg scores[14][13]
Hashtable<SequenceI, Integer> connectivity = seqs.calculateConnectivity(scores, dim);
{
eigenMatrix = m;
}
+
+ public PairwiseAlignPanel getAlignments()
+ {
+ return alignment;
+ }
+
+ public String getAlignmentOutput()
+ {
+ return alignment.getAlignmentOutput();
+ }
}
/*
* (non-Javadoc)
*
+ * @see
+ * jalview.jbgui.GPCAPanel#outputAlignment_actionPerformed(java.awt.event
+ * .ActionEvent)
+ */
+ @Override
+ protected void outputAlignment_actionPerformed()
+ {
+ CutAndPasteTransfer cap = new CutAndPasteTransfer();
+ try
+ {
+ cap.setText(getPasimapModel().getAlignmentOutput());
+ Desktop.addInternalFrame(cap, MessageManager.formatMessage(
+ "label.pairwise_alignment_for_params", new String[] { this.getTitle() }), 500, 500);
+ } catch (OutOfMemoryError oom)
+ {
+ new OOMWarning("exporting pairwise alignments", oom);
+ cap.dispose();
+ }
+ }
+
+ /*
+ * (non-Javadoc)
+ *
* @see jalview.gui.IProgressIndicator#setProgressBar(java.lang.String, long)
*/
@Override
Vector<SequenceI> sequences;
+ private String alignmentOutput;
+
/**
* Creates a new PairwiseAlignPanel object.
*
super();
this.av = viewport;
+ StringBuilder sb = new StringBuilder(1024);
+
sequences = new Vector<SequenceI>();
SequenceGroup selectionGroup = viewport.getSelectionGroup();
{
System.out.println(DASHES);
textarea.append(DASHES);
+ sb.append(DASHES);
}
first = false;
as.printAlignment(System.out);
totscore = totscore + scores[i][j];
textarea.append(as.getOutput());
+ sb.append(as.getOutput());
sequences.add(as.getAlignedSeq1());
sequences.add(as.getAlignedSeq2());
}
{
printScoreMatrix(seqs, scores, totscore);
}
+
+ alignmentOutput = sb.toString();
}
public float[][] getScores()
return this.alignmentScores;
}
+ public String getAlignmentOutput()
+ {
+ return this.alignmentOutput;
+ }
+
/**
* Prints a matrix of seqi-seqj pairwise alignment scores to sysout
*
print_actionPerformed();
}
});
+ JMenuItem outputAlignment = new JMenuItem();
+ outputAlignment.setText(
+ MessageManager.getString("label.output_alignment"));
+ outputAlignment.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ outputAlignment_actionPerformed();
+ }
+ });
viewMenu.setText(MessageManager.getString("action.view"));
viewMenu.addMenuListener(new MenuListener()
{
fileMenu.add(originalSeqData);
fileMenu.add(outputPoints);
fileMenu.add(outputProjPoints);
+ fileMenu.add(outputAlignment);
saveMenu.add(eps);
saveMenu.add(png);
viewMenu.add(showLabels);
{
}
+ protected void outputAlignment_actionPerformed()
+ {
+ }
+
public void makePCAImage(TYPE imageType)
{
}
return pasimap.getDetails();
}
+ public String getAlignmentOutput()
+ {
+ return pasimap.getAlignmentOutput();
+ }
+
public AlignmentViewport getInputData()
{
return inputData;