A DNA test could help match patients with psychiatric medications, potentially reducing the long and frustrating trial-and-error process.