forked from hemberg-lab/scRNA.seq.course
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.nf
34 lines (30 loc) · 744 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
Channel
.fromPath("$baseDir/course_files", type: 'dir')
.into { ch_course_files1; ch_course_files2 }
Channel
.fromPath('s3://scrnaseq-course/data', checkIfExists: false)
.into { ch_data1; ch_data2 }
process html {
publishDir 's3://scrnaseq-course', mode: 'copy' , overwrite: true
input:
file fs from ch_course_files1
file dat from ch_data1
output:
file website
script:
"""
cp -r course_files/* .
Rscript -e "bookdown::render_book('index.html', 'bookdown::gitbook')"
"""
}
process latex {
when: false
input:
file fs from ch_course_files2
file dat from ch_data2
script:
"""
cp -r course_files/* .
Rscript -e "bookdown::render_book('index.html', 'bookdown::pdf_book')"
"""
}