Skip to end of metadata
Go to start of metadata

A file input can be used to write data input into a file that can then be read or processed by the commands specified in the command tab.

Each call of a tool service works within its own specially created sub-directory of a directory specified by the location. When data is written to a file, the file is within the sub-directory for that call.

Taverna can use link commands to limit the copying of data. However, you can still describe the tool as if the data was being written to a file.

The command is sh First_number number2.txt

This example shows that data coming into the ports First_number and Second_number will be written to files. For First_number, the Use port name for file box is ticked (as by default) and so, any data on First_number will be written to a file called First_number. For Second_number, the Use port name for file box is not ticked and the file is explicitly specified as number2.txt. You can specify whether the file will be used to store Binary or Text data.

The File type can affect how the tool service works. If you pass binary data into a text file, then Taverna could perform character encoding conversion on the data and store the wrong information. Similarly, passing text data into a binary file may prevent character encoding conversion taking place, causing problems if the data is expected to be text.

You can remove a file input by clicking the Remove button to the lower right of its area. This will remove both the input port and any writing to the corresponding file.

You can add a new file input by clicking the Add file input button. You will probably want to change the name of the port.

  • None