From: MorellThomas Date: Fri, 15 Mar 2024 09:25:36 +0000 (+0100) Subject: Fix output of all dimensions X-Git-Tag: Release_2_11_4_0~31^2~21 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b798682af83d8fb1d7c7f4b45388572899b31cac;p=jalview.git Fix output of all dimensions --- diff --git a/src/jalview/analysis/PaSiMap.java b/src/jalview/analysis/PaSiMap.java index 07256a3..96f1e15 100755 --- a/src/jalview/analysis/PaSiMap.java +++ b/src/jalview/analysis/PaSiMap.java @@ -135,7 +135,7 @@ public class PaSiMap implements Runnable for (int i = 0; i < out.length; i++) { - out[i] = component(i, n); + out[i] = component(n, i); } return out; diff --git a/src/jalview/viewmodel/PaSiMapModel.java b/src/jalview/viewmodel/PaSiMapModel.java index ba9ad6a..c2116f8 100644 --- a/src/jalview/viewmodel/PaSiMapModel.java +++ b/src/jalview/viewmodel/PaSiMapModel.java @@ -207,10 +207,20 @@ public class PaSiMapModel for (int s = 0; s < seqs.length; s++) { csv.append("\"" + seqs[s].getName() + "\""); - Point p = points.get(s).coord; - csv.append(",").append(p.x); - csv.append(",").append(p.y); - csv.append(",").append(p.z); + if (!transformed) + { + double[] fl = pasimap.component(s); + for (int d = fl.length - 1; d >= 0; d--) + { + csv.append(","); + csv.append(fl[d]); + } + } else { + Point p = points.get(s).coord; + csv.append(",").append(p.x); + csv.append(",").append(p.y); + csv.append(",").append(p.z); + } csv.append("\n"); } return csv.toString();