Skip to content

Commit 9a3b10f

Browse files
authored
Merge pull request #115 from kbestak/local-stubs
Local stubs
2 parents 17cd243 + 1afc815 commit 9a3b10f

16 files changed

Lines changed: 419 additions & 19 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

1616
### Fixed
1717

18+
- [PR #115](https://github.com/nf-core/molkart/pull/115) - Added stub section for local modules (@kbestak)
1819
- [PR #110](https://github.com/nf-core/molkart/pull/110) - Fixed starting index of created crops (0->1) (@miri-2000)
1920

2021
### Dependencies

modules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"deepcell/mesmer": {
1414
"branch": "master",
15-
"git_sha": "666652151335353eef2fcd58880bcef5bc2928e1",
15+
"git_sha": "05954dab2ff481bcb999f24455da29a5828af08d",
1616
"installed_by": ["modules"]
1717
},
1818
"ilastik/multicut": {

modules/local/clahe/main.nf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,15 @@ process CLAHE{
2929
END_VERSIONS
3030
"""
3131

32+
stub:
33+
def prefix = task.ext.prefix ?: "${meta.id}"
34+
"""
35+
touch ${prefix}.tiff
36+
37+
cat <<-END_VERSIONS > versions.yml
38+
"${task.process}":
39+
molkart_clahe: \$(apply_clahe.dask.py --version)
40+
END_VERSIONS
41+
"""
42+
3243
}

modules/local/createanndata/main.nf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,15 @@ process CREATE_ANNDATA {
2929
molkart_createanndata: \$(create_anndata.py --version)
3030
END_VERSIONS
3131
"""
32+
33+
stub:
34+
def prefix = task.ext.prefix ?: "${meta.id}"
35+
"""
36+
touch ${prefix}.adata
37+
38+
cat <<-END_VERSIONS > versions.yml
39+
"${task.process}":
40+
molkart_createanndata: \$(create_anndata.py --version)
41+
END_VERSIONS
42+
"""
3243
}

modules/local/createstack/main.nf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,15 @@ process CREATE_STACK {
2828
molkart_stack: \$(stack.py --version)
2929
END_VERSIONS
3030
"""
31+
32+
stub:
33+
def prefix = task.ext.prefix ?: "${meta.id}"
34+
"""
35+
touch ${prefix}.ome.tif
36+
37+
cat <<-END_VERSIONS > versions.yml
38+
"${task.process}":
39+
molkart_createanndata: \$(create_anndata.py --version)
40+
END_VERSIONS
41+
"""
3142
}

modules/local/crophdf5/main.nf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,18 @@ process CROPHDF5 {
2929
molkart_crophdf5: \$(crop_hdf5.py --version)
3030
END_VERSIONS
3131
"""
32+
33+
stub:
34+
def prefix = task.ext.prefix ?: "${meta.id}"
35+
"""
36+
echo "Running in stub mode"
37+
touch ${prefix}_crop1.hdf5
38+
touch ${prefix}_crop2.hdf5
39+
touch ${prefix}_CropSummary.txt
40+
41+
cat <<-END_VERSIONS > versions.yml
42+
"${task.process}":
43+
molkart_crophdf5: \$(echo "Stub version")
44+
END_VERSIONS
45+
"""
3246
}

modules/local/croptiff/main.nf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,17 @@ process CROPTIFF {
2828
molkart_croptiff: \$(crop_tiff.py --version)
2929
END_VERSIONS
3030
"""
31+
32+
stub:
33+
def prefix = task.ext.prefix ?: "${meta.id}"
34+
"""
35+
touch ${prefix}_stack.ome_crop1.tiff
36+
touch ${prefix}_stack.ome_crop2.tiff
37+
touch ${prefix}_stack.ome.crop_overview.png
38+
39+
cat <<-END_VERSIONS > versions.yml
40+
"${task.process}":
41+
molkart_croptiff: \$(crop_tiff.py --version)
42+
END_VERSIONS
43+
"""
3144
}

modules/local/maskfilter/main.nf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ process MASKFILTER {
3737

3838
"""
3939
touch ${prefix}.tif
40+
touch ${prefix}.csv
4041
4142
cat <<-END_VERSIONS > versions.yml
4243
"${task.process}":

modules/local/spot2cell/main.nf

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ process SPOT2CELL{
1818
script:
1919
def args = task.ext.args ?: ''
2020
def prefix = task.ext.prefix ?: "${meta.id}"
21-
2221
"""
2322
spot2cell.py \\
2423
--spot_table ${spot_table} \\
@@ -31,4 +30,15 @@ process SPOT2CELL{
3130
molkart_spot2cell: \$(spot2cell.py --version)
3231
END_VERSIONS
3332
"""
33+
34+
stub:
35+
def prefix = task.ext.prefix ?: "${meta.id}"
36+
"""
37+
touch ${prefix}.csv
38+
39+
cat <<-END_VERSIONS > versions.yml
40+
"${task.process}":
41+
molkart_spot2cell: \$(spot2cell.py --version)
42+
END_VERSIONS
43+
"""
3444
}

modules/local/tiffh5convert/main.nf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,15 @@ process TIFFH5CONVERT {
2828
molkart_crophdf5: \$(crop_hdf5.py --version)
2929
END_VERSIONS
3030
"""
31+
32+
stub:
33+
def prefix = task.ext.prefix ?: "${meta.id}"
34+
"""
35+
touch ${prefix}.hdf5
36+
37+
cat <<-END_VERSIONS > versions.yml
38+
"${task.process}":
39+
molkart_crophdf5: \$(crop_hdf5.py --version)
40+
END_VERSIONS
41+
"""
3142
}

0 commit comments

Comments
 (0)