The invention relates to novel heterocyclic compounds and pharmaceutical preparations thereof and the methods of treating or preventing cancer using the compounds of the invention. Other aspects relate to methods of identifying a cancer patient that may benefit from treatment with a glutaminase inhibitor comprising determining the ratio of glutamate to glutamine, the ratio of glutaminase enzyme to glutamine synthetase or glutaminase activity in cancer cells of the patient.