Open rahul799 opened 4 years ago
Hi @rahul799, glad to hear from you. First, some preliminaries, just so we know we are talking about the same thing:
RCyjs is not a shiny widget. It is an R package, hosted at bioconductor, which provides programmatic access to cytoscape.js (in the browser) via a websocket messaging system provided by BrowserViz.
cyjShiny is a proper shiny widget, built using the htmlwidgets package.
We don't expect RCyjs, in its current form, to work in a shiny app. Though both shiny & BrowserVia use the same underlying websocket library, there are other inconsistencies.
However! I want to consolidate the two packages - RCyjs and cyjShingy - so that BOTH are built upon htmlwidgets, and so that they share more code. I wish to do the same thing with igvR and igvShiny.
Can you acquaint me with your goals? I may be able to help you reach them quickly. Maybe cyjShiny already provides what you need, or could be easily extended to do so.
Looking forward to hearing from you!
Hey @paul-shannon, thank you for taking out time and helping me. cyjShiny is an excellent widget & by using that, I am able to achieve all my goals. Thanks a ton for developing such a great package.
Hi @rahul799,
Glad to hear the package is useful. I am getting ready (despite delays) to refactor RCyjs and cyjShiny into the same package, hoping that works out. If you find bugs or missing features, please let me know.
1) I was trying to call different functions of the Rcyjs package from the shiny app & till now everything is working fine except the layout() function. Although It is not showing any error, but it is not working. But whenever I am calling that function from the console (outside the shiny app), it is working fine.
2) Is there a way to render the visualization inside the shiny app ( maybe in the main panel ) as right now, it opens like a pop up running on some different ports in the browser. If No, then can we add some more buttons & dropdowns (like choose the layout, choose color) near the graph?
Thank you