<%= term._highlightResult.name.value %>
Alternative to PSEA
I tried once using mouse sample which seemed to work.
But if you can work in R then you should try GSVA tool which seem to be more flexible in that sense that you can feed you're own categories. Check out this link for more info https://www.rdocumentation.org/packages/GSVA/versions/1.20.0/topics/gsva
and this one too https://bioconductor.org/packages/release/bioc/html/GSVA.html