The clusterProfiler package has the function dropGO to exclude terms from the plotting but is there also a method so select the terms one wants to show?
Im asking because in my cellular component enrichment I have multiple occurrences of eg granule subsets and would specifically choose only non redundant ones (simplify unfortunately can not differentiate here enough to exclude overlaps).
I tried the following:
excludeCCdown <- down_CC@compareClusterResult$Description remove <- c(5, 7, 11, 15, 16, 125) #contains terms I want to keep excludeCCdown <- excludeCCdown[! excludeCCdown %in% remove] granules_CC_down <- dropGO(down_CC, term = excludeCCdown)
However, the resulting granulesCCdown still contains all the dropped terms.
Thanks for your help! Sebastian