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

Support for local files #62

Open
mf-rug opened this issue Feb 1, 2025 · 0 comments
Open

Support for local files #62

mf-rug opened this issue Feb 1, 2025 · 0 comments

Comments

@mf-rug
Copy link

mf-rug commented Feb 1, 2025

As far as I can, the molecule source is currently required to be a www URL / database id. It would add a lot of value to this promising package if it also supported local file input.
The code comments mention this

#' The `file` parameter is supported by the react library, but it should not
#' be used in Shiny.```

But I'm unsure why this is.

Note that I managed to circumvent the issue by placing the local in file in the app's www/ folder and then:

pdb_url <- paste0(session$clientData$url_protocol, "//",
                  session$clientData$url_hostname, ":",
                  session$clientData$url_port, "/",
                  pdb_filename)

Molstar(url = pdb_url, useInterface = TRUE, showControls = TRUE)

But native support would be great. Thanks!

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

1 participant