Skip to content

Commit a942e75

Browse files
committed
Improve naming of out_dir in inference
1 parent 093a476 commit a942e75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datasets/pdbbind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def get_complex(self, par):
482482
try:
483483
if ligand is not None: # This is the case in inference processing
484484
rec_model = parse_pdb_from_path(name)
485-
name = f'{name}____{ligand_description}'
485+
name = f'{os.path.dirname(name)}-{os.path.basename(name)}___{os.path.dirname(ligand_description[0])}-{os.path.basename(ligand_description[0])}'
486486
ligs, ligs_center, ligs_predefined_flexible_sidechains = [ligand[0]], [ligand[1]], [ligand[2]]
487487
else:
488488
# rec_model_match is typically the HOLO / PDB structure

inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def center_to_torch(x, y, z):
243243

244244
try:
245245
data_list = [copy.deepcopy(orig_complex_graph) for _ in range(N)]
246-
write_dir = f'{args.out_dir}/index{idx}_{data_list[0]["name"][0].replace("/", "-")}'
246+
write_dir = f'{args.out_dir}/index{idx}___{data_list[0]["name"][0].replace("/", "-")}'
247247
if os.path.exists(write_dir) and args.skip_existing: continue
248248

249249
randomize_position(data_list, score_model_args.no_torsion, args.no_random, score_model_args.tr_sigma_max,

0 commit comments

Comments
 (0)