RE: color specific amino acid (2013-09-04 04:04 by skumar #70165)
Now I have embedded the pdb structure in my web page using this code:
But this structure is coming outside canvas instead within canvas....Is there any problem in my code?
<script type="text/javascript">
var glmol01 = new GLmol('glmol01', true);
glmol01.defineRepresentation = function() {
var all = this.getAllAtoms();
var hetatm = this.removeSolvents(this.getHetatms(all));
this.colorByAtom(all, {});
this.colorByChain(all);
var asu = new THREE.Object3D();
RE: color specific amino acid (2013-09-05 05:06 by skumar #70169)
Thank you so much.
Now everything is working fine. I need some additional help if possible please suggest me.
I would like to create button and then by clicking I want to display glmol structure on same page or different page.
<script type="text/javascript">
var glmol01 = new GLmol('glmol01', true);
glmol01.defineRepresentation = function() {
var all = this.getAllAtoms();
var hetatm = this.removeSolvents(this.getHetatms(all));
this.colorByAtom(all, {});
this.colorByChain(all);
var asu = new THREE.Object3D();
RE: color specific amino acid (2013-09-05 10:10 by skumar #70171)
Sorry for confusion.
I have list of pdb files on my webpage. That is why I want to create button for each pdb file.
When I click this button then pdb should load into GLmol.
RE: color specific amino acid (2013-09-05 10:28 by biochem_fan #70172)
> I have list of pdb files on my webpage. That is why I want to create button for each pdb file.
> When I click this button then pdb should load into GLmol.
Your code looks OK. Doesn't it work? For example, glmol("3EML")?
If errors are shown in the console, please let me know.
RE: color specific amino acid (2013-09-14 05:30 by skumar #70218)
Is there way to color residue by their residue number instead of residue name?
One more thing I would like to know that if I want to hide one chain from two chain. How to do this?
RE: color specific amino acid (2013-11-05 05:22 by skumar #70693)
I am not able to color amino acid by their residue id...Please help me out with this problem.
here is my code:
variable P contains list of amino acid id eg: [12,15,18] which I want to make red.
var P = [12,15,18];
var glmol01 = new GLmol('glmol01', true);
glmol01.defineRepresentation = function() {
var all = this.getAllAtoms();
var hetatm = this.removeSolvents(this.getHetatms(all));
this.colorByAtom(all, {});
this.colorByStructure(all);
RE: color specific amino acid (2013-11-05 06:17 by biochem_fan #70694)
Your code does looks fine.
Does
this.getResiduesById(this.getSidechains(this.getChain(all, ['A'])), P);
return valid atom ids?
Please also note that to color mainchain (cartoon, ribbon, etc), you have to color CA (alpha carbon) atoms.
That is, you should not use this.getSidechains.