Code for creating GENP datasets