-
Notifications
You must be signed in to change notification settings - Fork 0
/
PHLEX_setup.nf
executable file
·55 lines (38 loc) · 1.02 KB
/
PHLEX_setup.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
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env nextflow
nextflow.enable.dsl=2
params.path = '.'
params.runScript = "$PWD/TRACERx-PHLEX/runPHLEX.sh"
process download_test_data {
publishDir "${params.path}", mode: 'move'
output: file '*/*.tiff'
"""
wget https://zenodo.org/record/8263899/files/PHLEX_test_images.zip
unzip PHLEX_test_images.zip -d PHLEX_test_images
rm PHLEX_test_images.zip
"""
}
process download_weights {
publishDir "${params.path}", mode: 'move'
output:
file '*/*.hdf5'
file '*/*.pkl'
"""
wget https://zenodo.org/record/8263899/files/deep-imcyto_weights.zip
unzip deep-imcyto_weights.zip
rm deep-imcyto_weights.zip
"""
}
process moveRunScript{
publishDir "${params.path}", mode: 'copy'
input: path rs
output: file 'runPHLEX.sh'
"""
echo "Moving ${rs} to ${params.path}"
"""
}
workflow {
println("Performing PHLEX setup.")
download_test_data()
download_weights()
moveRunScript(params.runScript)
}