|
| 1 | +[ |
| 2 | + { |
| 3 | + "id": "5ddebd1124f2b1c0", |
| 4 | + "type": "tab", |
| 5 | + "label": "Create dataset, launch + monitor", |
| 6 | + "disabled": false, |
| 7 | + "info": "# Create dataset, launch + monitor\n\nThis example demonstrates a typical workflow to create a new dataset in Seqera Platform, then use it to launch and monitor a workflow. These nodes could typically be combined with 3rd party integrations.\n\n1. Configure the Seqera Platform connection with your API token\n2. Edit the example node parameters\n3. Launch the workflow and monitor its execution", |
| 8 | + "env": [] |
| 9 | + }, |
| 10 | + { |
| 11 | + "id": "841b1de7f2520e91", |
| 12 | + "type": "seqera-launch-monitor", |
| 13 | + "z": "5ddebd1124f2b1c0", |
| 14 | + "name": "nf-core/fetchngs", |
| 15 | + "seqera": "", |
| 16 | + "poll": "5", |
| 17 | + "pollType": "num", |
| 18 | + "launchpadName": "nf-core-fetchngs2", |
| 19 | + "launchpadNameType": "str", |
| 20 | + "paramsKey": "{\t \"outdir\":\"s3://nf-core-awsmegatests/node-red-tests/\" & $flowContext(\"myRunName\") & \"/fetchngs/results\",\t \"nf_core_pipeline\":\"rnaseq\",\t \"input\": payload.version.url\t}", |
| 21 | + "paramsKeyType": "jsonata", |
| 22 | + "workspaceId": "", |
| 23 | + "workspaceIdType": "str", |
| 24 | + "sourceWorkspaceId": "", |
| 25 | + "sourceWorkspaceIdType": "str", |
| 26 | + "x": 230, |
| 27 | + "y": 320, |
| 28 | + "wires": [[], ["5208d2bb907ddbf3"], ["23ee14a8fa7d2bc5"]] |
| 29 | + }, |
| 30 | + { |
| 31 | + "id": "af2c2073b4781f2c", |
| 32 | + "type": "inject", |
| 33 | + "z": "5ddebd1124f2b1c0", |
| 34 | + "name": "Trigger launch", |
| 35 | + "props": [ |
| 36 | + { |
| 37 | + "p": "topic", |
| 38 | + "vt": "str" |
| 39 | + } |
| 40 | + ], |
| 41 | + "repeat": "", |
| 42 | + "crontab": "", |
| 43 | + "once": false, |
| 44 | + "onceDelay": 0.1, |
| 45 | + "topic": "", |
| 46 | + "x": 130, |
| 47 | + "y": 240, |
| 48 | + "wires": [["f1a41db5a7ed8618"]] |
| 49 | + }, |
| 50 | + { |
| 51 | + "id": "f1a41db5a7ed8618", |
| 52 | + "type": "seqera-dataset-create", |
| 53 | + "z": "5ddebd1124f2b1c0", |
| 54 | + "name": "", |
| 55 | + "seqera": "", |
| 56 | + "datasetName": "myRunName", |
| 57 | + "datasetNameType": "flow", |
| 58 | + "fileContents": "\"SRR3192657\\nSRR3192658\\nSRR3192408\\nSRR3192409\"", |
| 59 | + "fileContentsType": "json", |
| 60 | + "workspaceId": "", |
| 61 | + "workspaceIdType": "str", |
| 62 | + "description": "A test dataset containing some SRA ids for fetchngs to download", |
| 63 | + "descriptionType": "str", |
| 64 | + "fileType": "csv", |
| 65 | + "x": 300, |
| 66 | + "y": 240, |
| 67 | + "wires": [["841b1de7f2520e91"]] |
| 68 | + }, |
| 69 | + { |
| 70 | + "id": "5208d2bb907ddbf3", |
| 71 | + "type": "seqera-launch-monitor", |
| 72 | + "z": "5ddebd1124f2b1c0", |
| 73 | + "name": "nf-core/rnaseq", |
| 74 | + "seqera": "", |
| 75 | + "poll": "5", |
| 76 | + "pollType": "num", |
| 77 | + "launchpadName": " nf-core-rnaseq", |
| 78 | + "launchpadNameType": "str", |
| 79 | + "paramsKey": "{\t \"input\": \"s3://nf-core-awsmegatests/node-red-tests/\" & $flowContext(\"myRunName\") & \"/fetchngs/results/samplesheet/samplesheet.csv\",\t \"outdir\": \"s3://nf-core-awsmegatests/node-red-tests/\" & $flowContext(\"myRunName\") & \"/rnaseq/results\",\t \"genome\": \"GRCh37\",\t \"skip_alignment\": true\t}", |
| 80 | + "paramsKeyType": "jsonata", |
| 81 | + "workspaceId": "", |
| 82 | + "workspaceIdType": "str", |
| 83 | + "sourceWorkspaceId": "", |
| 84 | + "sourceWorkspaceIdType": "str", |
| 85 | + "x": 440, |
| 86 | + "y": 320, |
| 87 | + "wires": [[], ["db48fac27ee50dbf"], ["13e5309682b3f6e2"]] |
| 88 | + }, |
| 89 | + { |
| 90 | + "id": "77c70ff42938bde1", |
| 91 | + "type": "change", |
| 92 | + "z": "5ddebd1124f2b1c0", |
| 93 | + "name": "Set flow.myRunName", |
| 94 | + "rules": [ |
| 95 | + { |
| 96 | + "t": "set", |
| 97 | + "p": "myRunName", |
| 98 | + "pt": "flow", |
| 99 | + "to": "test-2025-05-07-v2", |
| 100 | + "tot": "str" |
| 101 | + } |
| 102 | + ], |
| 103 | + "action": "", |
| 104 | + "property": "", |
| 105 | + "from": "", |
| 106 | + "to": "", |
| 107 | + "reg": false, |
| 108 | + "x": 420, |
| 109 | + "y": 160, |
| 110 | + "wires": [[]] |
| 111 | + }, |
| 112 | + { |
| 113 | + "id": "388cfb48567a7421", |
| 114 | + "type": "inject", |
| 115 | + "z": "5ddebd1124f2b1c0", |
| 116 | + "name": "Trigger: Set dataset name", |
| 117 | + "props": [ |
| 118 | + { |
| 119 | + "p": "topic", |
| 120 | + "vt": "str" |
| 121 | + } |
| 122 | + ], |
| 123 | + "repeat": "", |
| 124 | + "crontab": "", |
| 125 | + "once": false, |
| 126 | + "onceDelay": 0.1, |
| 127 | + "topic": "", |
| 128 | + "x": 170, |
| 129 | + "y": 160, |
| 130 | + "wires": [["77c70ff42938bde1"]] |
| 131 | + }, |
| 132 | + { |
| 133 | + "id": "13e5309682b3f6e2", |
| 134 | + "type": "debug", |
| 135 | + "z": "5ddebd1124f2b1c0", |
| 136 | + "name": "Workflow 2 - Fail", |
| 137 | + "active": true, |
| 138 | + "tosidebar": true, |
| 139 | + "console": false, |
| 140 | + "tostatus": false, |
| 141 | + "complete": "payload", |
| 142 | + "targetType": "msg", |
| 143 | + "statusVal": "", |
| 144 | + "statusType": "auto", |
| 145 | + "x": 670, |
| 146 | + "y": 340, |
| 147 | + "wires": [] |
| 148 | + }, |
| 149 | + { |
| 150 | + "id": "db48fac27ee50dbf", |
| 151 | + "type": "debug", |
| 152 | + "z": "5ddebd1124f2b1c0", |
| 153 | + "name": "Workflow 2 - Success", |
| 154 | + "active": true, |
| 155 | + "tosidebar": true, |
| 156 | + "console": false, |
| 157 | + "tostatus": false, |
| 158 | + "complete": "payload", |
| 159 | + "targetType": "msg", |
| 160 | + "statusVal": "", |
| 161 | + "statusType": "auto", |
| 162 | + "x": 680, |
| 163 | + "y": 300, |
| 164 | + "wires": [] |
| 165 | + }, |
| 166 | + { |
| 167 | + "id": "23ee14a8fa7d2bc5", |
| 168 | + "type": "debug", |
| 169 | + "z": "5ddebd1124f2b1c0", |
| 170 | + "name": "Workflow 1 - Fail", |
| 171 | + "active": true, |
| 172 | + "tosidebar": true, |
| 173 | + "console": false, |
| 174 | + "tostatus": false, |
| 175 | + "complete": "payload", |
| 176 | + "targetType": "msg", |
| 177 | + "statusVal": "", |
| 178 | + "statusType": "auto", |
| 179 | + "x": 470, |
| 180 | + "y": 400, |
| 181 | + "wires": [] |
| 182 | + } |
| 183 | +] |
0 commit comments