Correction to: Communications Biology https://doi.org/10.1038/s42003-024-07292-1, published online 19 December 2024

In the version of the article initially published, due to an inconsistency in the IDs assigned to the binding affinity cases in one post-processing step for the CNN outputs, the previously reported performances of the CNN in Fig. 2D were erroneous. The amended plot represents the correct per-allele performances for the CNN, which are more consistent with the performances of the other networks, especially for HLA-B*57:02 and HLA-C*07:02. The other networks’ performances were correct in the previous version of this plot and are therefore unchanged in this updated version, as shown in Fig. 1. Also, the order of the alleles on the x axis has been updated to more correctly represent the distance from the training set, using more decimal values to better separate alleles with similar distance.

Fig. 1 Original Fig. 2D

Fig. 1 Corrected Fig. 2D