Comparing genes that express at a different level and the protein network, we identified three key genes (CDKN1A, FKBP5 and SLC7A5) and pathways that mastitis includes both in clinical and subclinical form. Here, CDKN1A is linked to mastitis.