From 156e25ee49d7f359f1a073f2ebb73ddb72aebf63 Mon Sep 17 00:00:00 2001 From: Nuri Jung Date: Mon, 18 Mar 2024 16:21:28 +0900 Subject: [PATCH] fix(data): join unique a3m results only Fixes seoklab/RoseTTAFold-All-Atom#3. --- rf2aa/data/merge_inputs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rf2aa/data/merge_inputs.py b/rf2aa/data/merge_inputs.py index bf12ff8..7917fa1 100644 --- a/rf2aa/data/merge_inputs.py +++ b/rf2aa/data/merge_inputs.py @@ -43,8 +43,8 @@ def merge_protein_inputs(protein_inputs, deterministic: bool = False): if len(unique_a3m) >1: a3m_out = unique_a3m[0] - for i in range(1, len(unique_a3m)): - a3m_out = join_msas_by_taxid(a3m_out, a3m_list[i]) + for unq_a3m in unique_a3m[1:]: + a3m_out = join_msas_by_taxid(a3m_out, unq_a3m) a3m_out = expand_multi_msa(a3m_out, unique_hashes, hash_list, unique_lengths_list, lengths_list) else: a3m = unique_a3m[0]