molstar / mol-view-spec

https://molstar.org/mol-view-spec/
MIT License
8 stars 1 forks source link

how to load a local pdb file? #18

Closed luwei0917 closed 3 months ago

luwei0917 commented 4 months ago

this might be a very basic question. but I tried replacing builder.download with builder.parse_file, but doesn't work. Thanks.

JonStargaryen commented 4 months ago

Hi @luwei0917,

the builder only supports .download() and can't make use of local files. Your structure data must be publicly available via some URL. That's the only way for the specification to work when shared with other people who won't have access to your local file.

Hope that helps, Sebastian