Closed olkap closed 6 years ago
Agreed the error message can be more informative.
However, there is not much that eaBrowse
can do as in this case there are no significant gene sets:
> kegg.res.fdr$nr.sigs
[1] 0
> gsRanking(kegg.res.fdr, signif.only=FALSE)
DataFrame with 319 rows and 4 columns
GENE.SET GLOB.STAT NGLOB.STAT
<character> <numeric> <numeric>
1 hsa04622_RIG-I-like_receptor_signaling_pathway 4 0.0741
2 hsa05416_Viral_myocarditis 4 0.0727
3 hsa00053_Ascorbate_and_aldarate_metabolism 1 0.0714
4 hsa00910_Nitrogen_metabolism 1 0.0714
5 hsa05130_Pathogenic_Escherichia_coli_infection 3 0.0698
... ... ... ...
315 hsa05034_Alcoholism 0 0
316 hsa04915_Estrogen_signaling_pathway 0 0
317 hsa04261_Adrenergic_signaling_in_cardiomyocytes 0 0
318 hsa00230_Purine_metabolism 0 0
319 hsa04022_cGMP-PKG_signaling_pathway 0 0
P.VALUE
<numeric>
1 0.817762214983713
2 0.817762214983713
3 0.817762214983713
4 0.817762214983713
5 0.817762214983713
... ...
315 0.868164556962025
316 0.868164556962025
317 0.872470031545741
318 0.878754716981132
319 0.913
This is exactly the use case for the nr.show
argument, i.e. the choice of how many gene sets to display in such a case is left to the user.
A more informative error message has been introduced for this case in v2.10.10
The eaBrowse function generates an uninformative error, when there are no significant gene sets and nr.show is set to -1. Below is the sample code:
The message that appears after running eaBrowse:
sessionInfo():