Use the following approach when integrating a new script into the Scripting Node:

Procedure

  1. Create a new empty script.
  2. The script contents depend on what you want it to do. For practice, the media’s Scripting Node folder contains scripts that you can use as templates.
  3. Use an example dataset with the type of result for which the script will be used.
  4. Add the Scripting Node to the workflow, and make sure that the Archive Datafiles parameter is True.
  5. This setting will export all of the files required by the script.
  6. Modify the custom script to accept the node_args.json file.
  7. This information is detailed in Reading the node_args.json file into the script.
  8. Load the text files containing the Proteome Discoverer result information into the script.
  9. If you are writing data back into the Proteome Discoverer application, do the following:
  10. Create the output text files.
  11. Create the connection tables (if necessary).
  12. Create the node_response.json file.
  13. This information is detailed in Writing results as new columns to an existing table.
  14. Test the script within the application.
  15. Testing is an iterative process. The primary challenge is to correctly format the output text files and the node_response.json files so that the Scripting Node can recognize the results.
  16. If the node_response.json file is not recognized (and results are not presented in the application), compare it to the node_args.json file to make sure the structure is the same.