User login

KNIME Developers

warning: Invalid argument supplied for foreach() in /srv/www/htdocs/knime_tech/sites/all/modules/cck/content.module on line 1284.
Developers extending the functionality of KNIME with their own Nodes

Introducing a knime molecule type

There were some discussion about this at the KNIME UGM  last week and then Simon posted the following request to the RDKit, Indigo, and CDK forums:

With the RDKit, Indigo, and CDK chemistry nodes become more used and expanded, and often used together within a workflow, are there any plans to allow the Molecule to CDK node to accept Indigo and RDKit molecules to save on the number of translater nodes required.

I think this would be a great benefit to KNIME users and could (perhaps) reduce the amount of duplication of work currently going on among the open-source node packages.

An outline of how this could work, as something to poke holes in (apologies in advance if my rough outline doesn't feel like Java... that's the Python/C++ programmer showing):

We create a type KnimeMolCell that supports getSmilesValue() and getSdfValue() as well as some new methods: hasSmilesValue(), hasSdfValue(), hasCustomValue(), getCustomValue() and setCustomValue() [probably need to refine the names a bit]. The custom value methods are used to return specialized molecule types like RDKit, Indigo, CDK, Maestro, etc. They each take an argument defining which custom type is of interest.

Nodes that uses these cells can rely on them having at least a SMILES or SDF value to work with. They can then check to see if there is a more specialized format avaiable and, if it's not there, add it. For example an RDKit node would start by checking if there is an RDKit value available, if so it would use that value. If not, it would create one based on the SMILES or SDF data and store it on the cell.

There would obviously, be a strong constraint on nodes working with these types: modifying the SMILES or SDF once the node is created would not, under any circumstances, be allowed.

This would have the advantage that RDKit, Indigo, and CDK nodes could be chained without converter nodes in the middle, and without having the nodes having to repeatedly re-process the molecules.

comments? thoughts?

-greg

Create a library to add as Plugin Dependency of a node

Hi!

I have several KNIME nodes created as different projects in Eclipse. In each one of these nodes there is a part where I have to use a common set of java classes (in a very dirty way I have to "repeat" java code). As a first, and rudimentary solution, I defined the common java classes just in one node. Thus, in the other nodes I only had to add the first node as a "Plugin Dependency". It worked fine (not elegant but fine). Currently, I would like to define some kind of "Library Plugin" to store _only_ common java classes tipically used along all my nodes. To do this I have created a normal Plug-in Project in Eclipse where I have developed those common java classes. Then if a new node needs those classes I only have to add this "Library Plugin" as a Dependenciy.

Honestly I am not sure if it is the correct way. Is there a standard or, let's say, correct way to manage with this  situation ?

thanks in advance!

Oscar

How to avoid reset when settings do not change?

Hi there,

while doing my first steps in node development I came across one thing that simply won't work in my tests. When I configure and execute a KNIME node, it will realize any changes to the settings model, i.e. if nothing changes, there will be no reset. However, my nodes always perform a reset, even if I did not touch any option in the dialog.

Perhaps it's due to the fact I use NodeDialogPane and therefore the settings are saved in another fashion... do I just miss something?

If anybody has a clue, please, give me a sign. Thx.

How to deal with settings when extending existing nodes

 

Hello,

I have the following situation:
I developed a node, and it was used by a user. After that I added additional settings (for example SettingsModelBoolean) and submitted this node to the user. User opens a workflow with this updated node and gets an error because that was no configuration for this new option.

In this case I have to catch this exception and use the default value.

But should I inform a user about it somehow? For example I can log a message about it.

Or I can mark this node somehow, and make a workflow as changed. 

I found a method setDirtyAfterLoad that is called if settings were loaded with warnings, but how to call explicitly?

What is the best strategy to extend existing nodes and keep the consistency with the previously saved settings?

Best regards,
Mikhail

SDK for 2.5.1 has incomplete javadocs

The .../knime_doc/javadoc/ directory in the 2.5.1 SDK has what looks to be only a subset of the complete javadocs which could be found in the 2.4.2 SDK directory of the same name.

Is this a known problem with the SDK deployment, or should consumers of the SDK treat the 2.5.1 like a diff and copy over the new files, or ... ?

How to build KNIME with minor improvements

Dear KNIME users.

I have short question concerning the general behaviour of KNIME. While I like KNIME a lot and are very glad that I can use it, there are some small things that I'd prefer to be different, like:

- Sorting a data table after the RowID should not result in 'Row 1', 'Row 10', 'Row 2'... but in 'Row 1' , 'Row 2'...

- Hitting the ESC key should close dialogs with the cancel option

I am aware that those are minor things and are easily changed. My preferred way to do this would be fix those things myself. But how could I do that? I haven't found anywhere the complete source code of KNIME, so I could fix those things and build KNIME.

 

Thanks a lot for your help,

 

Best,

 

Tobi

String to Number node problem and Flow variables option confusion

Hello everyone,

                          I am working on latest knime version 2.5.1. I have dataset which contains fields of string type. I want this string dataset to be converted into numerical dataset. So i used String to Number node. But string values are not getting converted instead giving blanks at that place and showing warnings  like values are not parsed. How to make String to number node execute properly?. Is there anyother way in knime to convert the String dataset into numerical dataset?. Please Guide me in this

                          One more doubt in knime latest version is, for every node there is flow variable tab is there, within that so many options are available. i Tried to understand it and searched for that but unable to find. So please let me know about it.

                                     Thanking you

type cast - another question

Hi Bernd (or anybody else),

I have another question concerning the issue with the type cast (see here: http://tech.knime.org/forum/knime-users/bug-in-rename-node#comment-25159)

I've implemented the column type test as you suggested and now the column (which is a 'double' casted to 'int' with the 'rename column'-node) is available in the configuration. But when I try to execute the node, I get this error:

Execute failed: Could not cast attribute testcolumn (null) to double. Use the String2Number node to convert the type

I've changed this test for a lot of cases and now I'm afraid that nothing will work anymore...

Antje

Job offer: 6 month research position at BfR in Berlin

Hi everyone,

did not know whether this is the right place to post our job offer, but hopefully those of you that are currently looking for a new one will have a look into this forum.

In case of any questions feel free to get back to me or to Mrs. Käsbohrer - as announced in the attached desciption.

Merry Christmas,

Matthias

 

Matthias Filter
Bundesinstitut für Risikobewertung

Fachgruppe Epidemiologie und Zoonosen
Abteilung 4  - Biologische Sicherheit
-
Federal Institute for Risk Assessment
Unit Epidemiology and Zoonoses
Department 4  - Biological Safety
-
Max-Dohrn-Straße 8–10, 10589 Berlin, Germany
Tel. +49 30 18412-2209
Fax +49 30 18412-2952
www.bfr.bund.de
matthias.filter@bfr.bund.de

n/a