Skip to content

Commit 892db4a

Browse files
feat: attach default dataset; fix CO link
1 parent 81e4d35 commit 892db4a

6 files changed

Lines changed: 44 additions & 12 deletions

File tree

.codeocean/app-panel.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"version": 1,
3+
"general": {
4+
"title": "MOSuite-pipeline",
5+
"instructions": "differential multi-omics analysis pipeline"
6+
},
7+
"datasets": [
8+
{
9+
"id": "bd9a7518-66cb-4d50-9992-df3271aeb807",
10+
"name": "bulk RNA-seq training dataset"
11+
}
12+
],
313
"processes": [
414
"capsule_mosuite_create_2",
515
"capsule_mosuite_clean_1"

.codeocean/datasets.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"version": 1,
3+
"attached_datasets": [
4+
{
5+
"id": "bd9a7518-66cb-4d50-9992-df3271aeb807",
6+
"mount": "nidap-1.0"
7+
}
8+
]
9+
}

.codeocean/nextflow.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"resources": {
1414
"cpus": 1,
15-
"memory": 8
15+
"memory": 4
1616
},
1717
"inputs": [
1818
{
@@ -21,7 +21,10 @@
2121
"type": "capsule",
2222
"name": "MOSuite-create"
2323
}
24-
]
24+
],
25+
"results": {
26+
"id": "ab07963e-d9e0-489e-b776-70f6ef2ef73b"
27+
}
2528
},
2629
{
2730
"name": "capsule_mosuite_create_2",
@@ -34,7 +37,7 @@
3437
},
3538
"resources": {
3639
"cpus": 1,
37-
"memory": 8
40+
"memory": 4
3841
}
3942
}
4043
]

.codeocean/pipeline-layout.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
"id": "xy-edge__capsule_mosuite_create_2-capsule_mosuite_clean_1",
55
"source": "capsule_mosuite_create_2",
66
"target": "capsule_mosuite_clean_1"
7+
},
8+
{
9+
"id": "xy-edge__capsule_mosuite_clean_1-results",
10+
"source": "capsule_mosuite_clean_1",
11+
"target": "results"
712
}
813
],
914
"nodes": [
@@ -40,10 +45,10 @@
4045
"type": "capsule"
4146
}
4247
],
43-
"timestamp": 1769554760195,
48+
"timestamp": 1769624886972,
4449
"viewport": {
45-
"x": 6,
46-
"y": 87,
50+
"x": -138,
51+
"y": 162,
4752
"zoom": 0.75
4853
}
4954
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# MOSuite-CodeOcean pipeline
22

3-
- [Code Ocean pipeline](https://poc-nci.codeocean.io/capsule/1830412/tree)
3+
- [Code Ocean pipeline](https://poc-nci.codeocean.io/capsule/2912065/tree)

pipeline/main.nf

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/usr/bin/env nextflow
2-
// hash:sha256:4b0bcda131abb27fe9f74befd9dd96e7bdb41c86bd4eef2bba0c0bccf8715402
2+
// hash:sha256:fc7707155fa4333219b4c0480ac4dd17544f4f655aaee1688d233ee4abbbd98b
33

44
// capsule - MOSuite-create
55
process capsule_mosuite_create_2 {
66
tag 'capsule-6541445'
77
container "$REGISTRY_HOST/published/5ce5f88d-980d-4e61-b3a4-ef4a0ce48030:v3"
88

99
cpus 1
10-
memory '7.5 GB'
10+
memory '3.75 GB'
1111

1212
output:
1313
path 'capsule/results/*', emit: to_capsule_mosuite_clean_1_1
@@ -19,7 +19,7 @@ process capsule_mosuite_create_2 {
1919
2020
export CO_CAPSULE_ID=5ce5f88d-980d-4e61-b3a4-ef4a0ce48030
2121
export CO_CPUS=1
22-
export CO_MEMORY=8053063680
22+
export CO_MEMORY=4026531840
2323
2424
mkdir -p capsule
2525
mkdir -p capsule/data && ln -s \$PWD/capsule/data /data
@@ -50,19 +50,24 @@ process capsule_mosuite_clean_1 {
5050
container "$REGISTRY_HOST/published/ab07963e-d9e0-489e-b776-70f6ef2ef73b:v2"
5151

5252
cpus 1
53-
memory '7.5 GB'
53+
memory '3.75 GB'
54+
55+
publishDir "$RESULTS_PATH", saveAs: { filename -> new File(filename).getName() }
5456

5557
input:
5658
path 'capsule/data/'
5759

60+
output:
61+
path 'capsule/results/*'
62+
5863
script:
5964
"""
6065
#!/usr/bin/env bash
6166
set -e
6267
6368
export CO_CAPSULE_ID=ab07963e-d9e0-489e-b776-70f6ef2ef73b
6469
export CO_CPUS=1
65-
export CO_MEMORY=8053063680
70+
export CO_MEMORY=4026531840
6671
6772
mkdir -p capsule
6873
mkdir -p capsule/data && ln -s \$PWD/capsule/data /data

0 commit comments

Comments
 (0)