Researchers have identified a gene that may be responsible for both migraine and advanced sleep phase syndrome.