-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in pValues[tmp] <- -pValues[tmp]: NAs are not allowed in subscripted assignments #6
Comments
Interesting, have not seen this before! I suspect it has to do with some p-values being NA. Could you check your GSAres object and see what $pDistinctDirUp and $pDistinctDirDn are (or $pAdjDistinctDirUp/Dn if using adjusted p-values)? Try setting the ones that are NA to 1. Will this remove the error? |
Thanks for your quick response! I have also already suspected some p-values being NA and checked my input data but there didn't seem to be any NAs in my input data tables. Regarding my GSAres object, I exported the summary table generated with It also shows up using the following code:
So I then try to set the NAs to 1 using:
Unfortunately, I still receive the same error when running:
Strangely, when checking my
I assume that Many thanks for your help! |
Just to add to my previous comment. |
I seem to have found a (at least temporary) solution to solve the error. Replacing NAs in my
Interestingly,
However, interesting is that the error still seems to remain when calling the newer
Any ideas about this behaviour? |
Dear @varemo,
I currently run into the following error when trying to plot
networkPlot
ornetworkPlot2
withclass = "distinct"
anddirection = "both"
for a larger set of 5712 genes?Yet, it works fine when I plot
networkPlot
ornetworkPlot2
usingclass = "distinct"
but specifying a single direction (direction = "up"
ordirection = "down"
).Strangely, I don't encounter such issues when I run the same code but with a smaller (similar) data set of 968 genes?!
I'm a bit puzzled. Any ideas where the error might be?
Many thanks in advance,
Jan
The text was updated successfully, but these errors were encountered: