You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Thanks for this awesome tool! I'm running regioneR with these 2 functions: commonRegions() and overlapPermTest(), but the p-value is the same for different groups of overlapPermTest().
First, DRR_region and DEG_region are two different datasets containing 5 clusters respectively, which are formed by chr, start and end. I turned my gene regions from data.frame() to formats that can be recognized by overlapPermTest()
What you are getting is correct. Let me explain: regioneR uses an empirical p-value computation. That is, instead of creating a model and evaluating your data against the model, "simply" creates many random datasets and checks how often we see something similar to your original data. If we do not see it often, it means that your data is "special" (we see something that we should not see by chance). The p-value depends on the number of random datasets we create (ntimes) and the number of times we see something similar to your original observations. The p-value you are repeatedly getting is the smallest p-value you can get with only 1000 permutations. If you increase this value to 5000, for example, you might get more different p-values. That being said, at some point, it might even not really matter how small the p-value is if it's below a certain threshold.
In addition to this, it is possible (and expected) that the same pvalues produce different zscores in the different datasets. These two values are related but not directly linked.
In addition to that, if I understand correctly you are using commonRegions only to transfrom your data. You do not need to do that. overlapPermTest should be able to automatically transform de data.frames into GenomicRanges, and if you want to make the transformation explicit, you can use the toGRanges function as:
Hello,
Thanks for this awesome tool! I'm running regioneR with these 2 functions: commonRegions() and overlapPermTest(), but the p-value is the same for different groups of overlapPermTest().
First, DRR_region and DEG_region are two different datasets containing 5 clusters respectively, which are formed by chr, start and end. I turned my gene regions from data.frame() to formats that can be recognized by overlapPermTest()
Then, I used overlapPermTest() to test the 5 clusters of DRR_region and the 5 clusters of DEG_region respectively.
Last, I got the p-value and z-score.
But the p-values of C21-C55 are the same while z-score are different. The following is specific output.
How do I get the correct p-value?
Looking forward to your reply, I would appreciate it if you could help me.
Thanks,
Jia Chen
The text was updated successfully, but these errors were encountered: