Probable inactive dehydrogenase; part of the gene cluster that mediates the biosynthesis of fungal ergot alkaloid. DmaW catalyzes the first step of ergot alkaloid biosynthesis by condensing dimethylallyl diphosphate (DMAP) and tryptophan to form 4-dimethylallyl-L-tryptophan. The second step is catalyzed by the methyltransferase easF that methylates 4-dimethylallyl-L-tryptophan in the presence of S-adenosyl-L-methionine, resulting in the formation of 4-dimethylallyl-L-abrine. The catalase easC and the FAD-dependent oxidoreductase easE then transform 4-dimethylallyl-L-abrine to chanoclavine-I which is further oxidized by easD in the presence of NAD(+), resulting in the formation of chanoclavine-I aldehyde. Agroclavine dehydrogenase easG then mediates the conversion of chanoclavine-I aldehyde to agroclavine via a non-enzymatic adduct reaction: the substrate is an iminium intermediate that is formed spontaneously from chanoclavine-I aldehyde in the presence of glutathione. The presence of easA is not required to complete this reaction. Further conversion of agroclavine to paspalic acid is a two-step process involving oxidation of agroclavine to elymoclavine and of elymoclavine to paspalic acid, the second step being performed by the elymoclavine oxidase cloA. Paspalic acid is then further converted to D-lysergic acid. Ergopeptines are assembled from D-lysergic acid and three different amino acids by the D-lysergyl-peptide-synthetases composed each of a monomudular and a trimodular nonribosomal peptide synthetase subunit. LpsB and lpsC encode the monomodular subunits responsible for D-lysergic acid activation and incorporation into the ergopeptine backbone. LpsA1 and A2 subunits encode the trimodular nonribosomal peptide synthetase assembling the tripeptide portion of ergopeptines. LpsA1 is responsible for formation of the major ergopeptine, ergotamine, and lpsA2 for alpha-ergocryptine, the minor ergopeptine of the total alkaloid mixture elaborated by C.purpurea. D-lysergyl-tripeptides are assembled by the nonribosomal peptide synthetases and released as N-(D-lysergyl-aminoacyl)-lactams. Cyclolization of the D-lysergyl-tripeptides is performed by the Fe(2+)/2-ketoglutarate-dependent dioxygenase easH which introduces a hydroxyl group into N-(D-lysergyl-aminoacyl)-lactam at alpha-C of the aminoacyl residue followed by spontaneous condensation with the terminal lactam carbonyl group