> For the complete documentation index, see [llms.txt](https://jiawei-li.gitbook.io/sapbase-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jiawei-li.gitbook.io/sapbase-user-guide/analysis/gene-set-function-analysis.md).

# Gene Set Function Analysis

In the "Gene Set Function Analysis" function, users can specify the Sapindaceae species to be analyzed and upload the gene set file to be enriched, with one gene per line in the file, separated by line breaks. General gene set files are obtained through gene differential expression analysis. Finally, Sapbase will automatically perform <mark style="color:red;">**GO or KEGG enrichment analysis**</mark> on the gene set uploaded by the user, and the result file will be returned to the user by email.

### Input file format <a href="#input-file-format" id="input-file-format"></a>

First, select the Sapindaceae species to be analyzed. Then, fill in the correct email address to receive the results file. Finally, upload the prepared gene set file (differential gene list) and submit it for analysis. Note that enrichment analysis may take 5 to 10 minutes, please be patient.

Example of gene collection file format (<mark style="color:red;">**One gene per line, separated by newlines**</mark>):

{% code title="diff\_gene.xls" %}

```
LITCHI017025
LITCHI009663
LITCHI026770
LITCHI024511
LITCHI027338
LITCHI027651
LITCHI019895
LITCHI023451
LITCHI013203
LITCHI006504
LITCHI025147
LITCHI021165
LITCHI013273
LITCHI023196
LITCHI021742
LITCHI008053
LITCHI019343
LITCHI015417
LITCHI004972
LITCHI018530
LITCHI001190
LITCHI009045
```

{% endcode %}

<figure><img src="https://2683678643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6SrJByGpV4C6ZCz8w56R%2Fuploads%2FDrngnhvIM5snERwEIE57%2FGO_enrichment_demo.png?alt=media&amp;token=b9c75881-3853-4c8f-a34b-fe3641019e49" alt=""><figcaption></figcaption></figure>

### Output file format <a href="#output-file-format" id="output-file-format"></a>

The enrichment results are sent to the user via email. Please download the result table in the email attachment. All enrichment results in the "Enrichment.final" results table are filtered by the enrichment significance threshold.

<figure><img src="https://2683678643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6SrJByGpV4C6ZCz8w56R%2Fuploads%2FeLziPJkJjpKbhYGZyV3K%2FGO_enrichment_result_table_demo.png?alt=media&amp;token=5a83e50b-70b1-4e8e-8b25-0dbf67007668" alt=""><figcaption></figcaption></figure>

Demo:

<figure><img src="https://2683678643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6SrJByGpV4C6ZCz8w56R%2Fuploads%2FOzeVR6GRzikoAIwpf7m3%2FGO_enrichment_help.gif?alt=media&amp;token=1dadf813-a6b9-4cd8-845c-22b0cdddc124" alt=""><figcaption></figcaption></figure>
