-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.nf
43 lines (33 loc) · 861 Bytes
/
main.nf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//nextflow.enable.dsl = 2
/*
Let's try first running Baysor with the Apptainer image.
For this, a job that prints the Baysor help and saves it
to a text file will be used as a workflow.
*/
params.spots = "${projectDir}/spots.csv"
params.mask = "${projectDir}/mask_boundaries.tif"
//docker_img = "docker://segonzal/baysor_installation_inside_ubuntu:latest"
docker_img = "segonzal/baysor_installation_inside_ubuntu:latest"
process SEGMENT {
debug true
container docker_img
cpus 4
memory '8 GB'
// executor 'slurm'
input:
// tuple path(spots), path(mask)
path spots
path mask
output:
stdout
//path '*.txt'
script:
def args = task.ext.args ?: ''
"""
/app/bin/baysor run $spots $mask $args
"""
}
workflow {
test_channel = SEGMENT(params.spots, params.mask)
test_channel.view()
}