-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest1.nf
55 lines (40 loc) · 787 Bytes
/
test1.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/local/bin/env nextflow
nextflow.enable.dsl=2
process test {
input:
val id
output:
stdout
script:
"""
printf $id
"""
}
/*
* update ERDA folder
*/
process updateERDA {
// when using computerome profile
label 'single_core'
module 'lftp/4.9.2'
input:
val id
output:
stdout
script:
"""
echo "updating $id to ERDA"
lftp io.erda.dk -p 21 -e "mirror -R $params.GAGA_Bac_screen_dir/$id/results/ /GAGA/Microbiome/Results/Latest/22012021/$id; bye"
"""
}
/*
* kraken2 taxonomy profiling
*/
GAGAid_ch = Channel.fromPath(params.GAGA_IDs)
.splitText() { it.trim() }
workflow {
// GAGAid_ch_again = test(GAGAid_ch)
// GAGAid_ch_again.view{ it }
results_ch = updateERDA(GAGAid_ch)
results_ch.view{ it }
}