The present application relates to a process for the preparation of a compound of formula (I), (II), (III), (IV), (V), (VI), (IIIa), (IIIb), (IIIc), (IIId) IIIf), and (IIIg). The compound of formula (I) has the structure wherein Q, R1, R18, R19, M, A and Y are as defined herein. The compounds of the present application are capable of modulating the activity of histone demethylase (HDME) and may be useful for the prevention and / or treatment of diseases in which dysregulation of the genome is involved in pathogenesis, eg cancer .本出願は、式(I)、(II)、(III)、(IV)、(V)、(VI)、(IIIa)、(IIIb)、(IIIc)、(IIId)、(IIIe)、(IIIf)、および(IIIg)の化合物である化合物に関する。式(I)の化合物は、下記構造を有し、式中、Q、R1、R18、R19、M、AおよびYは、本明細書に定義されているとおりである。本出願の化合物は、ヒストンデメチラーゼ(HDME)の活性をモジュレートすることができ、ゲノムの調節不全が病態形成に関与する疾患、例えばがんの予防および/または処置に対して有用であり得る。