I wish to know how I can cluster hierarchically gene Ontology terms for the following type of data. I have GO (BP) terms enriched from two experiments (CondA and CondB). The values are -log10 P-values for the term enrichment . I wish to (hierachically) cluster the table along the rows i.e by the GO terms.
Can anybody suggest some code/packages etc.?