knime-ip / knip-scijava

KNIP - SciJava Commands Plugin
2 stars 3 forks source link

Output Table Settings #54

Open Squareys opened 8 years ago

Squareys commented 8 years ago

For different types of nodes we require different output settings:

Node Type Replace Append New Table
0:n (Source) x
1:1 (No Multi Columns) x x x
1:1 (Mutli Column In) x x
1:1 (Mutli Column Out) x x x
1:1 (Mutli Column In & Out) x x
1:n x
n:1 x
n:m x
n:0 (Sink) x

@dietzc Did I miss something? :)

dietzc commented 8 years ago

I think we have to consider the following use-cases:

Did I miss something?

imagejan commented 8 years ago

What about a Replace first option or some such (cf. Column Merger node), or a choice of which column to replace (cf. Image Calculator) for multi-column inputs?

For the K-Rows:N-Rows case above (I'm thinking of use cases similar to GroupBy), it would also be useful to have an option to append some information from the input rows, to avoid the need of a subsequent joiner. But this will probably have to be taken care of by the script developer, as it's not generalizable, right?

dietzc commented 8 years ago

What about a Replace first option or some such (cf. Column Merger node), or a choice of which column to replace (cf. Image Calculator) for multi-column inputs?

I like the idea of being able to determine the column to be replaced.

For the K-Rows:N-Rows case above (I'm thinking of use cases similar to GroupBy), it would also be useful to have an option to append some information from the input rows, to avoid the need of a subsequent joiner. But this will probably have to be taken care of by the script developer, as it's not generalizable, right?

I was thinking about this a lot and I didn't find a nice solution at all, because you don't know which input row should be appended to which output-row (as the resulting output-row may depend on many input rows).