Epigenetics is a newer area of study that looks at how the traumas we face may change the way our genes are expressed. This is a good article written by the BBC that explores this area of study. It’s somewhat long, and definitely worth the read.
The take away that I’d like to highlight is that it’s not hopeless. Though some individuals may be at increased risk for certain issues; these can be addressed and “undone” through use of Cognitive Behavior Therapy, Dialectical Behavior Therapy, and Mindfulness.