quantification of the ratio of magnesium to creatinine in a sample, typically a urine sample, a proxy measure for Mg2+ homeostasis. The trait is magnesium:creatinine ratio measurement (EFO_0008449).