Using a pharmacogenomic algorithm to guide the treatment of depression