Four immune-associated candidate diagnostic genes (MARK2, CCDC71, GATA2, and KLRC3) were identified, and a nomogram for RIF with APS diagnosis was developed. The gene discussed is MARK2; the disease is autoimmune polyendocrinopathy.