User 91ff5e7a58
25-04-2006 19:06:33
Thanks,
Kelsey
User 91ff5e7a58
25-04-2006 19:06:33
ChemAxon d76e6e95eb
25-04-2006 19:29:13
User 870ab5b546
24-09-2006 01:18:59
ChemAxon d76e6e95eb
24-09-2006 07:18:40
User 870ab5b546
25-09-2006 00:52:50
ChemAxon e08c317633
25-09-2006 10:03:04
User 870ab5b546
25-09-2006 10:17:01
ChemAxon e08c317633
25-09-2006 10:55:33
User 870ab5b546
25-09-2006 14:07:32
Code: |
<?xml version="1.0" ?> <MDocument> <MTextBox> <Field name="text">Pd/C</Field> <MPoint x="-5.266835689544678" y="-1.0117714330554008" /> <MPoint x="-3.3514606132507296" y="-1.011771433055396" /> <MPoint x="-3.3514606132507296" y="-2.5517714330553942" /> <MPoint x="-5.26683568954612" y="-2.5517714330554" /> </MTextBox> <MChemicalStruct> <reaction> <propertyList> <property dictRef="NAME" title="NAME"> <scalar><![CDATA[C=(C,N) and C=-(C,N) hydrogenation]]></scalar> </property> <property dictRef="REAGENTS" title="REAGENTS"> <scalar><![CDATA[hydrogen, Pd/C]]></scalar> </property> <property dictRef="EXAMPLE" title="EXAMPLE"> <scalar><![CDATA[CC#CC>>CCCC CC(C)=C>>CC(C)C C1CCC=CC1>>C1CCCCC1 |c:3| C=Cc1ccccc1>>CCc1ccccc1 CC(C)C#N>>CC(C)CN CN(C)C1=NCC=NC1>>CN(C)C1=NCCNC1]]></scalar> </property> <property dictRef="REACTIVITY" title="REACTIVITY"> <scalar><![CDATA[bondType(bond(ratom(1), ratom(2))) == 2 || bondType(bond(ratom(1), ratom(2))) == 3]]></scalar> </property> <property dictRef="EXPLAIN_REACTIVITY" title="EXPLAIN_REACTIVITY"> <scalar><![CDATA[Must be double or triple bond, not aromatic]]></scalar> </property> <property dictRef="EXCLUDE" title="EXCLUDE"> <scalar><![CDATA[match("[N][C1][N2]")]]></scalar> </property> </propertyList> <reactantList> <molecule molID="m1"> <atomArray atomID="a1 a2" elementType="C C" mrvMap="1 2" mrvQueryProps="0 L,C,N:" x2="-11.806068327840173 -10.47237565375555" y2="3.12969197432289E-4 -0.7696635571285386" /> <bondArray> <bond atomRefs2="a1 a2" order="1" queryType="Any" /> </bondArray> </molecule> </reactantList> <agentList> <molecule molID="m2"> <atomArray atomID="a1 a2" elementType="H H" x2="-5.616677224636078 -4.076677224636078" y2="1.5318208932876587 1.5318208932876587" /> <bondArray> <bond atomRefs2="a1 a2" order="1" /> </bondArray> </molecule> </agentList> <productList> <molecule molID="m3"> <atomArray atomID="a1 a2" elementType="C C" mrvMap="1 2" mrvQueryProps="0 L,C,N:" x2="4.980893100832979 6.293581459830705" y2="-0.010743123374412189 -0.8160066033310409" /> <bondArray> <bond atomRefs2="a1 a2" order="1" /> </bondArray> </molecule> </productList> </reaction> </MChemicalStruct> </MDocument> |
User 870ab5b546
25-09-2006 14:18:32
ChemAxon d76e6e95eb
25-09-2006 14:49:35
User 870ab5b546
25-09-2006 16:18:54
Quote: |
bondType(bond(ratom(1), ratom(2))) returns the bond type between reactant atoms matching maps 1 and 2 in the reaction equation |
Quote: |
bondType(bond(ratom(1), ratom(2))) == 2 || bondType(bond(ratom(1), ratom(2))) == 3 |
Quote: |
the (1-based) atom indexes of the two atoms in a string: "index1-index2" (e.g. '2-3') |
ChemAxon d76e6e95eb
25-09-2006 19:59:31
Code: |
match(reactant(0), "NC=N") |
Code: |
!match(ratom(1), "N[C:1]=N", 1) |
User 870ab5b546
25-09-2006 20:56:12
Quote: |
1. Use SMARTS. Paste this into the MarvinSketch source editor (Edit/Source) and import it into the Sketcher: C=,#C (Direct pasting into the Marvin window will work soon when we corrected a bug) 2. Make two reactions, one with double bond and an other with triple bond. 3. Use R-groups (only if the double or triple bond does not take part in the reaction) 4. Simply draw an ANY bond and refine the reaction scheme in the Reactivity rule with match functions. |
Code: |
<?xml version="1.0" ?> <MDocument> <MTextBox> <Field name="text">Pd/C</Field> <MPoint x="-5.266835689544678" y="-1.0117714330554008" /> <MPoint x="-3.3514606132507296" y="-1.011771433055396" /> <MPoint x="-3.3514606132507296" y="-2.5517714330553942" /> <MPoint x="-5.26683568954612" y="-2.5517714330554" /> </MTextBox> <MChemicalStruct> <reaction> <propertyList> <property dictRef="NAME" title="NAME"> <scalar><![CDATA[C=,#(C,N) hydrogenation]]></scalar> </property> <property dictRef="REAGENTS" title="REAGENTS"> <scalar><![CDATA[hydrogen, Pd/C]]></scalar> </property> <property dictRef="EXAMPLE" title="EXAMPLE"> <scalar><![CDATA[CC#CC>>CCCC C1CCC=CC1>>C1CCCCC1 |c:3| C=Cc1ccccc1>>CCc1ccccc1 CC(C)C#N>>CC(C)CN CN(C)C1=NCC=NC1>>CN(C)C1=NCCNC1 |c:6,t:3,12|]]></scalar> </property> <property dictRef="REACTIVITY" title="REACTIVITY"> <scalar><![CDATA[bondType(bond(ratom(1), ratom(2))) == 2 || bondType(bond(ratom(1), ratom(2))) == 3]]></scalar> </property> <property dictRef="EXPLAIN_REACTIVITY" title="EXPLAIN_REACTIVITY"> <scalar><![CDATA[Must be double or triple bond, not aromatic]]></scalar> </property> <property dictRef="EXCLUDE" title="EXCLUDE"> <scalar><![CDATA[match(ratom(1), "N[C:1]=[N]", 1)]]></scalar> </property> </propertyList> <reactantList> <molecule molID="m1"> <atomArray atomID="a1 a2" elementType="C C" mrvMap="1 2" mrvQueryProps="0 L,C,N:" x2="-11.806068327840173 -10.47237565375555" y2="3.12969197432289E-4 -0.7696635571285386" /> <bondArray> <bond atomRefs2="a1 a2" order="1" queryType="Any" /> </bondArray> </molecule> </reactantList> <agentList> <molecule molID="m2"> <atomArray atomID="a1 a2" elementType="H H" x2="-5.616677224636078 -4.076677224636078" y2="1.5318208932876587 1.5318208932876587" /> <bondArray> <bond atomRefs2="a1 a2" order="1" /> </bondArray> </molecule> </agentList> <productList> <molecule molID="m3"> <atomArray atomID="a1 a2" elementType="C C" mrvMap="1 2" mrvQueryProps="0 L,C,N:" x2="4.980893100832979 6.293581459830705" y2="-0.010743123374412189 -0.8160066033310409" /> <bondArray> <bond atomRefs2="a1 a2" order="1" /> </bondArray> </molecule> </productList> </reaction> </MChemicalStruct> </MDocument> |
User 870ab5b546
26-09-2006 01:00:02
Quote: |
Error: could not convert to double: java.lang.Object@1805b5 |
Quote: |
chemaxon.reaction.ReactionException: could not convert to double: java.lang.Object@1805b5 at chemaxon.reaction.ReactionPerformer.reactHit(ReactionPerformer.java:957) at chemaxon.reaction.ReactionPerformer.reactOne(ReactionPerformer.java:804) at chemaxon.reaction.ReactionPerformer.reactBase(ReactionPerformer.java:774) at chemaxon.reaction.ReactionPerformer.react(ReactionPerformer.java:731) at chemaxon.reaction.Reactor.reactMain(Reactor.java:1482) at chemaxon.reaction.Reactor.react(Reactor.java:1422) at org.apache.jsp.public_.reactor.jsp.result_jsp._jspService(result_jsp.java:136) |
Code: |
<?xml version="1.0" ?> <MDocument> <MTextBox id="o1" fontScale="10.0"> <Field name="text">Pd/C</Field> <MPoint x="-5.266835689544678" y="-1.0117714330554008" /> <MPoint x="-3.3514606132507296" y="-1.011771433055396" /> <MPoint x="-3.3514606132507296" y="-2.5517714330553942" /> <MPoint x="-5.26683568954612" y="-2.5517714330554" /> </MTextBox> <MChemicalStruct> <reaction> <propertyList> <property dictRef="NAME" title="NAME"> <scalar><![CDATA[C=,#(C,N) hydrogenation]]></scalar> </property> <property dictRef="REAGENTS" title="REAGENTS"> <scalar><![CDATA[hydrogen, Pd/C]]></scalar> </property> <property dictRef="EXAMPLE" title="EXAMPLE"> <scalar><![CDATA[CC#CC>>CCCC C1CCC=CC1>>C1CCCCC1 |c:3| C=Cc1ccccc1>>CCc1ccccc1 CC(C)C#N>>CC(C)CN CN(C)C1=NCC=NC1>>CN(C)C1=NCCNC1]]></scalar> </property> <property dictRef="REACTIVITY" title="REACTIVITY"> <scalar><![CDATA[(bondType(bond(ratom(1), ratom(2))) == 2 || bondType(bond(ratom(1), ratom(2))) == 3) && !match(ratom(1), "N[C:1]=N", 1)]]></scalar> </property> <property dictRef="EXPLAIN_REACTIVITY" title="EXPLAIN_REACTIVITY"> <scalar><![CDATA[Must be double or triple bond, not aromatic]]></scalar> </property> </propertyList> <reactantList> <molecule molID="m1"> <atomArray atomID="a1 a2" elementType="C C" mrvMap="1 2" mrvQueryProps="0 L,C,N:" x2="-11.806068327840173 -10.47237565375555" y2="3.12969197432289E-4 -0.7696635571285386" /> <bondArray> <bond atomRefs2="a1 a2" order="1" queryType="Any" /> </bondArray> </molecule> </reactantList> <agentList> <molecule molID="m2"> <atomArray atomID="a1 a2" elementType="H H" x2="-5.616677224636078 -4.076677224636078" y2="1.5318208932876587 1.5318208932876587" /> <bondArray> <bond atomRefs2="a1 a2" order="1" /> </bondArray> </molecule> </agentList> <productList> <molecule molID="m3"> <atomArray atomID="a1 a2" elementType="C C" mrvMap="1 2" mrvQueryProps="0 L,C,N:" x2="4.980893100832979 6.293581459830705" y2="-0.010743123374412189 -0.8160066033310409" /> <bondArray> <bond atomRefs2="a1 a2" order="1" /> </bondArray> </molecule> </productList> </reaction> </MChemicalStruct> </MDocument> |
User 870ab5b546
27-09-2006 12:36:58
ChemAxon d76e6e95eb
28-09-2006 16:02:40
ChemAxon d76e6e95eb
03-10-2006 12:05:11
ChemAxon e08c317633
16-10-2007 12:43:24
bobgr wrote: | ||||
I can't figure out what's wrong with it. When I look on the Chemical Terms Reference page at bondType, it shows, under Plugin Examples, Reaction Context Examples:
|
Code: |
bondType(reactant(0), bond(ratom(1), ratom(2))) == 2 || bondType(reactant(0), bond(ratom(1), ratom(2))) == 3 |
Code: |
bond(ratom(1), ratom(2)) |
Code: |
<atomIndex1>-<atomIndex2> |