Skip to content

Commit 55f1919

Browse files
Initial commit
0 parents  commit 55f1919

7 files changed

Lines changed: 205 additions & 0 deletions

File tree

.codeocean/app-panel.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": 1,
3+
"processes": [
4+
"capsule_mosuite_create_2"
5+
]
6+
}

.codeocean/nextflow.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"version": 2,
3+
"processes": [
4+
{
5+
"name": "capsule_mosuite_clean_1",
6+
"capsule": {
7+
"id": "ab07963e-d9e0-489e-b776-70f6ef2ef73b",
8+
"name": "MOSuite-clean",
9+
"slug": "5801113",
10+
"version": 1,
11+
"app_panel": true
12+
},
13+
"resources": {
14+
"cpus": 1,
15+
"memory": 8
16+
},
17+
"inputs": [
18+
{
19+
"id": "uqbFE30XQBTDxBxR",
20+
"source_id": "capsule_mosuite_create_2",
21+
"type": "capsule",
22+
"name": "MOSuite-create"
23+
}
24+
]
25+
},
26+
{
27+
"name": "capsule_mosuite_create_2",
28+
"capsule": {
29+
"id": "5ce5f88d-980d-4e61-b3a4-ef4a0ce48030",
30+
"name": "MOSuite-create",
31+
"slug": "6541445",
32+
"version": 2,
33+
"app_panel": true
34+
},
35+
"resources": {
36+
"cpus": 1,
37+
"memory": 8
38+
}
39+
}
40+
]
41+
}

.codeocean/pipeline-layout.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"edges": [
3+
{
4+
"id": "xy-edge__capsule_mosuite_create_2-capsule_mosuite_clean_1",
5+
"source": "capsule_mosuite_create_2",
6+
"target": "capsule_mosuite_clean_1"
7+
}
8+
],
9+
"nodes": [
10+
{
11+
"data": {
12+
"capsule_id": "ab07963e-d9e0-489e-b776-70f6ef2ef73b"
13+
},
14+
"id": "capsule_mosuite_clean_1",
15+
"position": {
16+
"x": 842.6666666666667,
17+
"y": 270
18+
},
19+
"selected": false,
20+
"type": "capsule"
21+
},
22+
{
23+
"id": "results",
24+
"position": {
25+
"x": 960,
26+
"y": 614
27+
},
28+
"type": "results"
29+
},
30+
{
31+
"data": {
32+
"capsule_id": "5ce5f88d-980d-4e61-b3a4-ef4a0ce48030"
33+
},
34+
"id": "capsule_mosuite_create_2",
35+
"position": {
36+
"x": 718.6666666666666,
37+
"y": 31.333333333333343
38+
},
39+
"selected": true,
40+
"type": "capsule"
41+
}
42+
],
43+
"timestamp": 1769554760195,
44+
"viewport": {
45+
"x": 6,
46+
"y": 87,
47+
"zoom": 0.75
48+
}
49+
}

.codeocean/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"version": 1,
3+
"nextflow_version": "24.10.4",
4+
"verbose_logs": true
5+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/data/

metadata/metadata.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
metadata_version: 1
2+
name: MOSuite-pipeline
3+
description: MOSuite pipeline for differential analysis of multi-omic data
4+
tags:
5+
- Bulk RNA-seq
6+
- MOSuite
7+
authors:
8+
- name: CCR Collaborative Bioinformatics Resource
9+
- name: Kelly Sovacool

