biobtree_enrich
Gene-set over-representation for a list of genes.
SYNTAX: biobtree_enrich(genes=["TP53","BRCA1",...], collection="C5:GO", limit=20)
USE FOR:
"Which GO term / pathway describes these genes?"
Gene-set enrichment from a list of HGNC symbols or IDs.
Returns MSigDB sets over-represented among the input genes using a hypergeometric test and BH-FDR, restricted to set sizes 5-500 and ranked by FDR, then fold enrichment (p is also reported).
DEFAULTS: collection="C5:GO" (GO BP/MF/CC); limit=20.
collection="C5:GO:BP" narrows to biological process, "C5:GO:MF" to molecular function, "C5:GO:CC" to cellular component.
GO-native mode uses GOA human annotations: collection="GO" (all namespaces) or "GO:BP" / "GO:MF" / "GO:CC". Use this when a term is missing from the MSigDB C5 collections.
Other MSigDB collections: "C2:CP:REACTOME", "C2:CP:PID", "C2:CGP", "H", etc.
Inputs must be HGNC symbols/IDs. Official symbols are resolved exactly (an ambiguous symbol such as "AR" is not expanded to every alias hit). Use biobtree_map first if you only have Ensembl/UniProt IDs.
If
truncatedis true the internal page limit was reached before all input pages were read; split the gene list and re-run.
RETURNS: query summary + ranked terms {id, name, collection, go_id,
exact_source, overlap, set_size, fold, p, fdr}. go_id is present whenever
the set maps to a GO term (always for GO-native mode) and exact_source is the
MSigDB source term; cite them instead of recalling IDs. query.input_genes
echoes the inputs, query.genes are the resolved HGNC ids, and not_found
lists inputs that did not map.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"genes": "<genes>"
},
"name": "biobtree_enrich"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| genes | Yes | HGNC symbols or IDs | |
| limit | No | Maximum enriched terms to return (default 20, max 100) | |
| collection | No | Collection (default C5:GO; also C5:GO:BP/MF/CC, C2:CP:REACTOME, C2:CGP, H, ...; GO-native: GO, GO:BP/MF/CC) |