AGRN, DOK7, and SCN4A genes were associated with congenital myasthenic syndromes (CMS), the symptoms of which are significantly similar to the neurological features of AIP attacks. The gene discussed is AGRN; the disease is autoimmune pancreatitis.