From 16536057f3041920fa7150439182c0affcc4c947 Mon Sep 17 00:00:00 2001 From: Yoshitaka Moriwaki Date: Thu, 25 Apr 2024 11:10:39 +0900 Subject: [PATCH] Skip MSA search when both custom_template and single_sequence provided --- colabfold/batch.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/colabfold/batch.py b/colabfold/batch.py index bcf1000d..c6b3a8ab 100644 --- a/colabfold/batch.py +++ b/colabfold/batch.py @@ -751,6 +751,12 @@ def get_msa_and_templates( if use_templates: # Skip template search when custom_template_path is provided if custom_template_path is not None: + if msa_mode == "single_sequence": + a3m_lines = [] + num = 101 + for i, seq in enumerate(query_seqs_unique): + a3m_lines.append(f">{num + i}\n{seq}") + if a3m_lines is None: a3m_lines_mmseqs2 = run_mmseqs2( query_seqs_unique,