Thyroid hormone and estrogen signaling, hepatitis B and MAPK pathways were enriched in CD4+ T cells from RA, while primary immunodeficiency pathway was significantly enriched in SLE. Here, CD4 is linked to inborn error of immunity.