Validate Sample Count
Last updated
Last updated
The Clarity LIMS NGS Extensions Package includes the validateSampleCount script, which checks the number of samples being input to or output by the step.
This article provides details on the script and its parameters, and LIMS configuration requirements.
The script validates the number of step inputs or outputs, comparing it against configurable minimum and maximum values - determined by -min and -max parameters.
By default, the script runs in count inputs mode and validates the step inputs. If you supply the optional -o parameter with value set to true, the script runs in count outputs mode and validates the step outputs.
The validateSampleCount script is intended to run when the user clicks the Begin Work button on the Ice Bucket screen and starts the step.
To achieve this, configure the automation trigger as follows:
Trigger Location: Step
Trigger Style: Automatic upon entry
Parameter
Description
-u {username}
(Required) LIMS login username
-p {password}
(Required) LIMS login password
-i {stepURI:v2}
(Required) LIMS step URI
-o <true/false>
(Optional) Set this parameter to true to run the script in count outputs mode. If the parameter is omitted or has a value other than true, the script will run in count inputs mode.
-min <#>
(Optional) Specifies the minimum number of inputs / outputs required. If not provided, default minimum is 0.
-max <#>
(Optional) Specifies the maximum number of inputs / outputs required. If not provided, default maximum is 2147483647.