This repository will serve as a template for the CWL workflow and tools required to set up a data-to-model challenge infrastructure.
For more information about the tools, refer to ChallengeWorkflowTemplates.
| Step | Description |
|---|---|
download_submission |
Downloads the predictions file. |
download_goldstandard |
Downloads the goldstandard file. |
validate |
Validates the predictions file. |
email_validation |
Sends an email notification to the partipant/team of the validation results. By default, an email will only be sent if there are errors. |
annotate_validation_with_output |
Updates the submission status (VALIDATED if valid, else INVALID). |
check_status |
Checks the submission status. If the status is INVALID, halt the workflow. |
score |
Scores the predictions file. |
email_score |
Sends an email notification to the participant/team of the scoring results. By default, all scores are sent. |
annotate_submission_with_output |
Updates the submission status (SCORED if successful, else INVALID) |
pip3 install cwltool- A Synapse account/configuration file. Learn more here
- A Synapse Submission object ID. Learn more here
workflow.cwl
| Step | Description | Required? | Example |
|---|---|---|---|
download_goldstandard |
Update synapseid to the Synapse ID of the challenge's goldstandard |
Yes | valueFrom: "syn12345678" |
email_validation |
Set errors_only to false if an email notification about a valid submission should also be sent |
No | default: false |
email_score |
Add metrics and scores to private_annotations if they are to be withheld from the participants |
No | default: [primary_metric, primary_metric_value] |
validate.cwl
| Line | Description | Required? | Example |
|---|---|---|---|
dockerPull: python:3.8.8-slim-buster |
Update the base image if the validation code is not Python | If code is not Python, yes | dockerPull: rocker/r-base:4.0.4 |
entry: | [validation code] |
Remove the sample validation code and replace with validation code for the Challenge | Yes | -- |
- NOTE: expected annotations to write out are
submission_statusandsubmission_errors.
score.cwl
| Line | Description | Required? | Example |
|---|---|---|---|
dockerPull: python:3.8.8-slim-buster |
Update the base image if the validation code is not Python | If code is not Python, yes | dockerPull: rocker/r-base:4.0.4 |
entry: | [scoring code] |
Remove the sample scoring code and replace with scoring code for the Challenge | Yes | -- |
- NOTE: expected annotations to write out are
primary_metric,primary_metric_value, andsubmission_status. If there is a secondary (tie-breaking) metric, include thesecondary_metricandsecondary_metric_valueannotations as well.
cwltool workflow.cwl --submissionId 12345 \
--adminUploadSynId syn123 \
--submitterUploadSynId syn456 \
--workflowSynapseId syn789 \
--synaspeConfig ~/.synapseConfigwhere:
submissionId: Submission ID to run this workflow onadminUploadSynId: Synapse ID of Folder accessible by admin user/teamsubmitterUploadSynId: Synapse ID of Folder accessible by submitterworkflowSynapseId: Synapse ID of File that links to workflow archivesynapseConfig: filepath to .synapseConfig file