Heterozygous null mutation in HDAC5 moderated the effects of exposure to stress in early life on cocaine-mediated behavior. Heterozygous null mutation in HDAC5 moderates the effect of exposure to isolation but not to social threat in early age. Dorsal striatum mediates the interaction between heterozygous null mutation in HDAC5 and early isolation on cocaine-seeking.