Skip to content

hideStructure causing the selection to fail? #119

Open
@zoeyxyang

Description

@zoeyxyang

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'],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions