You can subscribe to this list here.
2014 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2015 |
Jan
(4) |
Feb
|
Mar
|
Apr
(34) |
May
(4) |
Jun
(1) |
Jul
(3) |
Aug
(9) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2016 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(1) |
Sep
(4) |
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Nikolay K. <ni...@un...> - 2014-03-05 07:57:39
|
Hi Yannick, Nina has given you good advices concerning the compilation and integration problems (I will not add to these). I would like to add few comments on the test cases mentioned in your first mail. I tested all these SMIRKS in pure java approach and they work fine. The first test case ([*;#6:1][C:2]#[C:3][*;#6:4]>>[*:1]/[C:2](/[H])=[*:3](/[H])[C:4]) generates parser error. I clarified this below after the java code. The second test case in my mail is the first test corrected in order to be parsed without problems. Here is the testing code for my tests (it is quite analogous to the one shown in the examples on the Ambit web page) public void testSMIRKS(String smirks, String targetSmiles)throws Exception { System.out.println("Testing SMIRKS: " + smirks); SMIRKSManager smrkMan = new SMIRKSManager(SilentChemObjectBuilder.getInstance()); SMIRKSReaction reaction = smrkMan.parse(smirks); if (!smrkMan.getErrors().equals("")) { System.out.println(smrkMan.getErrors()); return; } if (targetSmiles.equals("")) return; IAtomContainer target = SmartsHelper.getMoleculeFromSmiles(targetSmiles); smrkMan.applyTransformation(target, reaction); String transformedSmiles = SmartsHelper.moleculeToSMILES(target); System.out.println("Reaction application: " + targetSmiles + " --> " + transformedSmiles); } ... testSMIRKS("[*;#6:1][C:2]#[C:3][*;#6:4]>>[*:1]/[C:2](/[H])=[*:3](/[H])[C:4]","COCCCC#CCCC"); testSMIRKS("[*:1][C:2]#[C:3][*;#6:4]>>[*:1]/[C:2](/[H])=[C:3](/[H])[C:4]","COCCCC#CCCC"); //corercted one testSMIRKS("[*;#6:1][C:2]=[O:3]>>[*;#6:1][C:2]-[O:3][*;#6]","CCCC=O"); testSMIRKS("[C:1]=O>>[C:1]1OCCO1","CCCCCCC=O"); testSMIRKS("[*:1]C(=O)O>>[*:1]C(N)=O","CCCCCCC(=O)O"); And here is the result output from the code above: Testing SMIRKS: [*;#6:1][C:2]#[C:3][*;#6:4]>>[*:1]/[C:2](/[H])=[*:3](/[H])[C:4] Map 1 atom types are inconsistent! Map 3 atom types are inconsistent! Testing SMIRKS: [*:1][C:2]#[C:3][*;#6:4]>>[*:1]/[C:2](/[H])=[C:3](/[H])[C:4] Reaction application: COCCCC#CCCC --> [H]C(=C([H])CCCOC)CCC Testing SMIRKS: [*;#6:1][C:2]=[O:3]>>[*;#6:1][C:2]-[O:3][*;#6] Reaction application: CCCC=O --> COCCCC Testing SMIRKS: [C:1]=O>>[C:1]1OCCO1 Reaction application: CCCCCCC=O --> C1COC(O1)CCCCCC Testing SMIRKS: [*:1]C(=O)O>>[*:1]C(N)=O Reaction application: CCCCCCC(=O)O --> NC(=O)CCCCCC Just few comments for the first test case: Ambit SMARTS/SMIRKS parser has STRICT rules for the mapped atom types. The atom types corresponding to the same mapping index on the left (reactant) and on the right (products) must be of the same type otherwise parser interprets this as an error. For the following SMIRKS [*;#6:1][C:2]#[C:3][*;#6:4]>>[*:1]/[C:2](/[H])=[*:3](/[H])[C:4] we have [*;#6:1] >> [*:1] i.e. the left is carbon and right is any atom (wild card only) Also bear in mind that [*;#6:1] is equivalent to [#6:1] so the first token '*' is not needed. Analogously parser produces error message for: [*;#6:4] >> [*:3] This requirement for same atoms types is not applied for NOT-MAPPED atoms in the SMIRKS expression. Actually not mapped atoms are interpreted as atoms(fragments) been removed on the left and atoms (fragments) been added on the right. That is why it is not required to be of the same type. For example: this SMIRKS is OK [C:1]N>>[C:1]O I hope my comments would be helpful as well. Best regards Nick On 2014-03-04 20:39, Yannick .Djoumbou wrote: > Hi Nina, > > According to your last email and to the information on this file [4], > there is a separate ambit-smirks-2.5.4- module, which is an extension > of ambit-smarts. Well, I could not find a downloadable jar file on the > web. Looking at the file I attached, is it OK to have those require > libraries, or do i explicitly require the ambit-smirks library beside > ambit-core, ambit-smarts, and ambit-core? > > Cheers, > > Yannick > > On Mon, Mar 3, 2014 at 11:54 PM, Yannick <y.d...@gm...> wrote: > >> Hi Nina, >> >> Thanks for your reply. I changed the cdm version to 1.4.11. However, >> I still have the same error messages. >> >> Thanks in advance for your help. >> >> Yannick >> >> On 2014-03-03, at 11:30 PM, Nina Jeliazkova >> <jel...@gm...> wrote: >> >> Dear Yannick, >> >> Thanks for your interest in ambit-smirks. >> >> (cc: to Nick Kochev, who is the author of the package). >> >> I am not familiar with Ruby/JRuby, but the NoMethodError >> newInstance means some of the dependencies is missing and the >> corresponding class could not be instantiated. >> >> ambit-smirks 2.5.4-x depends on CDK 1.4.11 and has not been tested >> with CDK 1.4.19 - quite probably this might be the reason. Could you >> try changing the CDK dependency to 1.4.11 . >> >> Best regards, >> Nina >> >> On 3 March 2014 23:39, Yannick .Djoumbou <y.d...@gm...> >> wrote: >> >> Hello, >> >> I am a new user of AMBIT. I would like to use SMIRKS and I have >> browsed through some examples on this web page [1]. >> I have tried some examples with several SMIRKS but I have add >> several issues. >> In the attached file, I show a prototype of the JRuby code I use. >> All the libraries have been imported properly. >> Please have a look at the examples provided in the file above. >> >> Would you please let me know what is the cause for this? I have >> looked at the source code but I could find a solution. >> >> Cheers, >> >> Yannick >> > ------------------------------------------------------------------------------ >> Subversion Kills Productivity. Get off Subversion & Make the Move >> to Perforce. >> With Perforce, you get hassle-free workflows. Merge that actually >> works. >> Faster operations. Version large binaries. Built-in WAN >> optimization and the >> freedom to use Git, Perforce or both. Make the move to Perforce. >> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >> [2] >> _______________________________________________ >> Ambit-users mailing list >> Amb...@li... >> https://lists.sourceforge.net/lists/listinfo/ambit-users [3] > > > > Links: > ------ > [1] > http://ambit.sourceforge.net/AMBIT2-LIBS/ambit2-smarts/examples.html#SMIRKS > [2] > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > [3] https://lists.sourceforge.net/lists/listinfo/ambit-users > [4] > file:///Users/yandj/Programming/Projects/drug_metabolism/opentoxeuro2013_submission_20.pdf |
From: Nina J. <jel...@gm...> - 2014-03-04 19:01:27
|
Hello Yannick , On 4 March 2014 20:39, Yannick .Djoumbou <y.d...@gm...> wrote: > Hi Nina, > > According to your last email and to the information on this* file*, there > is a separate ambit-smirks-2.5.4- module, which is an extension of > ambit-smarts. Well, I could not find a downloadable jar file on the web. > Looking at the file I attached, is it OK to have those require libraries, > or do i explicitly require the ambit-smirks library beside ambit-core, > ambit-smarts, and ambit-core? > > No, there is no separate ambit-smirks module, the SMIRKS functionality is included in the ambit2-smarts module only. ambit2-smarts itself depends on ambit-core and ambit-core depends on ambit-base. In the Java world this is automatically handled by Maven dependency manager, so only including ambit2-smarts is sufficient, but in JRuby you probably need to explicitly include all the downstream dependencies. The dependencies are defined in pom.xml files (e.g. [1] for ambit-smarts and [2] for ambit2-core ). In your configuration you probably are missing some of the ambit-core dependencies. All ambit modules are available for download either from sourceforge, or from Maven repository at http://ambit.uni-plovdiv.bg:8083/nexus/index.html#nexus-search;gav~ambit~~2.5.4-SNAPSHOT~~ It might be useful to find out if JRuby can be used with Maven, this will allow for dependencies to be handled automatically. Best regards, Nina [1] http://ambit.uni-plovdiv.bg:8083/nexus/content/repositories/snapshots/ambit/ambit2-smarts/2.5.4-SNAPSHOT/ambit2-smarts-2.5.4-20140304.072801-20.pom [2] http://ambit.uni-plovdiv.bg:8083/nexus/content/repositories/snapshots/ambit/ambit2-core/2.5.4-SNAPSHOT/ambit2-core-2.5.4-20140304.072801-20.pom Cheers, > > Yannick > > > On Mon, Mar 3, 2014 at 11:54 PM, Yannick <y.d...@gm...> wrote: > >> Hi Nina, >> >> Thanks for your reply. I changed the cdm version to 1.4.11. However, I >> still have the same error messages. >> >> Thanks in advance for your help. >> >> Yannick >> >> On 2014-03-03, at 11:30 PM, Nina Jeliazkova <jel...@gm...> >> wrote: >> >> Dear Yannick, >> >> Thanks for your interest in ambit-smirks. >> >> (cc: to Nick Kochev, who is the author of the package). >> >> I am not familiar with Ruby/JRuby, but the NoMethodError newInstance >> means some of the dependencies is missing and the corresponding class >> could not be instantiated. >> >> ambit-smirks 2.5.4-x depends on CDK 1.4.11 and has not been tested with >> CDK 1.4.19 - quite probably this might be the reason. Could you try >> changing the CDK dependency to 1.4.11 . >> >> Best regards, >> Nina >> >> >> On 3 March 2014 23:39, Yannick .Djoumbou <y.d...@gm...> wrote: >> >>> >>> Hello, >>> >>> I am a new user of AMBIT. I would like to use SMIRKS and I have browsed >>> through some examples on this web page<http://ambit.sourceforge.net/AMBIT2-LIBS/ambit2-smarts/examples.html#SMIRKS> >>> . >>> I have tried some examples with several SMIRKS but I have add several >>> issues. >>> In the attached file, I show a prototype of the JRuby code I use. All >>> the libraries have been imported properly. >>> Please have a look at the examples provided in the file above. >>> >>> Would you please let me know what is the cause for this? I have looked >>> at the source code but I could find a solution. >>> >>> Cheers, >>> >>> Yannick >>> >>> >>> ------------------------------------------------------------------------------ >>> Subversion Kills Productivity. Get off Subversion & Make the Move to >>> Perforce. >>> With Perforce, you get hassle-free workflows. Merge that actually works. >>> Faster operations. Version large binaries. Built-in WAN optimization >>> and the >>> freedom to use Git, Perforce or both. Make the move to Perforce. >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Ambit-users mailing list >>> Amb...@li... >>> https://lists.sourceforge.net/lists/listinfo/ambit-users >>> >>> >> >> > |
From: Yannick .D. <y.d...@gm...> - 2014-03-04 18:39:57
|
require 'java' require 'lib/cdk/cdk-1.4.19.jar' require 'lib/ambit2/ambit2-core-2.5.4-20140227.134038-19.jar' require 'lib/ambit2/ambit2-base-2.5.4-20140227.134038-19.jar' require 'lib/ambit2/ambit2-smarts-2.5.4-20140104.083219-2.jar' import java.util.Vector import 'ambit2.smarts.SMIRKSManager' import 'ambit2.smarts.SMIRKSReaction' import 'ambit2.smarts.SMIRKSTransform' import 'ambit2.smarts.query.SmartsPatternCDK' import 'org.openscience.cdk.AtomContainer' import 'org.openscience.cdk.smiles.SmilesParser' import 'org.openscience.cdk.smiles.SmilesGenerator' import 'org.openscience.cdk.smiles.smarts.SMARTSQueryTool' import 'org.openscience.cdk.silent.SilentChemObjectBuilder' import 'org.openscience.cdk.tools.manipulator.AtomContainerManipulator' import 'org.openscience.cdk.interfaces.IChemObjectBuilder' builder = SilentChemObjectBuilder.getInstance() sg = SmilesGenerator.new sp = SmilesParser.new(builder) cob = IChemObjectBuilder.new() smrkMan = SMIRKSManager.new(cob) reaction = smrkMan.parse(a given SMIRKS string) molecule = sp.parseSmiles(the query smiles) if smrkMan.applyTransformation(molecule, reaction) return target end Example 1 #SMIRKS / SMILES [*;#6:1][C:2]#[C:3][*;#6:4]>>[*:1]/[C:2](/[H])=[*:3](/[H])[C:4] COCCCC#CCCC Error: Vector.java:744:in `get': java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0 from SMIRKSManager.java:512:in `applyTransformAtLocation' from SMIRKSManager.java:286:in `applyTransformation' from SMIRKSManager.java:194:in `applyTransformation' from NativeMethodAccessorImpl.java:-2:in `invoke0' from NativeMethodAccessorImpl.java:57:in `invoke' from DelegatingMethodAccessorImpl.java:43:in `invoke' from Method.java:606:in `invoke' from JavaMethod.java:470:in `invokeDirectWithExceptionHandling' from JavaMethod.java:328:in `invokeDirect' from InstanceMethodInvoker.java:71:in `call' from CachingCallSite.java:346:in `cacheAndCall' from CachingCallSite.java:204:in `call' Example 2 #SMIRKS / SMILES [*;#6:1][C:2]=[O:3]>>[*;#6:1][C:2]-[O:3][*;#6] CCC=O Error: No error Example 3 #SMIRKS / SMILES [C:1]=O>>[C:1]1OCCO1 # Taken from the Daylight SMIRKS examples page CCCCCCC=O Error: NoMethodError: undefined method `newInstance' for #<#<Class:0xfb0d6fe>:0x22f2c5be> newInstance at org/jruby/gen/InterfaceImpl765047607.gen:13 (root) at metabolize-with-ambit-cdk.jrb: xxx ==> This refers to the line 29 "if smrkMan.applyTransformation(molecule, reaction)" Example 4 #SMIRKS / SMILES [*:1]C(=O)O>>[*:1]C(N)=O # Taken from the Daylight SMIRKS examples page CCCCCCC(=O)O Error: NoMethodError: undefined method `newInstance' for #<#<Class:0xfb0d6fe>:0x22f2c5be> newInstance at org/jruby/gen/InterfaceImpl765047607.gen:13 (root) at metabolize-with-ambit-cdk.jrb: xxx ==> This refers to the line 29 "if smrkMan.applyTransformation(molecule, reaction)" It looks like the smirks is wrong but I do not think so. I have tried many others but I get a lot of these errors. |
From: Yannick <y.d...@gm...> - 2014-03-04 06:54:56
|
Hi Nina, Thanks for your reply. I changed the cdm version to 1.4.11. However, I still have the same error messages. Thanks in advance for your help. Yannick On 2014-03-03, at 11:30 PM, Nina Jeliazkova <jel...@gm...> wrote: > Dear Yannick, > > Thanks for your interest in ambit-smirks. > > (cc: to Nick Kochev, who is the author of the package). > > I am not familiar with Ruby/JRuby, but the NoMethodError newInstance means some of the dependencies is missing and the corresponding class could not be instantiated. > > ambit-smirks 2.5.4-x depends on CDK 1.4.11 and has not been tested with CDK 1.4.19 - quite probably this might be the reason. Could you try changing the CDK dependency to 1.4.11 . > > Best regards, > Nina > > > On 3 March 2014 23:39, Yannick .Djoumbou <y.d...@gm...> wrote: > > Hello, > > I am a new user of AMBIT. I would like to use SMIRKS and I have browsed through some examples on this web page. > I have tried some examples with several SMIRKS but I have add several issues. > In the attached file, I show a prototype of the JRuby code I use. All the libraries have been imported properly. > Please have a look at the examples provided in the file above. > > Would you please let me know what is the cause for this? I have looked at the source code but I could find a solution. > > Cheers, > > Yannick > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and the > freedom to use Git, Perforce or both. Make the move to Perforce. > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > Ambit-users mailing list > Amb...@li... > https://lists.sourceforge.net/lists/listinfo/ambit-users > > |
From: Nina J. <jel...@gm...> - 2014-03-04 06:30:40
|
Dear Yannick, Thanks for your interest in ambit-smirks. (cc: to Nick Kochev, who is the author of the package). I am not familiar with Ruby/JRuby, but the NoMethodError newInstance means some of the dependencies is missing and the corresponding class could not be instantiated. ambit-smirks 2.5.4-x depends on CDK 1.4.11 and has not been tested with CDK 1.4.19 - quite probably this might be the reason. Could you try changing the CDK dependency to 1.4.11 . Best regards, Nina On 3 March 2014 23:39, Yannick .Djoumbou <y.d...@gm...> wrote: > > Hello, > > I am a new user of AMBIT. I would like to use SMIRKS and I have browsed > through some examples on this web page<http://ambit.sourceforge.net/AMBIT2-LIBS/ambit2-smarts/examples.html#SMIRKS> > . > I have tried some examples with several SMIRKS but I have add several > issues. > In the attached file, I show a prototype of the JRuby code I use. All the > libraries have been imported properly. > Please have a look at the examples provided in the file above. > > Would you please let me know what is the cause for this? I have looked at > the source code but I could find a solution. > > Cheers, > > Yannick > > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and > the > freedom to use Git, Perforce or both. Make the move to Perforce. > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > Ambit-users mailing list > Amb...@li... > https://lists.sourceforge.net/lists/listinfo/ambit-users > > |
From: Yannick .D. <y.d...@gm...> - 2014-03-03 21:39:46
|
require 'java' require 'lib/cdk/cdk-1.4.19.jar' require 'lib/ambit2/ambit2-core-2.5.4-20140227.134038-19.jar' require 'lib/ambit2/ambit2-base-2.5.4-20140227.134038-19.jar' require 'lib/ambit2/ambit2-smarts-2.5.4-20140104.083219-2.jar' import java.util.Vector import 'ambit2.smarts.SMIRKSManager' import 'ambit2.smarts.SMIRKSReaction' import 'ambit2.smarts.SMIRKSTransform' import 'ambit2.smarts.query.SmartsPatternCDK' import 'org.openscience.cdk.AtomContainer' import 'org.openscience.cdk.smiles.SmilesParser' import 'org.openscience.cdk.smiles.SmilesGenerator' import 'org.openscience.cdk.smiles.smarts.SMARTSQueryTool' import 'org.openscience.cdk.silent.SilentChemObjectBuilder' import 'org.openscience.cdk.tools.manipulator.AtomContainerManipulator' import 'org.openscience.cdk.interfaces.IChemObjectBuilder' builder = SilentChemObjectBuilder.getInstance() sg = SmilesGenerator.new sp = SmilesParser.new(builder) cob = IChemObjectBuilder.new() smrkMan = SMIRKSManager.new(cob) reaction = smrkMan.parse(a given SMIRKS string) molecule = sp.parseSmiles(the query smiles) if smrkMan.applyTransformation(molecule, reaction) return target end Example 1 #SMIRKS / SMILES [*;#6:1][C:2]#[C:3][*;#6:4]>>[*:1]/[C:2](/[H])=[*:3](/[H])[C:4] COCCCC#CCCC Error: Vector.java:744:in `get': java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0 from SMIRKSManager.java:512:in `applyTransformAtLocation' from SMIRKSManager.java:286:in `applyTransformation' from SMIRKSManager.java:194:in `applyTransformation' from NativeMethodAccessorImpl.java:-2:in `invoke0' from NativeMethodAccessorImpl.java:57:in `invoke' from DelegatingMethodAccessorImpl.java:43:in `invoke' from Method.java:606:in `invoke' from JavaMethod.java:470:in `invokeDirectWithExceptionHandling' from JavaMethod.java:328:in `invokeDirect' from InstanceMethodInvoker.java:71:in `call' from CachingCallSite.java:346:in `cacheAndCall' from CachingCallSite.java:204:in `call' Example 2 #SMIRKS / SMILES [*;#6:1][C:2]=[O:3]>>[*;#6:1][C:2]-[O:3][*;#6] Error: No error Example 3 #SMIRKS / SMILES [C:1]=O>>[C:1]1OCCO1 # Taken from the Daylight SMIRKS examples page CCCCCCC=O Error: NoMethodError: undefined method `newInstance' for #<#<Class:0xfb0d6fe>:0x22f2c5be> newInstance at org/jruby/gen/InterfaceImpl765047607.gen:13 (root) at metabolize-with-ambit-cdk.jrb: xxx ==> This refers to the line 29 "if smrkMan.applyTransformation(molecule, reaction)" Example 4 #SMIRKS / SMILES [*:1]C(=O)O>>[*:1]C(N)=O # Taken from the Daylight SMIRKS examples page CCCCCCC(=O)O Error: NoMethodError: undefined method `newInstance' for #<#<Class:0xfb0d6fe>:0x22f2c5be> newInstance at org/jruby/gen/InterfaceImpl765047607.gen:13 (root) at metabolize-with-ambit-cdk.jrb: xxx ==> This refers to the line 29 "if smrkMan.applyTransformation(molecule, reaction)" It looks like the smirks is wrong but I do not think so. I have tried many others but I get a lot of these errors. |