For patients with severe intellectual disability, the condition can be detected by looking only at their genes, researchers say.