pipeline/main.nf

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
#!/usr/bin/env nextflow
2+
// hash:sha256:e60c74eb0db9870da170bd3833dbe435cba6b383333fc48223204b0a17b1e6f0
3+
4+
// capsule - MOSuite-create
5+
process capsule_mosuite_create_2 {
6+
tag 'capsule-6541445'
7+
container "$REGISTRY_HOST/published/5ce5f88d-980d-4e61-b3a4-ef4a0ce48030:v2"
8+
9+
cpus 1
10+
memory '7.5 GB'
11+
12+
output:
13+
path 'capsule/results/*', emit: to_capsule_mosuite_clean_1_1
14+
15+
script:
16+
"""
17+
#!/usr/bin/env bash
18+
set -e
19+
20+
export CO_CAPSULE_ID=5ce5f88d-980d-4e61-b3a4-ef4a0ce48030
21+
export CO_CPUS=1
22+
export CO_MEMORY=8053063680
23+
24+
mkdir -p capsule
25+
mkdir -p capsule/data && ln -s \$PWD/capsule/data /data
26+
mkdir -p capsule/results && ln -s \$PWD/capsule/results /results
27+
mkdir -p capsule/scratch && ln -s \$PWD/capsule/scratch /scratch
28+
29+
echo "[${task.tag}] cloning git repo..."
30+
if [[ "\$(printf '%s\n' "2.20.0" "\$(git version | awk '{print \$3}')" | sort -V | head -n1)" = "2.20.0" ]]; then
31+
git clone --filter=tree:0 --branch v2.0 "https://\$GIT_ACCESS_TOKEN@\$GIT_HOST/capsule-6541445.git" capsule-repo
32+
else
33+
git clone --branch v2.0 "https://\$GIT_ACCESS_TOKEN@\$GIT_HOST/capsule-6541445.git" capsule-repo
34+
fi
35+
mv capsule-repo/code capsule/code && ln -s \$PWD/capsule/code /code
36+
rm -rf capsule-repo
37+
38+
echo "[${task.tag}] running capsule..."
39+
cd capsule/code
40+
chmod +x run
41+
./run ${params.capsule_mosuite_create_2_args}
42+
43+
echo "[${task.tag}] completed!"
44+
"""
45+
}
46+
47+
// capsule - MOSuite-clean
48+
process capsule_mosuite_clean_1 {
49+
tag 'capsule-5801113'
50+
container "$REGISTRY_HOST/published/ab07963e-d9e0-489e-b776-70f6ef2ef73b:v1"
51+
52+
cpus 1
53+
memory '7.5 GB'
54+
55+
input:
56+
path 'capsule/data/'
57+
58+
script:
59+
"""
60+
#!/usr/bin/env bash
61+
set -e
62+
63+
export CO_CAPSULE_ID=ab07963e-d9e0-489e-b776-70f6ef2ef73b
64+
export CO_CPUS=1
65+
export CO_MEMORY=8053063680
66+
67+
mkdir -p capsule
68+
mkdir -p capsule/data && ln -s \$PWD/capsule/data /data
69+
mkdir -p capsule/results && ln -s \$PWD/capsule/results /results
70+
mkdir -p capsule/scratch && ln -s \$PWD/capsule/scratch /scratch
71+
72+
echo "[${task.tag}] cloning git repo..."
73+
if [[ "\$(printf '%s\n' "2.20.0" "\$(git version | awk '{print \$3}')" | sort -V | head -n1)" = "2.20.0" ]]; then
74+
git clone --filter=tree:0 --branch v1.0 "https://\$GIT_ACCESS_TOKEN@\$GIT_HOST/capsule-5801113.git" capsule-repo
75+
else
76+
git clone --branch v1.0 "https://\$GIT_ACCESS_TOKEN@\$GIT_HOST/capsule-5801113.git" capsule-repo
77+
fi
78+
mv capsule-repo/code capsule/code && ln -s \$PWD/capsule/code /code
79+
rm -rf capsule-repo
80+
81+
echo "[${task.tag}] running capsule..."
82+
cd capsule/code
83+
chmod +x run
84+
./run ${params.capsule_mosuite_clean_1_args}
85+
86+
echo "[${task.tag}] completed!"
87+
"""
88+
}
89+
90+
workflow {
91+
// run processes
92+
capsule_mosuite_create_2()
93+
capsule_mosuite_clean_1(capsule_mosuite_create_2.out.to_capsule_mosuite_clean_1_1)
94+
}

0 commit comments

Comments
 (0)