Skip to content

Commit

Permalink
Handle for missing relaxed NeuralPLexer structures n some dataset con…
Browse files Browse the repository at this point in the history
…texts
  • Loading branch information
amorehead committed Jun 2, 2024
1 parent 1ae822c commit 9e1ff60
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/analysis/complex_alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,18 @@ def main(cfg: DictConfig):
raise ValueError(f"Invalid method: {cfg.method}")

if len(output_ligand_files) < len(output_protein_files):
if cfg.method == "rfaa":
if cfg.method == "neuralplexer":
output_protein_files = sorted(
[
file
for file in list(output_dir.rglob(f"prot_rank{cfg.rank_to_align}_*.pdb"))
if "_aligned" not in file.stem
and any(
[file.parent.stem in item.parent.stem for item in output_ligand_files]
)
]
)
elif cfg.method == "rfaa":
output_protein_files = sorted(
[
item
Expand Down

0 comments on commit 9e1ff60

Please sign in to comment.