Comments (6)
could you send me an example where this happens? I could not reproduce
the behaviour you describe. I've fixed a few other issues with recoloring
along the way, though. It's possible that one of them fixed your problem.
I tried this on the "long helices" structure available from the demo:
pv.forEach(function(go) {
go.colorBy(color.uniform('red'), go.select({chain:'A'}));
go.colorBy(color.uniform('green'));
});
pv.requestRedraw();
which gives an all-green structure
and this:
pv.forEach(function(go) {
go.colorBy(color.uniform('red'), go.select({chain:'A'}));
go.colorBy(color.uniform('green'));
});
pv.requestRedraw();
which gives chain A in red, and the other two chains in green.
from pv.
I've just fetched the most recent version, if you load protein 2BL2, and color using
pv.forEach(function(go) {
go.colorBy(color.uniform('green'));
go.colorBy(color.uniform('red'), go.select({cname:'A'}));
});
pv.requestRedraw();
results in 3 red chains
from pv.
OK, interesting. Will look into it.
from pv.
Should be better now
from pv.
Definitely! Thank you!
from pv.
could you send me an example where this happens? I could not reproduce
the behaviour you describe. I've fixed a few other issues with recoloring
along the way, though. It's possible that one of them fixed your problem.
I tried this on the "long helices" structure available from the demo:
pv.forEach(function(go) {
go.colorBy(color.uniform('red'), go.select({chain:'A'}));
go.colorBy(color.uniform('green'));
});
pv.requestRedraw();
which gives an all-green structure
and this:
pv.forEach(function(go) {
go.colorBy(color.uniform('red'), go.select({chain:'A'}));
go.colorBy(color.uniform('green'));
});
pv.requestRedraw();
which gives chain A in red, and the other two chains in green.
Best,
Marco
On Sep 4, 2014, at 20:32 , Dániel Kozma wrote:
When coloring a specific chain of a protein structure( go.select({cname: 'A'}) ) it turn the whole structure into the given color. Coloring the whole structure green and than e.g chain B with yellow, chain A remains green and the rest is yellow.
Untill now, I did not managed to find the solution. I've tracked back the functions and probably the error originates in the last section of recolor function.—
Reply to this email directly or view it on GitHub.
from pv.
Related Issues (20)
- Atom selection slightly off when in ball and stick representation mode HOT 2
- Any way to visually make certain bonds stronger? HOT 2
- Dead contribution guidelines link in readme.md HOT 1
- Uncaught TypeError: Cannot read property 'centralAtom' of undefined
- Disabling zoom on scroll
- Support MMTF format
- HETATM and Organic sticks HOT 1
- If a trace has a length of 1, it may not render properly
- atom has no _residue
- package.json main points to non-existent file
- Partial coloring of structure HOT 3
- CIAO MARCO!!! PROBLEMI CON APERTURA PDB FILES
- Structure creation by hand HOT 1
- project still alive? HOT 3
- Coloring each residue by a hex code color HOT 1
- Suggestion: Make bio-pv a web component HOT 2
- I AM NEW
- Display problem of structure of alphafold2 HOT 6
- How to select all residues within radius of mouse click? HOT 6
- Inquiry support drawing a path from one residue to another residue HOT 9
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 pv.