From d6f1f9b38247fe2e2cefd13158990b609d13cd6e Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@unibas.ch>
Date: Wed, 15 Feb 2023 17:44:56 +0100
Subject: [PATCH] bugfix

---
 modelling/pymod/_afdb_modelling.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modelling/pymod/_afdb_modelling.py b/modelling/pymod/_afdb_modelling.py
index 08073ee4..243abc35 100644
--- a/modelling/pymod/_afdb_modelling.py
+++ b/modelling/pymod/_afdb_modelling.py
@@ -548,7 +548,7 @@ def AFDBTPLSearch(fs_server, pentamatch, trg_seq, pentamatch_n = 100,
         aln = seq.alg.LocalAlign(trg_seq, seq.CreateSequence("A", omf_s),
                                  seq.alg.BLOSUM62)[0]
         if seq.alg.SequenceIdentity(aln) >= seqid_thresh:
-            bfactors = omf.GetBFactors("A")
+            bfactors = omf.GetAvgBFactors("A")
             summed_bfac = 0.0
             current_pos = aln.GetSequence(1).offset
             for col in aln:
-- 
GitLab