Skip to content

Commit

Permalink
Skip MSA search when both custom_template and single_sequence provided
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshitakaMo authored Apr 25, 2024
1 parent 9a5c316 commit 1653605
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions colabfold/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1653605

Please sign in to comment.