Functional genetics of rare neurological disorders