Skip to content

Commit

Permalink
add the default chains.txt for single-chain fasta (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
BaozCWJ authored Sep 27, 2022
1 parent 0220958 commit 5c3703a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions unifold/homo_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 5c3703a

Please sign in to comment.