From 72a2d5d1df50bb956a192db7d141b3a8cd35d936 Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@unibas.ch>
Date: Fri, 17 Apr 2020 08:32:57 +0200
Subject: [PATCH] relax strict ordering requirements of sspred, ssconf and
 sequences

HHblits3 starts with the target sequence instead of the sspred/ssconf
sections
---
 modules/bindings/pymod/hhblits.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/bindings/pymod/hhblits.py b/modules/bindings/pymod/hhblits.py
index 5951fe012..91b70493e 100644
--- a/modules/bindings/pymod/hhblits.py
+++ b/modules/bindings/pymod/hhblits.py
@@ -319,11 +319,8 @@ def ParseA3M(a3m_file):
             state = 'ssconf'
             continue
         elif line[0] == '>':
-            if state == 'ssconf' or state == 'msa':
-                msa_seq.append('')
-                msa_head.append(line[1:].rstrip())
-            else:
-                raise IOError('The A3M file is missing the "ss_conf" section')
+            msa_seq.append('')
+            msa_head.append(line[1:].rstrip())
             state = 'msa'
             continue
 
-- 
GitLab