Distinct disorders affecting the brain share common genetic origins