*/
public void run()
{
+ PrintStream ps = new PrintStream(System.out)
+ {
+ public void print(String x)
+ {
+ details.append(x);
+ }
+
+ public void println()
+ {
+ details.append("\n");
+ }
+ };
+
+ try {
details.append("PCA Calculation Mode is "
+ (jvCalcMode ? "Jalview variant" : "Original SeqSpace") + "\n");
Matrix mt = m.transpose();
eigenvector = mt.preMultiply(m2); // jalview variation on seqsmace method
}
- PrintStream ps = new PrintStream(System.out)
- {
- public void print(String x)
- {
- details.append(x);
- }
-
- public void println()
- {
- details.append("\n");
- }
- };
-
eigenvector.print(ps);
symm = eigenvector.copy();
// Now produce the diagonalization matrix
eigenvector.tqli();
+ } catch (Exception q)
+ {
+ q.printStackTrace();
+ details.append("\n*** Unexpected exception when performing PCA ***\n"+q.getLocalizedMessage());
+ details.append("*** Matrices below may not be fully diagonalised. ***\n");
+ }
details.append(" --- New diagonalization matrix ---\n");
eigenvector.print(ps);