From 5c3703a7a0a130abeb57684875c0d6690dd63859 Mon Sep 17 00:00:00 2001 From: Waikit Chan <37867949+BaozCWJ@users.noreply.github.com> Date: Tue, 27 Sep 2022 11:32:51 +0800 Subject: [PATCH] add the default chains.txt for single-chain fasta (#54) --- unifold/homo_search.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unifold/homo_search.py b/unifold/homo_search.py index 0c7b499..f00a32f 100644 --- a/unifold/homo_search.py +++ b/unifold/homo_search.py @@ -272,6 +272,12 @@ def main(argv): fasta_names = temp_names fasta_paths = temp_paths else: + output_dir = os.path.join(FLAGS.output_dir, fasta_name) + if not os.path.exists(output_dir): + os.makedirs(output_dir) + chain_order_path = os.path.join(output_dir, "chains.txt") + with open(chain_order_path, "w") as f: + f.write("A") fasta_names = [fasta_name] fasta_paths = [fasta_path]