Vitamin B6 is a cofactor in many metabolic pathways including heme synthesis. Vitamin B6 deficiency may be observed in patients with metabolic disorders, secondary to therapeutic drug use, or alcoholism. Deficiency effects the function of the immune system.