Git Product home page Git Product logo

rcsb-saguaro-3d's People

Contributors

bioinsilico avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rcsb-saguaro-3d's Issues

Implementing support for multiple PDBs

Hi,

I would like to extend the assembly example to allow for assemblies across different PDB IDs (essentially, have a select box with a custom list of PDBs for filtering). From what I can tell the software seems to support such cases (perhaps using EntryAssembliesCollector?), but since I am only superficially familiar with TypeScript I don't know how I would go about implementing this.

Perhaps I have to use the RcsbFv3DCustom class for this, instead? I'd appreciate a few pointers in terms of what direction to take.

How can I update block config using RcsbFv3DCustom.updateConfig?

Hello, I'm in a team that's trying to use your saguaro-3d app to display papillomavirus protein structures along with some pairwise alignments and other associated data. We found this project when researching how to integrate molstar into our project, and it seems like you've already done a lot of the legwork, thank you so much.

I had a question about how to update the sequence panel block config after the initial object instantiation. We are using saguaro-3d as in your cdn-examples currently.

When I call the updateConfig function, I can change the sequence panel's title and subtitle, but not its blockConfig (for example to change the alignment shown, remove an Axis, change a color, etc.).

I made a jsfiddle with the single-chain example config, and a button with a handler that attempts to change the config. I assume it's something in the structure of the config I'm passing, but it seems like this conforms to the documentation.

What am I doing wrong?

Thanks again for all your great work.

Custom Mol* extension (with inner rcsb-molstar)

Hi,
I have a custom extension (with labeling and color theme).
How do I get rcsb-molstar to use this extension?

I attempted RcsbFv3DCustom constructor, but it can expect
built-in mol* extension names here, as I see:

params.structureConfig.structureViewerConfig.viewerProps.extensions:

("rcsb-assembly-symmetry" | "rcsb-validation-report" | "rscc" | "anvil-membrane-orientation" | "ma-quality-assessment" | "model-export" | "mp4-export" | "geo-export")[]

Furthermore, I guess, I should register the extension by the embedded PluginContext,
but I can't see any property to access underlying mol* viewer instance.

Best regards,
Csongor

Specifying the first displayed entity/chain in molstar using labelAsymId?

Hi @bioinsilico, continuing from before:

Is there a way to specify the sequence loaded into the molstar sequence panel (for example by labelAsymId) on startup?

I saw that there was a params and a props that seem to pass values to the molstar init, but I don't see any options that might relate to setting the initial state (e.g. chain, entity, etc) on the sequence pane.

Do you have any advice?

Thanks for your help

How to switch chains by code

I complete the rendering of the page through RcsbFv3D.assembly, and get the chain collection through onChangeCallback. Now I want to switch chain[A,B,C,D] through code. can you tell me how to do

CDN examples errors on page load

It looks like the example files under /cdn-examples may be out-of-date with the latest CDN release. When I attempt to run the single-chain example I receive a pair of errors. One is related to the Mol* interface's loadParams. It looks like pdbId has been changed to entryId: https://rcsb.github.io/rcsb-saguaro-3d/interfaces/RcsbFv3DAssembly._internal_.LoadParams.html.

var molstarConfig = {
loadConfig: {
loadMethod: "loadPdbIds",
loadParams: [{
pdbId: "1ash",
id: "1ash_model"
}]
},

needs to be:

var molstarConfig = {
loadConfig: {
loadMethod: "loadPdbIds",
loadParams: [{
entryId: "1ash",
id: "1ash_model"
}]
},

The other error appears to be related to the RcsbFvSelectorManager: RcsbFvSelectorManager. It looks like an additional layer has been added to the object, so that index.js lines 90-91 need to be updated:

current:
structureSelectionCallback: function (plugin, pfv, selection) {
var sel = selection.getSelectionWithCondition("1ash_model", "A", "select");
should be:
structureSelectionCallback: function (plugin, pfv, selection) {
var sel = selection.selectionState.getSelectionWithCondition("1ash_model", "A", "select");

I believe there are likely other errors related to the RcsbFvSelectorManager elsewhere in the file as well. It would be extremely helpful to have these two example files working, since they've been useful references in the past.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.