Skip to content

Commit

Permalink
Make cleaned DynamicBind PDB filenames unique
Browse files Browse the repository at this point in the history
  • Loading branch information
amorehead committed Aug 17, 2024
1 parent 3af189c commit d014ea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forks/DynamicBind/run_single_protein_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def ref_filename_sort_key(filepath):
elif args.ligand_is_sdf:
# clean protein file
os.system(f"mkdir -p {outputs_dir}")
cleaned_proteinFile = os.path.join(outputs_dir, "cleaned_input_proteinFile.pdb")
cleaned_proteinFile = os.path.join(outputs_dir, f"cleaned_input_proteinFile_{timestamp}_{unique_id}.pdb")
ligandFile_with_protein_path = os.path.join(outputs_dir, f"ligandFile_with_protein_path_{timestamp}.csv")
# if os.path.exists(ligandFile_with_protein_path):
# os.system(f"rm {ligandFile_with_protein_path}")
Expand Down Expand Up @@ -248,7 +248,7 @@ def ref_filename_sort_key(filepath):
ligands.to_csv(ligandFile_with_protein_path, index=False)
else:
# clean protein file
cleaned_proteinFile = os.path.join(outputs_dir, "cleaned_input_proteinFile.pdb")
cleaned_proteinFile = os.path.join(outputs_dir, f"cleaned_input_proteinFile_{timestamp}_{unique_id}.pdb")
ligandFile_with_protein_path = os.path.join(outputs_dir, f"ligandFile_with_protein_path_{timestamp}.csv")
cmd = f"{relax_python} {script_folder}/clean_pdb.py {args.proteinFile} {cleaned_proteinFile}"
do(cmd)
Expand Down

0 comments on commit d014ea8

Please sign in to comment.