Skip to content
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

pandaR function is missing from the netZooR code for R functionality not using python integration #224

Closed
jordanwhitlock opened this issue Oct 28, 2021 · 4 comments

Comments

@jordanwhitlock
Copy link

jordanwhitlock commented Oct 28, 2021

Was looking to use lioness with panda from the netZooR package. Saw that there was a recent update 18 days ago to this github repository. When looking through the netZooR source code at https://rdrr.io/github/netZoo/netZooR/api/ , I noticed that the pandaR function is no longer listed, only panda.py

Furthermore, when trying to implement panda within lioness using R studio without the reticulate integration to run python through R, the lioness example listed here: https://rdrr.io/github/QuackenbushLab/pandaR/man/lioness.html is not functional, I believe becasue it is trying to call on the panda function within netZooR, which is no longer present. As a result the following error is presented while trying to generate the regulatory network within panda:

Error in tfCoopNetwork[Idx] <- ppi[, 3] : NAs are not allowed in subscripted assignments

I have run into this error previously running panda on its own, and it was being caused by “Idx <- (Idx2-1)*num.TFs+Idx1” in the TFnetwork generating code of the panda function. It’s is because the previous 2 lines with match don’t work as the code author things they do, they introduce NAs. This was priorly addressed by an update to the netZooR package. Any assitance on this would be greatly appreciated!

@marouenbg
Copy link
Collaborator

Hi @jordanwhitlock ,
Thanks for using netZoo, we've been updating the package recently and I am waiting for the final tests to run. I will reach out to you later today for a fix to this bug.
Marouen

@jordanwhitlock
Copy link
Author

jordanwhitlock commented Oct 29, 2021 via email

@marouenbg
Copy link
Collaborator

Hi @jordanwhitlock ,

This documentation website ( https://rdrr.io/github/netZoo/netZooR/api/ ) might take some time to update. We're maintaining our R package docs on https://netzoo.github.io/netZooR/.

panda() is a pure R function that is provided by the pandaR package, which means it is not exported by the netZooR package, however it is loaded at the same time with netZooR (library(netZooR)) because it is set as a dependency.

I just tried the lioness example in this vignette (https://rdrr.io/github/QuackenbushLab/pandaR/man/lioness.html ) and it worked for me on R4.1. Try installing netZooR again and see if ?panda works and let me know if you have any questions!

Marouen

@marouenbg
Copy link
Collaborator

HI @jordanwhitlock ,
Feel free to reopen the issue if your question has not been answered.
Marouen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants