|
64 | 64 | " \"vina_p2rank\",\n", |
65 | 65 | " \"diffdock\",\n", |
66 | 66 | " \"dynamicbind\",\n", |
| 67 | + " \"neuralplexer\",\n", |
67 | 68 | " \"rfaa\",\n", |
68 | 69 | " \"chai-lab_ss\",\n", |
69 | 70 | " \"chai-lab\",\n", |
70 | 71 | " \"alphafold3_ss\",\n", |
71 | 72 | " \"alphafold3\",\n", |
72 | | - " \"neuralplexer3_ss\",\n", |
73 | | - " \"neuralplexer3\",\n", |
74 | 73 | "]\n", |
75 | 74 | "max_num_repeats_per_method = 3\n", |
76 | 75 | "\n", |
|
80 | 79 | "globals()[\"dynamicbind_output_dir\"] = os.path.join(\n", |
81 | 80 | " \"..\", \"forks\", \"DynamicBind\", \"inference\", \"outputs\", \"results\"\n", |
82 | 81 | ")\n", |
| 82 | + "globals()[\"neuralplexer_output_dir\"] = os.path.join(\"..\", \"forks\", \"NeuralPLexer\", \"inference\")\n", |
83 | 83 | "globals()[\"rfaa_output_dir\"] = os.path.join(\"..\", \"forks\", \"RoseTTAFold-All-Atom\", \"inference\")\n", |
84 | 84 | "globals()[\"chai-lab_output_dir\"] = os.path.join(\"..\", \"forks\", \"chai-lab\", \"inference\")\n", |
85 | 85 | "globals()[\"alphafold3_output_dir\"] = os.path.join(\"..\", \"forks\", \"alphafold3\", \"inference\")\n", |
86 | | - "globals()[\"neuralplexer3_output_dir\"] = os.path.join(\"..\", \"forks\", \"NeuralPLexer3\", \"inference\")\n", |
87 | 86 | "for repeat_index in range(1, max_num_repeats_per_method + 1):\n", |
88 | 87 | " # PLIF metrics\n", |
89 | 88 | " globals()[f\"astex_plif_metrics_csv_filepath_{repeat_index}\"] = \"astex_diverse_plif_metrics.csv\"\n", |
|
128 | 127 | " )\n", |
129 | 128 | " )\n", |
130 | 129 | "\n", |
| 130 | + " # NeuralPLexer results\n", |
| 131 | + " globals()[f\"neuralplexer_astex_bust_results_csv_filepath_{repeat_index}\"] = os.path.join(\n", |
| 132 | + " globals()[\"neuralplexer_output_dir\"],\n", |
| 133 | + " f\"neuralplexer_astex_diverse_outputs_{repeat_index}\",\n", |
| 134 | + " \"bust_results.csv\",\n", |
| 135 | + " )\n", |
| 136 | + " globals()[f\"neuralplexer_astex_relaxed_bust_results_csv_filepath_{repeat_index}\"] = (\n", |
| 137 | + " os.path.join(\n", |
| 138 | + " globals()[\"neuralplexer_output_dir\"],\n", |
| 139 | + " f\"neuralplexer_astex_diverse_outputs_{repeat_index}_relaxed\",\n", |
| 140 | + " \"bust_results.csv\",\n", |
| 141 | + " )\n", |
| 142 | + " )\n", |
| 143 | + "\n", |
131 | 144 | " # RoseTTAFold-All-Atom results\n", |
132 | 145 | " globals()[f\"rfaa_astex_bust_results_csv_filepath_{repeat_index}\"] = os.path.join(\n", |
133 | 146 | " globals()[\"rfaa_output_dir\"],\n", |
|
192 | 205 | " \"bust_results.csv\",\n", |
193 | 206 | " )\n", |
194 | 207 | "\n", |
195 | | - " # NeuralPLexer3 (Single-Seq) results\n", |
196 | | - " globals()[f\"neuralplexer3_ss_astex_bust_results_csv_filepath_{repeat_index}\"] = os.path.join(\n", |
197 | | - " globals()[\"neuralplexer3_output_dir\"],\n", |
198 | | - " f\"neuralplexer3_ss_astex_diverse_outputs_{repeat_index}\",\n", |
199 | | - " \"bust_results.csv\",\n", |
200 | | - " )\n", |
201 | | - " globals()[f\"neuralplexer3_ss_astex_relaxed_bust_results_csv_filepath_{repeat_index}\"] = (\n", |
202 | | - " os.path.join(\n", |
203 | | - " globals()[\"neuralplexer3_output_dir\"],\n", |
204 | | - " f\"neuralplexer3_ss_astex_diverse_outputs_{repeat_index}_relaxed\",\n", |
205 | | - " \"bust_results.csv\",\n", |
206 | | - " )\n", |
207 | | - " )\n", |
208 | | - "\n", |
209 | | - " # NeuralPLexer3 results\n", |
210 | | - " globals()[f\"neuralplexer3_astex_bust_results_csv_filepath_{repeat_index}\"] = os.path.join(\n", |
211 | | - " globals()[\"neuralplexer3_output_dir\"],\n", |
212 | | - " f\"neuralplexer3_astex_diverse_outputs_{repeat_index}\",\n", |
213 | | - " \"bust_results.csv\",\n", |
214 | | - " )\n", |
215 | | - " globals()[f\"neuralplexer3_astex_relaxed_bust_results_csv_filepath_{repeat_index}\"] = (\n", |
216 | | - " os.path.join(\n", |
217 | | - " globals()[\"neuralplexer3_output_dir\"],\n", |
218 | | - " f\"neuralplexer3_astex_diverse_outputs_{repeat_index}_relaxed\",\n", |
219 | | - " \"bust_results.csv\",\n", |
220 | | - " )\n", |
221 | | - " )\n", |
222 | | - "\n", |
223 | 208 | "# Mappings\n", |
224 | 209 | "method_mapping = {\n", |
225 | 210 | " \"vina_p2rank\": \"P2Rank-Vina\",\n", |
226 | 211 | " \"diffdock\": \"DiffDock-L\",\n", |
227 | 212 | " \"dynamicbind\": \"DynamicBind\",\n", |
| 213 | + " \"neuralplexer\": \"NeuralPLexer\",\n", |
228 | 214 | " \"rfaa\": \"RoseTTAFold-AA\",\n", |
229 | 215 | " \"chai-lab_ss\": \"Chai-1-Single-Seq\",\n", |
230 | 216 | " \"chai-lab\": \"Chai-1\",\n", |
231 | 217 | " \"alphafold3_ss\": \"AF3-Single-Seq\",\n", |
232 | 218 | " \"alphafold3\": \"AF3\",\n", |
233 | | - " \"neuralplexer3_ss\": \"NP3-Single-Seq\",\n", |
234 | | - " \"neuralplexer3\": \"NP3\",\n", |
235 | 219 | "}\n", |
236 | 220 | "\n", |
237 | 221 | "method_category_mapping = {\n", |
238 | 222 | " \"vina_p2rank\": \"Conventional blind\",\n", |
239 | 223 | " \"diffdock\": \"DL-based blind\",\n", |
240 | 224 | " \"dynamicbind\": \"DL-based blind\",\n", |
| 225 | + " \"neuralplexer\": \"DL-based blind\",\n", |
241 | 226 | " \"rfaa\": \"DL-based blind\",\n", |
242 | 227 | " \"chai-lab_ss\": \"DL-based blind\",\n", |
243 | 228 | " \"chai-lab\": \"DL-based blind\",\n", |
244 | 229 | " \"alphafold3_ss\": \"DL-based blind\",\n", |
245 | 230 | " \"alphafold3\": \"DL-based blind\",\n", |
246 | | - " \"neuralplexer3_ss\": \"DL-based blind\",\n", |
247 | | - " \"neuralplexer3\": \"DL-based blind\",\n", |
248 | 231 | "}" |
249 | 232 | ] |
250 | 233 | }, |
|
522 | 505 | "colors = [\"#AB8042\", \"#FB8072\", \"#BEBADA\", \"#FCCDE5\"]\n", |
523 | 506 | "\n", |
524 | 507 | "bar_width = 0.5\n", |
525 | | - "r1 = [item - 0.5 for item in range(2, 22, 2)]\n", |
| 508 | + "r1 = [item - 0.5 for item in range(2, 20, 2)]\n", |
526 | 509 | "r2 = [x + bar_width for x in r1]\n", |
527 | 510 | "r3 = [x + bar_width for x in r2]\n", |
528 | 511 | "\n", |
|
900 | 883 | "\n", |
901 | 884 | "# add labels, titles, ticks, etc.\n", |
902 | 885 | "axis.set_ylabel(\"Percentage of predictions\")\n", |
903 | | - "axis.set_xlim(1, 21 + 0.1)\n", |
| 886 | + "axis.set_xlim(1, 19 + 0.1)\n", |
904 | 887 | "axis.set_ylim(0, 150)\n", |
905 | 888 | "\n", |
906 | 889 | "assert all(\n", |
|
1035 | 1018 | "axis.grid(axis=\"y\", color=\"#EAEFF8\")\n", |
1036 | 1019 | "axis.set_axisbelow(True)\n", |
1037 | 1020 | "\n", |
1038 | | - "axis.set_xticks([2, 2 + 1e-3, 4, 6, 8, 10, 12, 12 + 1e-3, 14, 16, 18, 20])\n", |
| 1021 | + "axis.set_xticks([2, 2 + 1e-3, 4, 6, 8, 10, 11, 12, 14, 16, 18])\n", |
1039 | 1022 | "axis.set_xticks([1 + 0.1], minor=True)\n", |
1040 | 1023 | "axis.set_xticklabels(\n", |
1041 | 1024 | " [\n", |
1042 | 1025 | " \"P2Rank-Vina\",\n", |
1043 | 1026 | " \"Conventional blind\",\n", |
1044 | 1027 | " \"DiffDock-L\",\n", |
1045 | 1028 | " \"DynamicBind\",\n", |
| 1029 | + " \"NeuralPLexer\",\n", |
1046 | 1030 | " \"RoseTTAFold-AA\",\n", |
| 1031 | + " \"DL-based blind\",\n", |
1047 | 1032 | " \"Chai-1-Single-Seq\",\n", |
1048 | 1033 | " \"Chai-1\",\n", |
1049 | | - " \"DL-based blind\",\n", |
1050 | 1034 | " \"AF3-Single-Seq\",\n", |
1051 | 1035 | " \"AF3\",\n", |
1052 | | - " \"NP3-Single-Seq\",\n", |
1053 | | - " \"NP3\",\n", |
1054 | 1036 | " ]\n", |
1055 | 1037 | ")\n", |
1056 | 1038 | "\n", |
|
1062 | 1044 | "axis.tick_params(axis=\"y\", which=\"major\", left=\"off\", right=\"on\", color=\"#EAEFF8\")\n", |
1063 | 1045 | "\n", |
1064 | 1046 | "# vertical alignment of xtick labels\n", |
1065 | | - "vert_alignments = [0.0, -0.1, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1, 0.0, 0.0, 0.0, 0.0]\n", |
| 1047 | + "vert_alignments = [0.0, -0.1, 0.0, 0.0, 0.0, 0.0, -0.1, 0.0, 0.0, 0.0, 0.0]\n", |
1066 | 1048 | "for tick, y in zip(axis.get_xticklabels(), vert_alignments):\n", |
1067 | 1049 | " tick.set_y(y)\n", |
1068 | 1050 | "\n", |
|
0 commit comments