text: Most organisms synthesize NAD from simple components. The specific set of reactions differs among organisms, but a common feature is the generation of quinolinic acid (QA) from an amino acideither tryptophan (Trp) in animals and some bacteria, or aspartic acid (Asp) in some bacteria and plants. The quinolinic acid is converted to nicotinic acid mononucleotide (NaMN) by transfer of a phosphoribose moiety. An adenylate moiety is then transferred to form nicotinic acid adenine dinucleotide (NaAD). Finally, the nicotinic acid moiety in NaAD is amidated to a nicotinamide (Nam) moiety, forming nicotinamide adenine dinucleotide.
  In a further step, some NAD is converted into NADP by NAD kinase, which phosphorylates NAD. In most organisms, this enzyme uses adenosine triphosphate (ATP) as the source of the phosphate group, although several bacteria such as Mycobacterium tuberculosis and a hyperthermophilic archaeon Pyrococcus horikoshii, use inorganic polyphosphate as an alternative phosphoryl donor.