You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is Lovastatin and explain in detail?
Lovastatin, sold under the brand name Mevacor among others, is a statin medication, to treat high blood cholesterol and reduce the risk of cardiovascular disease. Its use is recommended together with lifestyle changes. It is taken by mouth.Common side effects include diarrhea, constipation, headache, muscles pains, rash, and trouble sleeping. Serious side effects may include liver problems, muscle breakdown, and kidney failure. Use during pregnancy may harm the baby and use during breastfeeding is not recommended. It works by decreasing the livers ability to produce cholesterol by blocking the enzyme HMG-CoA reductase.Lovastatin was patented in 1979 and approved for medical use in 1987. It is on the World Health Organizations List of Essential Medicines. It is available as a generic medication. In 2019, it was the 95th most commonly prescribed medication in the United States, with more than 8 million prescriptions.

Medical uses
The primary uses of lovastatin is for the treatment of dyslipidemia and the prevention of cardiovascular disease. It is recommended to be used only after other measures, such as diet, exercise, and weight reduction, have not improved cholesterol levels.

Side effects
Lovastatin is usually well tolerated, with the most common side effects being, in approximately descending order of frequency: creatine phosphokinase elevation, flatulence, abdominal pain, constipation, diarrhoea, muscle aches or pains, nausea, indigestion, weakness, blurred vision, rash, dizziness and muscle cramps. As with all statin drugs, it can rarely cause myopathy, hepatotoxicity (liver damage), dermatomyositis or rhabdomyolysis. This can be life-threatening if not recognised and treated in time, so any unexplained muscle pain or weakness whilst on lovastatin should be promptly mentioned to the prescribing doctor. Other uncommon side effects that should be promptly mentioned to either the prescribing doctor or an emergency medical service include:

These less serious side effects should still be reported if they persist or increase in severity:

Contraindications
Contraindications, conditions that warrant withholding treatment with lovastatin, include pregnancy, breast feeding, and liver disease. Lovastatin is contraindicated during pregnancy (Pregnancy Category X); it may cause birth defects such as skeletal deformities or learning disabilities. Owing to its potential to disrupt infant lipid metabolism, lovastatin should not be taken while breastfeeding. Patients with liver disease should not take lovastatin.

Interactions
As with atorvastatin, simvastatin, and other statin drugs metabolized via CYP3A4, drinking grapefruit juice during lovastatin therapy may increase the risk of side effects. Components of grapefruit juice, the flavonoid naringin, or the furanocoumarin bergamottin inhibit CYP3A4 in vitro, and may account for the in vivo effect of grapefruit juice concentrate decreasing the metabolic clearance of lovastatin, and increasing its plasma concentrations.

Mechanism of action
Lovastatin is an inhibitor of 3-hydroxy-3-methylglutaryl-coenzyme A reductase (HMG-CoA reductase), an enzyme that catalyzes the conversion of HMG-CoA to mevalonate.
Mevalonate is a required building block for cholesterol biosynthesis and lovastatin interferes with its production by acting as a reversible competitive inhibitor for HMG-CoA, which binds to the HMG-CoA reductase. Lovastatin is a prodrug, an inactive lactone in its native form, the gamma-lactone closed ring form in which it is administered, is hydrolysed in vivo to the β-hydroxy acid open ring form; which is the active form.
Lovastatin and other statins have been studied for their chemopreventive and chemotherapeutic effects. No such effects were seen in the early studies. More recent investigations revealed some chemopreventive and therapeutic effects, for certain types of cancer, especially in combination of statins with other anticancer drugs. It is likely that these effect are mediated by the properties of statins to reduce proteasome activity, leading to an accumulation of cyclin-dependent kinase inhibitors p21 and p27, and to subsequent G1-phase arrest, as seen in cells of different cancer lines.

