-
Notifications
You must be signed in to change notification settings - Fork 43
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
empty custom panel plot from Gviz #426
Comments
tl;dr Basic Gviz doesn't work in the context of The official requirement for The problem is that Gviz's output doesn't follow that paradigm. It seems that we are expected to call Nonetheless, we can maneuver our way to a solution. Behold: CREATOR <- setClass("SuperGvizPlot", contains="list")
setMethod("show", "SuperGvizPlot", function(object) {
do.call(plotTracks, object)
}) And then in # End of CUSTOM_GVIZ
cat("coords:", chr, minCoord, maxCoord, plot_title, "\n", sep = " ")
CREATOR(list(tracks, chromosome = chr, from = minCoord,
to = maxCoord, main = plot_title,
transcriptAnnotation = "transcript", panel.only=TRUE,
min.width = 0, min.distance = 0, collapse = FALSE))
} And it should Just Work. A true solution would be to write a dedicated panel class that calls |
Thanks Aaron, Cheers, |
I'm trying to adapt to the latest iSEE version (2.0.0) the custom panel for displaying IGV tracks from github https://github.com/iSEE/iSEE_custom/tree/master/plot_coverage
I almost made it work (the modified code at https://github.com/sib-bcf/iSEE_test). When loading the app, the coverage tracks are displayed correctly. But, when I select a new gene from the Row Data Plot 1, then the track panel stays white. The gene selection is correctly passed to the custom panel function, and the plot is also correctly generated (as you can see from the code, I've added a few print statement and a pdf plot for checking). But, for some reason, the Gviz plot is not displayed in the iSEE panel.
First, the row data plot is reloading every time a new selection is made (and in the process, the custom function replots the default gene). Second, the Gviz plot is generated, but redirected to the R plot window [(i.e.,] the RStudio plot panel)
Thanks in advance for your help.
Cheers,
Paolo
PS: I'm running a fresh Rstudio install on docker. Here is the docker command:
docker run -d -p 8787:8787 -p 1234:1234 -v $PWD:/iSEE_APP bioconductor/bioconductor_docker:RELEASE_3_11
After, I installed the tidyverse and iSEE packages:
BiocManager::install(c("tidyverse", "iSEE", "Gviz"), ask = F)
Here is sessionInfo() output:
The text was updated successfully, but these errors were encountered: