Technical Support Forum Index
Technical Support Forum
Access ChemAxon scientists and developers here. For registration and login issues contact website support.

Support Ticket System is replacing forum

This forum was converted into a searchable archive. You cannot add posts here any more. For support please use our new Ticket System.

Create your first ticket
Problem Rendering Reaction with Infocom MarvinRenderer
To watch this topic for replies  Register (enables digests) or give email address:
This topic is locked: you cannot edit posts or make replies.
Display posts from previous:   
    View previous topic :: View next topic    
Author Message
Luke

Joined: 14 Nov 2012
Posts: 6

View user's profile

Back to top
Link to postPosted: Wed Nov 14, 2012 11:32 amPost subject: Problem Rendering Reaction with Infocom MarvinRenderer Reply with quote

Hi,

I'm using the Knime plug-ins (2.6.0.v0133)  (jp.co.infocom.cheminfo.marvin.renderer.MarvinRenderer) and I'm getting an exception attempting to render reactions.

After some digging it appears that the issue is the format string being sent into the MolImporter.importMol call inside MarvinRenderer.createMol. It's doing this:

mol = MolImporter.importMol(cell.getRxnValue(), MFileFormat.RXN.getName());

which fails. However if I simply emulate this call but WITHOUT the format, it works.

Any ideas ?

Cheers

Luke

Takahiro

Joined: 07 Mar 2005
Posts: 71

View user's profile

Back to top
Link to postPosted: Thu Nov 15, 2012 4:46 amPost subject: Reply with quote

Hi,

Is it possible that you post sample data and error message?

Thank you for your cooperation.

Best,
Taka

Luke

Joined: 14 Nov 2012
Posts: 6

View user's profile

Back to top
Link to postPosted: Tue Nov 20, 2012 12:58 pmPost subject: Reply with quote

Hi Taka,

 

Here is the stack trace:

 

012-11-13 14:51:41,564 DEBUG AWT-EventQueue-0 MarvinRenderer : Error while rendering structure

chemaxon.formats.MolFormatException: Can't read molecule from input.

at chemaxon.formats.MolImporter.importMol(MolImporter.java:1296)

at chemaxon.formats.MolImporter.importMol(MolImporter.java:1485)

at jp.co.infocom.cheminfo.marvin.renderer.MarvinRenderer.createMol(MarvinRenderer.java:493)

at jp.co.infocom.cheminfo.marvin.renderer.MarvinRenderer.setValue(MarvinRenderer.java:71)

at org.knime.core.data.renderer.AbstractPainterDataValueRenderer.getTableCellRendererComponent(AbstractPainterDataValueRenderer.java:203)

at org.knime.core.data.renderer.DefaultDataValueRendererFamily.getTableCellRendererComponent(DefaultDataValueRendererFamily.java:220)

at org.knime.core.data.renderer.SetOfRendererFamilies.getTableCellRendererComponent(SetOfRendererFamilies.java:141)

at javax.swing.JTable.prepareRenderer(JTable.java:5720)

at org.knime.core.node.tableview.TableContentView.prepareRenderer(TableContentView.java:286)

at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2072)

at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1974)

at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1770)

at javax.swing.plaf.ComponentUI.update(ComponentUI.java:143)

at javax.swing.JComponent.paintComponent(JComponent.java:752)

at javax.swing.JComponent.paint(JComponent.java:1029)

at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)

at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:278)

at javax.swing.RepaintManager.paint(RepaintManager.java:1224)

at javax.swing.JComponent.paintForceDoubleBuffered(JComponent.java:1065)

at javax.swing.JViewport.paintView(JViewport.java:1633)

at javax.swing.JViewport.windowBlitPaint(JViewport.java:1564)

at javax.swing.JViewport.setViewPosition(JViewport.java:1118)

at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.vsbStateChanged(BasicScrollPaneUI.java:1029)

at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:1018)

at javax.swing.DefaultBoundedRangeModel.fireStateChanged(DefaultBoundedRangeModel.java:348)

at javax.swing.DefaultBoundedRangeModel.setRangeProperties(DefaultBoundedRangeModel.java:285)

at javax.swing.DefaultBoundedRangeModel.setValue(DefaultBoundedRangeModel.java:151)

at javax.swing.JScrollBar.setValue(JScrollBar.java:446)

at javax.swing.plaf.basic.BasicScrollBarUI$TrackListener.setValueFrom(BasicScrollBarUI.java:1220)

at javax.swing.plaf.basic.BasicScrollBarUI$TrackListener.mouseDragged(BasicScrollBarUI.java:1162)

at java.awt.Component.processMouseMotionEvent(Component.java:6315)

at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3285)

at java.awt.Component.processEvent(Component.java:6036)

at java.awt.Container.processEvent(Container.java:2041)

at java.awt.Component.dispatchEventImpl(Component.java:4630)

at java.awt.Container.dispatchEventImpl(Container.java:2099)

at java.awt.Component.dispatchEvent(Component.java:4460)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4255)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

at java.awt.Container.dispatchEventImpl(Container.java:2085)

at java.awt.Window.dispatchEventImpl(Window.java:2478)

at java.awt.Component.dispatchEvent(Component.java:4460)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

2012-11-13 14:51:41,580 WARN  AWT-EventQueue-0 MarvinRenderer : Error while rendering structure

When I tested this out by manually calling a trivial example : MolIMporter.importMol("[*]C>>[*]O"), this worked however using MolIMporter.importMol("[*]C>>[*]O", MFileFormat.RXN.getName()) failes with the above exception.

 

 

Hope that helps

 

Luke.

Takahiro

Joined: 07 Mar 2005
Posts: 71

View user's profile

Back to top
Link to postPosted: Wed Nov 21, 2012 3:36 amPost subject: Reply with quote

Hi Luke,

Thank you for your updating.
In my understanding, the format of structure you mentioned seems to be smarts format (not rxn format).
Our renderer expects that the RxnCell stores structure as rxn format.
(I'm using expressly format option for the MolIMporter.importMol method. not using automatic recognition.)
Therefore, you should use the SmartsCell for this structure.

Best,
Taka

Luke

Joined: 14 Nov 2012
Posts: 6

View user's profile

Back to top
Link to postPosted: Wed Nov 21, 2012 10:13 amPost subject: Reply with quote

Hi Taka,

 

Thanks for that. I changed the processing in the node to convert to RXN before creating the RxnCell and it now works perfectly !

 

Cheers

Luke

This topic is locked: you cannot edit posts or make replies.
Page 1 of 1


To watch this topic for replies   Register (enables digests) or give email address  
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum