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

hideStructure causing the selection to fail? #119

Open
zoeyxyang opened this issue Sep 26, 2024 · 0 comments
Open

hideStructure causing the selection to fail? #119

zoeyxyang opened this issue Sep 26, 2024 · 0 comments

Comments

@zoeyxyang
Copy link

zoeyxyang commented Sep 26, 2024

hello,
thank you for developing this wonderful tool!
I'm trying to use one of the options hideStructure, to hide water.
I also have some parameters defined in selection.
But I found that when ever I set hideStructure, the selection will lose its effect.

Here is the setting from the example you provided here: https://embed.plnkr.co/plunk/eMPsfuW2msk9CKC3
If I enable the hideStructure option, the selection won't show up.

const options = {
// DATA
moleculeId: '1cbs',
// customData: {
// url: 'https://alphafold.ebi.ac.uk/files/AF-O15552-F1-model_v1.cif',
// format: 'cif',
// binary: false,
// },
// assemblyId: '1',
// defaultPreset: 'default', // default | unitcell | all-models |supercell
// ligandView: { label_comp_id: 'REA' },
// superposition
selection: {
data: [
{
struct_asym_id: 'A',
//start_residue_number: 1,
//end_residue_number: 20,
color: '#ffff00',
focus: true
},
],
nonSelectedColor:{ r: 255, g: 255, b: 255 },
},
// APPEARANCE
// visualStyle: 'cartoon', // cartoon | ball-and-stick | carbohydrate | ellipsoid | gaussian-surface | molecular-surface | point | putty | spacefill
hideStructure: ['water'],

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