Prerequisites
Describe you issue
Hi, I have been exploring this package and once again stumbled on the strict decreasing only sort. Here is how to reproduce:
data("geneList", package="DOSE")
non_decreasing <-sort(geneList, decreasing=FALSE)
ReactomePA::gsePathway(non_decreasing,
pvalueCutoff = 0.2,
pAdjustMethod = "BH",
verbose = FALSE)
The above will throw the following error:
Error in GSEA_internal(geneList = geneList, exponent = exponent, minGSSize = minGSSize, :
geneList should be a decreasing sorted vector...
This is related to YuLab-SMU/DOSE#58. I also see that in a comment, there is some suggestion that this was fixed but looking at the code in DOSE, isSorted still only allows for a decreasing sort.
This is also related to PR YuLab-SMU/DOSE#59 where I had attempted to fix this.
Thank you,
NelsonGon
Ask in right place
Prerequisites
Describe you issue
Hi, I have been exploring this package and once again stumbled on the strict decreasing only sort. Here is how to reproduce:
The above will throw the following error:
This is related to YuLab-SMU/DOSE#58. I also see that in a comment, there is some suggestion that this was fixed but looking at the code in
DOSE,isSortedstill only allows for a decreasing sort.This is also related to PR YuLab-SMU/DOSE#59 where I had attempted to fix this.
Thank you,
NelsonGon
Ask in right place
ReactomePA