When working with the vitessceR
package, you may encounter issues, particularly related to file formatting, file permissions, URL typos, etc. Below, we list some debugging methods that may help to resolve these bugs.
If none of these tips help, please write an issue on GitHub.
The following code snippets assume that vitessceR
has been loaded via library(vitessceR)
and the Vitessce configuration instance is stored in the variable vc
:
library(vitessceR) vc <- VitessceConfig$new(schema_version = "1.0.16", name = "My single-cell data visualization")
port
parametervc$widget(port = 9000)
status
component to the layoutstatus <- vc$add_view(dataset, Component$STATUS) vc$layout(hconcat(scatterplot, status))
vc_list <- vc$to_list() jsonlite::toJSON(vc_list, auto_unbox = TRUE)
If the Vitessce widget loads in the RStudio "Viewer" tab, but the data fails to load or there are issues related to the user interface, you can open the browser console to check for errors or warning messages.
To do so, right click in the Viewer area and select "Inspect Element."
Then, click "Console" in the inspector window that appears.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.