Comments (6)
That's a great idea! I will add more text to label the wild type and mutant in the next release. To add a label, you can select one residue with residue ID as "resid" and show the label in the center of your selection using the following code:
let position = ic.applyCenterCls.centerAtoms(me.hashUtilsCls.hash2Atoms(ic.residues[resid], ic.atoms));
let x = position.center.x;
let y = position.center.y;
let z = position.center.z;
let size = 0;
let color = 0;
let background = 0;
ic.analysisCls.addLabel(text, x, y, z, size, color, background, 'custom');
from icn3d.
@msierk I released the update. Now you will see the label "Wild Type" and "Mutant":
from icn3d.
from icn3d.
Thanks, @jiywang3!
great. maybe default the size of sticks 0.3 or 0.2 ... it is a little too fat also ...
I agree, I've been setting the stick radius to 0.2 for 3DVizSNP
mutations may not necessarily be from wild type ... this is the majority but not a necessity here you assume the reference starting sequence is wild type just a note. It is not a big deal ...
Yes I've run into this issue with 3DVizSNP. I've been selecting the 'best' PDB structure from the PDBe REST API, but I found out with KRAS that it was picking a structure with an engineered mutant at the site I was looking at, so there was a mismatch between what you see in the scap command and the 3DVizSNP mutant, which is based on the Uniprot sequence. I'm working on implementing a check for this. There is another API call that can tell you if there is an engineered mutant, but it would be nice if PDB had a more straighforward way to label things as wt or not.
from icn3d.
@jiywang3 I see the labels in the 2D panel, but my original comment was directed at the label in the upper left of the 3D panel. Would it be possible to change that?
from icn3d.
@msierk I added the text label in 3D display as well.
from icn3d.
Related Issues (20)
- What do the colors mean for B factor? HOT 1
- Legends do not appear for hydrophobicity if Wimley-White is chosen HOT 1
- secondary structures are not being expressed in web page HOT 4
- The 3D structure information for mutations doesn't always match the info in the 2D representation HOT 1
- URL not displaying desired annotation HOT 1
- Bonds between atoms are appearing as thick black tubes HOT 2
- MTZ maps don't load properly /don't behave the same as other formats HOT 6
- "load url" command broken in icn3d_3.29.5 HOT 1
- Ideas for improving the cartoon HOT 6
- Open AlphaFold PAE file with latest result file HOT 2
- Chemical display isn't right HOT 7
- Unable to show selected chemicals when using Chrome HOT 3
- Customize menus doesn't work as expected HOT 3
- Is there a command or function that can enable to display PAE map? HOT 2
- Inquiry drawing drawing a path from one residue to another residue HOT 9
- Legend - Coloring by Atom - show complete names HOT 2
- Please fix the spelling in Legend for Color by Charge HOT 1
- The hydrophocity legend should contain information about hydrophobicity HOT 1
- Color by Residue legend has uracil spelled wrong and is missing the X 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 icn3d.