File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -794,13 +794,20 @@ def get_method_predictions(
794794 if Path (file ).stem .replace ("_ligand_" , "_receptor_" )
795795 in {Path (protein_file ).stem for protein_file in protein_output_files }
796796 ]
797- elif len (ligand_output_files ) < len (protein_output_files ):
797+ if len (ligand_output_files ) < len (protein_output_files ):
798798 protein_output_files = [
799799 file
800800 for file in protein_output_files
801801 if Path (file ).stem .replace ("_receptor_" , "_ligand_" )
802802 in {Path (ligand_file ).stem for ligand_file in ligand_output_files }
803803 ]
804+ if len (protein_output_files ) < len (ligand_output_files ):
805+ ligand_output_files = [
806+ file
807+ for file in ligand_output_files
808+ if Path (file ).stem .replace ("_ligand_" , "_receptor_" )
809+ in {Path (protein_file ).stem for protein_file in protein_output_files }
810+ ]
804811 assert len (protein_output_files ) == len (
805812 ligand_output_files
806813 ), "The number of DynamicBind protein and ligand files must match."
You can’t perform that action at this time.
0 commit comments