Simultaneously, single-gene GSEA results and immune cell infiltration analysis unveiled immune dysregulation in both DCM and MG, with MID1IP1 and PIK3IP1 showing significant associations with invasive immune cells. This evidence concerns the gene MID1IP1 and familial dilated cardiomyopathy.