Below is an instruction from Human. Write a response.
    ### Instruction:
    What are the genetic changes related to hypomagnesemia with secondary hypocalcemia ?
    ### Response:
    Hypomagnesemia with secondary hypocalcemia is caused by mutations in the TRPM6 gene. This gene provides instructions for making a protein that acts as a channel, which allows charged atoms (ions) of magnesium (Mg2+) to flow into cells; the channel may also allow small amounts of calcium ions (Ca2+) to pass into cells.
    