Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2020-10-16 10:23:18
Size: 1321
Editor: JanErik
Comment:
Revision 5 as of 2020-10-16 11:21:32
Size: 1351
Editor: SimoneSavoia
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Generation of UUIDs for 706 File Format = = Generation of UUIDs for 706 and 711 Files Format =
Line 3: Line 3:
The metadata id in GenoEx is a '''UUID''', which is a general standard for creating unique identifiers (https://en.wikipedia.org/wiki/Universally_unique_identifier).
The program gxprep.py provided by Interbull Centre automatically creates the UUIDs for the genotyped animals and includes them in the 706 File. If the User creates the 706 File without using the gxprep.py program, then UUIDs need to be generated in some other way.
The metadata id in !GenoEx is a '''UUID''', which is a general standard for creating unique identifiers (https://en.wikipedia.org/wiki/Universally_unique_identifier).
The program gxprep.py provided by Interbull Centre automatically creates the UUIDs for the genotyped animals and includes them in the 706 and 711 Files. If the User creates the 706 and 711 Files without using the gxprep.py program, then UUIDs need to be generated in some other way.
Line 18: Line 18:
 * It is a good idea to store the generated uuid with your other data, since it can be used to interface with GenoEx in the future, to address that particular data;  * It is a good idea to store the generated uuid with your other data, since it can be used to interface with !GenoEx in the future, to address that particular data;

Generation of UUIDs for 706 and 711 Files Format

The metadata id in GenoEx is a UUID, which is a general standard for creating unique identifiers (https://en.wikipedia.org/wiki/Universally_unique_identifier). The program gxprep.py provided by Interbull Centre automatically creates the UUIDs for the genotyped animals and includes them in the 706 and 711 Files. If the User creates the 706 and 711 Files without using the gxprep.py program, then UUIDs need to be generated in some other way.

Currently there are many ways to generate UUIDs:

  • using the Python uuid module;
  • using the linux uuidgen terminal command;
  • using the java UUID library;
  • using web services that create random uuids.

The best way to generate UUIDs depends on the programming language in use in the User's pipeline.

Please find below some additional and relevant information about UUIDs:

  • The UUIDs has to be version 4, which is a properly random uuid;

  • There is no practical risk of creating an already existing UUID, all generated ones will be guaranteed unique;
  • It is a good idea to store the generated uuid with your other data, since it can be used to interface with GenoEx in the future, to address that particular data;

  • The same uuid should be used in both the 706 and 711 input files for a specific genotype.

public/uuid (last edited 2020-10-16 13:39:02 by JanErik)