Comments (3)
There are two basic ways to apply custom coloring to residues:
- Write a custom theme that takes the coloring data as params. See for example the validation report coloring theme
- Use the overpaint mechanism, which allows you to color representations using a selection. See here for entry point.
Is it possible to programmatically zoom to a selection?
Yes, see plugin.managers.camera.focusLoci
(or other focus*
functions.
Is it possible to strip out non-amino acids while loading a PDB?
Yes, see for example the polymer and ligand preset for how the state tree is built by default for PDB files. You can either hide the ligand after applying the preset or use the code as template for your own one.
from molstar.
plugin.managers.structure.hierarchy.current
forStructureComponentRef
s- EDIT: or just copy the relevant part of
setStructureOverpaint
to your code
- EDIT: or just copy the relevant part of
- You can execute a query for example with
Script.getStructureSelection
and converting it to Loci withStructureSelection.toLociWithSourceUnits
from molstar.
OK, thanks. If I use the overpaint mechanism, how do I acquire a StructureComponentRef[]
? And how do I select given AA ranges (a Loci
) from a Structure
?
from molstar.
Related Issues (20)
- Split-up large draw calls
- Q: how can you get the volume outline? HOT 6
- Apply TransformStructureConformation on StructureSelection (subset) HOT 13
- Occlusion issue on edges HOT 8
- molstar-render issue - no `gl` HOT 3
- Possible way to clean transparent cylinders while on solidInterior mode. HOT 3
- Show residues as spacefill HOT 3
- Safari on iOS/iPadOS unable to use ‘Open Files’ and ‘Load Trajectory’ modules HOT 3
- RCSB will be shutting down its DSN6 service edmaps.rcsb.org HOT 2
- Dof shader blurring blending issue HOT 4
- SSAO use of getMappedDepth instead of getDepth inside normal evaluation
- How to connect 2 atoms from different residues. HOT 1
- How does one convert an object `ref` into a `Loci` selection? HOT 5
- SMAA issue with transparent snapshots
- Using Mol* In Codepen HOT 1
- Wondering if `superpose` should be able to handle chains longer than 100-200 residues? HOT 2
- Add custom interaction from different residues HOT 1
- Quick Style: Illustrative -> Stylized does not work HOT 1
- Error: Symbol 'computed.accessible-surface-area.is-accessible' is not implemented. HOT 2
- unsafe-eval required when setting up CSP header HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from molstar.