Script and text file for creating Tags & TagGroups from Gene_Ontology te...

In order to test how OMERO and the clients handle a large number of Tags, this script generates tags from the Gene Ontology terms. There are about 36,000 terms which can be used to make a similar number of Tags (without Tag Groups).

Alternatively, the current version of the script attempts to create Tag Groups and Tags. Tags are created using only GO terms that are "leaf nodes" of the GO hierarchy and their parents are Tag Groups (no orphaned Tags are created).

Although Insight seems to handle the first scenario OK, it fails when we create Tag Groups using the whole GO. Therefore, there is a ``` MAX_TERM_COUNT = 10000 ``` parameter to limit the number of Tags we create.

The text file that contains the terms is a "stripped down" copy of the gene_ontology.1_2.obo.txt file, keeping only the lines used by the script.