As an example, we first generate a list of random GO IDs.
set.seed(88)
go_id = random_GO(500)
head(go_id)
# [1] "GO:0042981" "GO:0000338" "GO:0006929" "GO:0043161" "GO:0006353"
# [6] "GO:0046101"
Then generate the GO similarity matrix and split GO terms into clusters.
mat = GO_similarity(go_id)
simplify(mat)