Skip to content

Commit

Permalink
Merge pull request #49 from DasLab/fix/spotrna-concurrency
Browse files Browse the repository at this point in the history
Fix concurrency bug in spotrna
  • Loading branch information
tkaragianes authored Jan 25, 2025
2 parents 0061259 + 2b4b724 commit 9a65ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arnie/pk_predictors.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ def _run_spotrna(seq, cpu=32):
spotrna_conda_env = package_locs["spotrna_conda_env"]
out_folder = get_random_folder()
mkdir(out_folder)
fasta_file = f"{out_folder}/temp.fasta"
input_id = local_rand_filename()
fasta_file = f"{out_folder}/{input_id}.fasta"
f = open(fasta_file, "w")
f.write(">seq\n")
f.write(seq)
Expand Down Expand Up @@ -472,4 +473,3 @@ def _nupack_mfe_pk(seq):
remove(f'{fasta_file}.mfe')
rmdir(out_folder)
return struct

0 comments on commit 9a65ddd

Please sign in to comment.