 Porphyrias may also be classified by whether the liver or bone marrow is affected.Diagnosis is typically made by blood, urine, and stool tests.Genetic testing may be done to determine the specific mutation.