Depression, drugs and alcohol, Inheritance