@@ -1905,14 +1905,6 @@ def save_ranked_predictions(
19051905 output_protein_filepaths , protein_input_filepath
19061906 )
19071907
1908- gap_insertion_point = (
1909- # NOTE: for target `T1124` from CASP15, we have to insert a one-step gap starting at
1910- # residue `243` in chain `B` for methods that predict holo protein PDB files ab initio
1911- # to properly score these predictions
1912- "B:243"
1913- if name == "T1124" and method in METHODS_PREDICTING_HOLO_PROTEIN_AB_INITIO
1914- else None
1915- )
19161908 for i , (protein_output_filepath , ligand_output_filepath ) in enumerate (
19171909 zip (output_protein_filepaths , output_ligand_filepaths ), start = 1
19181910 ):
@@ -1927,6 +1919,15 @@ def save_ranked_predictions(
19271919 f"{ name } LG{ cfg .casp_author } _protein_{ i } " ,
19281920 )
19291921 )
1922+ method = os .path .basename (ligand_output_filepath ).split ("_" )[0 ]
1923+ gap_insertion_point = (
1924+ # NOTE: for target `T1124` from CASP15, we have to insert a one-step gap starting at
1925+ # residue `243` in chain `B` for methods that predict holo protein PDB files ab initio
1926+ # to properly score these predictions
1927+ "B:243"
1928+ if name == "T1124" and method in METHODS_PREDICTING_HOLO_PROTEIN_AB_INITIO
1929+ else None
1930+ )
19301931 export_proteins_in_casp_format (
19311932 [protein_output_filepath ],
19321933 output_file ,
0 commit comments