11#! /usr/bin/env nextflow
2- // hash:sha256:e60c74eb0db9870da170bd3833dbe435cba6b383333fc48223204b0a17b1e6f0
2+ // hash:sha256:9b16fd2671702fcc56078aa8b25ef1fb8c069f03988557476eb9af8fad550618
33
44// capsule - MOSuite-create
55process capsule_mosuite_create_2 {
66 tag ' capsule-6541445'
7- container " $REGISTRY_HOST /published/5ce5f88d-980d-4e61-b3a4-ef4a0ce48030:v2 "
7+ container " $REGISTRY_HOST /published/5ce5f88d-980d-4e61-b3a4-ef4a0ce48030:v3 "
88
99 cpus 1
1010 memory ' 7.5 GB'
@@ -28,9 +28,9 @@ process capsule_mosuite_create_2 {
2828
2929 echo "[${ task.tag} ] cloning git repo..."
3030 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
31+ git clone --filter=tree:0 --branch v3 .0 "https://\$ GIT_ACCESS_TOKEN@\$ GIT_HOST/capsule-6541445.git" capsule-repo
3232 else
33- git clone --branch v2 .0 "https://\$ GIT_ACCESS_TOKEN@\$ GIT_HOST/capsule-6541445.git" capsule-repo
33+ git clone --branch v3 .0 "https://\$ GIT_ACCESS_TOKEN@\$ GIT_HOST/capsule-6541445.git" capsule-repo
3434 fi
3535 mv capsule-repo/code capsule/code && ln -s \$ PWD/capsule/code /code
3636 rm -rf capsule-repo
@@ -47,14 +47,19 @@ process capsule_mosuite_create_2 {
4747// capsule - MOSuite-clean
4848process capsule_mosuite_clean_1 {
4949 tag ' capsule-5801113'
50- container " $REGISTRY_HOST /published/ab07963e-d9e0-489e-b776-70f6ef2ef73b:v1 "
50+ container " $REGISTRY_HOST /published/ab07963e-d9e0-489e-b776-70f6ef2ef73b:v2 "
5151
5252 cpus 1
5353 memory ' 7.5 GB'
5454
55+ publishDir " $RESULTS_PATH " , saveAs: { filename -> new File (filename). getName() }
56+
5557 input:
5658 path ' capsule/data/'
5759
60+ output:
61+ path ' capsule/results/*'
62+
5863 script:
5964 """
6065 #!/usr/bin/env bash
@@ -71,9 +76,9 @@ process capsule_mosuite_clean_1 {
7176
7277 echo "[${ task.tag} ] cloning git repo..."
7378 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
79+ git clone --filter=tree:0 --branch v2 .0 "https://\$ GIT_ACCESS_TOKEN@\$ GIT_HOST/capsule-5801113.git" capsule-repo
7580 else
76- git clone --branch v1 .0 "https://\$ GIT_ACCESS_TOKEN@\$ GIT_HOST/capsule-5801113.git" capsule-repo
81+ git clone --branch v2 .0 "https://\$ GIT_ACCESS_TOKEN@\$ GIT_HOST/capsule-5801113.git" capsule-repo
7782 fi
7883 mv capsule-repo/code capsule/code && ln -s \$ PWD/capsule/code /code
7984 rm -rf capsule-repo
0 commit comments