forked from nf-core/sarek
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrecalibrate_csv.nf
More file actions
20 lines (18 loc) · 797 Bytes
/
recalibrate_csv.nf
File metadata and controls
20 lines (18 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
// RECALIBRATE_CSV
//
workflow RECALIBRATE_CSV {
take:
cram_recalibrated_index // channel: [mandatory] meta, cram, crai
main:
// Creating csv files to restart from this step
cram_recalibrated_index.collectFile(keepHeader: true, skip: 1, sort: true, storeDir: "${params.outdir}/csv") { meta, file, index ->
patient = meta.patient
sample = meta.sample
sex = meta.sex
status = meta.status
file = "${params.outdir}/preprocessing/${sample}/recalibrated/${file.name}"
index = "${params.outdir}/preprocessing/${sample}/recalibrated/${index.name}"
["recalibrated.csv", "patient,sex,status,sample,cram,crai\n${patient},${sex},${status},${sample},${file},${index}\n"]
}
}