G6PD and G6PD deficiency: G6PD deficiency is caused by loss-of-function mutations in the G6PD gene and follows an X-linked recessive inheritance pattern.