A sweeping new study of psychiatric and genetic records has the potential to change treatment for millions of psychiatric patients.