General Purpose ExternalScript Pscript

From Array Suite Wiki

Jump to: navigation, search

A General-purpose Escript for running Docker tools

This Escript is a flexible skeleton for testing Docker images on a variety of input files; in this example it does not currently support a "Resources" section, but as a fun exercise you can add in a @Resources@ macro and add it in!

This is designed to be a testing environment for new Docker scripts; for production integration you will want to extensively customize to your use case, or follow an example Escript.

If you have appropriate permissions on your OmicSoft Server, add this script with Manage_Scripts and start experimenting!

Label=External Tool
Description=Run a pipeline with an external tool (Docker)
Category=Pipeline\External Tool



//External tool input
~@Command@=Command to run in the external tool

~@ImageName@=Docker image name
~@OutputFolder@=Docker output folder
ExternalScriptMenuText=External Tool
ExternalScriptMenuStructure=External Tool

~@ParallelJobNumber@=Parallel jobs number

~@ThreadNumberPerJob@=Number of threads for each job

~@Mode@=File read mode

~@UseCloud@=Run external tool on EC2 instance or server

~@ErrorOnStdErr@=Error on standard error

~@ErrorOnMissingOutput@=Error on missing output


Begin RunEScript /RunOnServer=True;
EScriptName ExternalTool;
Command @Command@;
Options /ParallelJobNumber=@ParallelJobNumber@ /ThreadNumberPerJob=@ThreadNumberPerJob@ /Mode=@Mode@ /ErrorOnStdErr=@ErrorOnStdErr@ /ErrorOnMissingOutput=@ErrorOnMissingOutput@  /RunOnDocker=True /ImageName="@ImageName@" /UseCloud=@UseCloud@ /OutputFolder="@OutputFolder@"; 

Output "@Transform@" /Type=@TransformType@;