YuLab-SMU / clusterProfiler

:bar_chart: A universal enrichment tool for interpreting omics data
https://yulab-smu.top/biomedical-knowledge-mining-book/
1.01k stars 253 forks source link

When there's only one term ID in the dataframe passed as TERM2GENE in enricher #657

Open mansi-aggarwal-2504 opened 8 months ago

mansi-aggarwal-2504 commented 8 months ago

Hello, I was trying to reproduce the example for custom annotated gene list given here. I downloaded the data from the given url in the example. I was able to get a similar result and I understand the GeneRatio and BgRatio.

Screenshot 2024-01-11 at 8 12 56 pm

But my case has a single term ID - I pass a TF's target genes in column 2, and column 1 is my annotation “TF”, which is the same for all rows. Input is a list of genes. I wanted to check if the overlap between these two lists is significant.

I try to reproduce it with the example in the documentation.

But I don't understand GeneRatio and BgRatio now, which is what I was getting in my case as well.

Screenshot 2024-01-12 at 1 10 13 pm

Could someone explain me the output when there's only one term ID in TERM2GENE input?