The UK is conducting the world's largest research project on the genetics of people with rare diseases.