Scientists have discovered how genes create proteins in research which could aid the development of treatments for human diseases.