Children and young adults with a specific variant of the PTPRD gene are at greater risk of developing obsessive-compulsive disorder.