Tests that can indicate a diagnosis of transverse myelitis and rule out or evaluate underlying causes include: Magnetic resonance imaging(MRI) produces a cross-sectional view or three-dimensional image of tissues, including the brain and spinal cord.