From bd4b59bb1bd3e07ac3b69ae30ac035cffd28e769 Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@unibas.ch>
Date: Thu, 11 May 2023 10:34:06 +0200
Subject: [PATCH] Bugfix: correctly read transformation matrix from USalign

---
 modules/bindings/pymod/tmtools.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/bindings/pymod/tmtools.py b/modules/bindings/pymod/tmtools.py
index 36f7e9cf9..29dcb8c40 100644
--- a/modules/bindings/pymod/tmtools.py
+++ b/modules/bindings/pymod/tmtools.py
@@ -148,9 +148,9 @@ def _ParseUSAlign(lines,lines_matrix):
   tf1=[float(i.strip()) for i in lines_matrix[2].split()[1:]]
   tf2=[float(i.strip()) for i in lines_matrix[3].split()[1:]]
   tf3=[float(i.strip()) for i in lines_matrix[4].split()[1:]]
-  mat = geom.Mat4(tf1[0], tf1[1], tf1[2], tf1[3],
-                  tf2[0], tf2[1], tf2[2], tf2[3],
-                  tf3[0], tf3[1], tf3[2], tf3[3],
+  mat = geom.Mat4(tf1[1], tf1[2], tf1[3], tf1[0],
+                  tf2[1], tf2[2], tf2[3], tf2[0],
+                  tf3[1], tf3[2], tf3[3], tf3[0],
                   0.0,    0.0,    0.0,    1.0)
 
   return ost.bindings.MMAlignResult(rmsd, tm_score, tm_score_swapped,
-- 
GitLab