-
Notifications
You must be signed in to change notification settings - Fork 104
calculateLW needs to update rBind() to rbind() #512
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
Comments
I will give this a bump because the way this has to be fixed on the user's end is very tricky. As jdrnevich pointed out, this error occurs if graph_test is run when there are more than 10,000 cells, leading to the data being split into blocks, calling the defunct rBind function. If one were to copy the graph_test code, it will not work given monocle and its dependencies if you are intending to identify genes differentially expressed by pseudotime (i.e. using the argument Changing |
How did you solve this quesion? What should users do to avoid this now? @jdrnevich @mleventh |
I don't know, @Sophia409 - that's a question for @ctrapnell or @brgew to see if they ever fixed the bug. In my case, I just slightly increased my cell filtering criteria to get under 10K cells since I only had 10,084 cells to start. |
@Sophia409 I defined my own function called |
@mleventh Hi, thank you for your answer. I tried your method, but it has two problems.
Secondly, since I use R in windows system, I couldn't find src file in my library. |
Hi, sorry for some of the confusion! I also had re-instantiated the functions called by As for the src directory, what I had to do was go into my libs directory, find monocle3, make a src directory and put the Rccp file into it. I might suggest looking into your "libs" folder, finding monocle3 and making a src directory to put the Rccp file. |
Describe the bug
I had a similar issue to #509 when running
graph_test()
and getting the errorError: 'rBind' is defunct.
. I tried KforKuma's solution of rebooting my computer but still had the same error. Again, like KforKuma,traceback()
indicatedcalculateLW()
is where the error occurred. Looking at the code formonocle3:::calculateLW()
, it hard-codesblock_size <- 10000
and then runs a for loop on the blocks then usesMatrix::rBind()
at the end of the for loop. My data set has 10,084 cells butgraph_test()
works if I subset it to 9999 cells.To Reproduce
The code that produced the bug:
traceback()
After the error, run traceback() in R and post the output:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
sessionInfo():
Run sessionInfo() in R and post the output
Additional context
You probably just need to replace
Matrix::rBind
withrbind
incalculateLW()
and any other functions it may be in. Thanks!The text was updated successfully, but these errors were encountered: