Re: [Jmol-users] synchronizing "select commands" in multiple jmolcheckbox(es)
Avehna, It appears to me that your solution is to have each checkbox call only the part of script specific to the relevant piece of protein. So, all your problem is a scripting one. > They are several segments, so I will need several > combinations if I'm using just jmol commands. No, you shouldn't need combinations. Each checkbox should call code that only affects its relevant portion of protein. > the end define the whole jmol command once in dependence on which > checkbox was picked before. That is possible, but I think you can avoid that complex solution. > "jmolSetCheckboxGroup(chkMaster, chkBoxes)" I don't think this is suitable for your needs. > problem using this function, I dont know why it seems to me a little > complicated. It is, a little bit. Let's say you want this: * protein segment 1 is residues 3 to 20 * protein segment 2 is residues 30 to 50 * checkbox 1 will color segment 1 in blue * checkbox 2 will color segment 2 in red * unchecked will color in default CPK This is what you need: In the loading script, include: define segment1 3-20; define segment2 30-50; And for the checkboxes, this: jmolCheckbox("define temp selected; select segment1; color blue; select temp;", "define temp selected; select segment1; color cpk; select temp;", "segment 1") jmolCheckbox("define temp selected; select segment2; color red; select temp;", "define temp selected; select segment2; color cpk; select temp;", "segment 2") (You can also avoid the initial definition and integrate them in the script, like jmolCheckbox("define temp selected; select 3-20; color blue; select temp;", "define temp selected; select 3-20; color cpk; select temp;", "segment 1") ) OK? - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] synchronizing "select commands" in multiple jmolcheckbox(es)
Hello Angel: Yes...I have a protein sequence and want to visualize just specific regions on the sequence. My first idea was about using jmolcheckbox, where the user can pick a checkbox(region) he wants to visualize, but actually the way I have programmed this when the user picks another checkbox (and the previous one is still checked), the first checked box's "segment" just disappears when they should be both visualized at the same time. They are several segments, so I will need several combinations if I'm using just jmol commands. Maybe it requires some java script, evaluating which checkbox was picked previously, and at the end define the whole jmol command once in dependence on which checkbox was picked before. On the other hand I have read about "jmolSetCheckboxGroup(chkMaster, chkBoxes)", maybe I can solve the problem using this function, I dont know why it seems to me a little complicated. What I want to do is similar to this server: http://bmbpcu36.leeds.ac.uk/qsitefinder/ (choose "Mage") Thank you. Avhena On Mon, Sep 15, 2008 at 8:05 PM, Angel Herráez <[EMAIL PROTECTED]> wrote: > Hello Avehna > > > Actually the way I am doing this is not right because both checkboxes are > not "synchronized" > > (when I check "box1" the jmol command running on "box 2" just disappears > ) > > Can you explain this more? Do you mean that script nr. 2 is interrupted if > you click on Box > 1, or that script 2 effect is reverted when you click on Box 1? > > > As for examples, see e.g. "Monosaccharides" or "Fatty acids" pages in > http://biomodel.uah.es/en/model3/ > > > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] synchronizing "select commands" in multiple jmolcheckbox(es)
Hello Avehna > Actually the way I am doing this is not right because both checkboxes are not > "synchronized" > (when I check "box1" the jmol command running on "box 2" just disappears ) Can you explain this more? Do you mean that script nr. 2 is interrupted if you click on Box 1, or that script 2 effect is reverted when you click on Box 1? As for examples, see e.g. "Monosaccharides" or "Fatty acids" pages in http://biomodel.uah.es/en/model3/ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
[Jmol-users] synchronizing "select commands" in multiple jmolcheckbox(es)
Hello: Could any of you tell me about a jmolCheckbox tutorial or any webpage using jmolcheckbox? I want to visualize a protein and represent different protein segments in different colors on a webpage, where each checkbox is "pointing" to a particular segment, so if I check "box 1" the "segment 1" will appear in blue, if a check "box 2" the "segment 2" will appear in red, if I check both boxes both segments will be displayed in their colors. Actually the way I am doing this is not right because both checkboxes are not "synchronized" (when I check "box1" the jmol command running on "box 2" just disappears ), maybe is just a jmol command issue, but I have spent a long time trying to solve this problem and finally decided to write to jmol's list. I will appreciate if any of you could suggest me something or just send me a link to a webpage where I can see an example. Thanks A. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users