Skip to content

Commit f54000c

Browse files
committed
added container info to nf scripts
1 parent 1541d51 commit f54000c

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

helper-functions/tests/files-exist.nf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,32 @@
2222
* Junjun Zhang <junjun.zhang@oicr.on.ca>
2323
*/
2424

25+
/********************************************************************/
26+
/* this block is auto-generated based on info from pkg.json where */
27+
/* changes can be made if needed, do NOT modify this block manually */
2528
nextflow.enable.dsl = 2
29+
version = '1.0.0' // package version
2630

31+
container = [
32+
'ghcr.io': 'ghcr.io/icgc-argo/data-processing-utility-tools.helper-functions'
33+
]
34+
default_container_registry = 'ghcr.io'
35+
/********************************************************************/
36+
37+
// universal params
38+
params.container_registry = ""
39+
params.container_version = ""
40+
params.container = ""
41+
42+
params.cpus = 1
43+
params.mem = 1 // GB
2744

2845
process filesExist {
46+
container "${params.container ?: container[params.container_registry ?: default_container_registry]}:${params.container_version ?: version}"
47+
48+
cpus params.cpus
49+
memory "${params.mem} GB"
50+
2951
input:
3052
val file_names // file name shall not have spaces
3153
val expect // 'exist' for files expected to exist; 'not_exist' for files expected not exist

helper-functions/tests/generate-dummy-file.nf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,32 @@
2222
* Junjun Zhang <junjun.zhang@oicr.on.ca>
2323
*/
2424

25+
/********************************************************************/
26+
/* this block is auto-generated based on info from pkg.json where */
27+
/* changes can be made if needed, do NOT modify this block manually */
2528
nextflow.enable.dsl = 2
29+
version = '1.0.0' // package version
2630

31+
container = [
32+
'ghcr.io': 'ghcr.io/icgc-argo/data-processing-utility-tools.helper-functions'
33+
]
34+
default_container_registry = 'ghcr.io'
35+
/********************************************************************/
36+
37+
// universal params
38+
params.container_registry = ""
39+
params.container_version = ""
40+
params.container = ""
41+
42+
params.cpus = 1
43+
params.mem = 1 // GB
2744

2845
process generateDummyFile {
46+
container "${params.container ?: container[params.container_registry ?: default_container_registry]}:${params.container_version ?: version}"
47+
48+
cpus params.cpus
49+
memory "${params.mem} GB"
50+
2951
input:
3052
val file_name
3153
val file_size

0 commit comments

Comments
 (0)