History
Compactin and lovastatin, natural products with a powerful inhibitory effect on HMG-CoA reductase, were discovered in the 1970s, and taken into clinical development as potential drugs for lowering LDL cholesterol.In 1982, some small-scale clinical investigations of lovastatin, a polyketide-derived natural product isolated from Aspergillus terreus, in very high-risk patients were undertaken, in which dramatic reductions in LDL cholesterol were observed, with very few adverse effects. After the additional animal safety studies with lovastatin revealed no toxicity of the type thought to be associated with compactin, clinical studies continued.
Large-scale trials confirmed the effectiveness of lovastatin. Observed tolerability continued to be excellent, and lovastatin was approved by the US FDA in 1987. It was the first statin approved by the FDA.Lovastatin is also naturally produced by certain higher fungi, such as Pleurotus ostreatus (oyster mushroom) and closely related Pleurotus spp.  Research into the effect of oyster mushroom and its extracts on the cholesterol levels of laboratory animals has been extensive, although the effect has been demonstrated in a very limited number of human subjects.In 1998, the FDA placed a ban on the sale of dietary supplements derived from red yeast rice, which naturally contains lovastatin, arguing that products containing prescription agents require drug approval.  Judge Dale A. Kimball of the United States District Court for the District of Utah, granted a motion by Cholestins manufacturer, Pharmanex, that the agencys ban was illegal under the 1994 Dietary Supplement Health and Education Act because the product was marketed as a dietary supplement, not a drug.

The objective is to decrease excess levels of cholesterol to an amount consistent with maintenance of normal body function. Cholesterol is biosynthesized in a series of more than 25 separate enzymatic reactions that initially involves three successive condensations of acetyl-CoA units to form the six-carbon compound 3-hydroxy-3-methylglutaryl coenzyme A (HMG CoA). This is reduced to mevalonate and then converted in a series of reactions to the isoprenes that are building-blocks of squalene, the immediate precursor to sterols, which cyclizes to lanosterol (a methylated sterol) and further metabolized to cholesterol. A number of early attempts to block the synthesis of cholesterol resulted in agents that inhibited late in the biosynthetic pathway between lanosterol and cholesterol. A major rate-limiting step in the pathway is at the level of the microsomal enzyme that catalyzes the conversion of HMG CoA to mevalonic acid, and that has been considered to be a prime target for pharmacologic intervention for several years.HMG CoA reductase occurs early in the biosynthetic pathway and is among the first committed steps to cholesterol formulation. Inhibition of this enzyme could lead to accumulation of HMG CoA, a water-soluble intermediate that is, then, capable of being readily metabolized to simpler molecules. This inhibition of reductase would lead to accumulation of lipophylic intermediates with a formal sterol ring.
Lovastatin was the first specific inhibitor of HMG CoA reductase to receive approval for the treatment of hypercholesterolemia. The first breakthrough in efforts to find a potent, specific, competitive inhibitor of HMG CoA reductase occurred in 1976, when Endo et al. reported the discovery of mevastatin, a highly functionalized fungal metabolite, isolated from cultures of Penicillium citrium.

Biosynthesis
The biosynthesis of lovastatin occurs via an iterative type I polyketide synthase (PKS) pathway. The six genes that encode enzymes that are essential for the biosynthesis of lovastatin are lovB, lovC, lovA, lovD, lovG, and lovF . The synthesis of dihydromonacolin L requires a total of 9-malonyl Coa . It proceeds in the PKS pathway until it reaches (E) a hexaketide, where it undergoes a Diels-Alder cycloaddition to form the fused rings. After cyclization it continues through the PKS pathway until it reaches (I) a nonaketide, which then undergoes release from LovB through the thioesterase encoded by LovG. Dihydromonacolin L, (J), then undergoes oxidation and dehydration via a cytochrome P450 oxygenase encoded by LovA to obtain monacolin J, (L).
The MT domain from lovB is active in the conversion of (B) to (C) when it transfers a methyl group from S-adenosyl-L-methionine (SAM) to the tetraketide (C) . Owing to the fact that LovB contains an inactive ER domain, LovC is required at specific steps to obtain fully reduced products. The domain organization of LovB, LovC, LovG and LovF is shown in Figure 2. The inactive ER domain of lovB is shown with an oval and where LovC acts in trans to LovB is shown with a red box.
In a parallel pathway, the diketide side chain of lovastatin is synthesized by another highly reducing type I polyketide synthase enzyme encoded by LovF . Lastly, the side chain, 2-methylbutyrate (M) is covalently attached to C-8 hydroxy group of monacolin J (L) by a transesterase encoded by LovD to form lovastatin.

Total synthesis
A major bulk of work in the synthesis of lovastatin was done by M. Hirama in the 1980s.
Hirama synthesized compactin and used one of the intermediates to follow a different path to get to lovastatin. The synthetic sequence is shown in the schemes below