Renamed d[p] to d[predicted] in m2score.R