Graphically Represent p-values from plot_annot_score in package GOfuncR
1
0
Entering edit mode
rbenel ▴ 40
@rbenel-13642
Last seen 2.2 years ago
Israel

In the tutorial it mentions that plot_anno_scores returns an invisible dataframe that contains the stats from Fisher’s exact test shown in the plot. I was wondering if there was a way to extract this dataframe? It would also be helpful if one could manipulate the plot... for example, I would like to graphically display the p-values associated with each GO term. 

Thanks!

GOfuncR plot_anno_scores plot_stats • 955 views
ADD COMMENT
0
Entering edit mode
@steffi_grote-8515
Last seen 6.1 years ago
Germany

Hi rbenel,

if objects are returned "invisibly" it means that they are not printed to the screen when they are not assigned to a variale. That is plot_anno_scores(res, go_ids) does not print the dataframe to the console, but stats = plot_anno_scores(res, go_ids) would store the dataframe in variable stats as usual. However, those values are more thought of as additional information. The familiy-wise error rates (FWER) from go_enrich() should be reported for whether a category is enriched for candidate genes or not. The p-values from Fisher's exact test are not corrected for multiple testing! Also, the FWER is reported for the one-sided test, i.e. you have FWER_underrep and FWER_overrep, wheareas the Fisher's exact test in plot_anno_scores is two-sided. It should be interpreted as a quick visual overview of how background and candidate genes are distributed in the categories and root nodes. Currently it is not possible to manipulate the plot. If you want to add text on top of the plot you could use text() (and maybe locator() to find the coordinates for text()).

Best, Steffi

ADD COMMENT
0
Entering edit mode

Hi Steffi, 

Thanks for the response. I didn't realize that is what you meant by "invisible".. thanks for clarifying.

ADD REPLY

Login before adding your answer.

Traffic: 948 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6