Skip to content

Commit 935bc10

Browse files
tubianapslacerda
authored andcommitted
Update tmalign.py
Simplification of "rotation matrix" line detection so that's it is also compatible with the TMalign speleo3 conda version.
1 parent 889738c commit 935bc10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tmalign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def tmalign(mobile, target, args='', exe='TMalign', ter=0, transform=1, object=N
152152
a = line.split(None, 2)
153153
if len(a) == 3:
154154
headercheck = a[1]
155-
elif line.lower().startswith('------ the rotation matrix'):
155+
elif (' rotation matrix') in line.lower():
156156
rowcount = 1
157157
elif line.startswith('(":" denotes'):
158158
alignment = [next(line_it).rstrip() for i in range(3)]

0 commit comments

Comments
 (0)