We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed63186 commit f883842Copy full SHA for f883842
subworkflows/parse_samplesheet/main.nf
@@ -35,8 +35,9 @@ workflow PARSE_SAMPLESHEET {
35
validateSamplesheet(ch_samplesheet)
36
log.info "[INFO] Samplesheet validated"
37
38
+ def sep = ch_samplesheet_file.name.endsWith('.tsv') ? '\t' : ','
39
ch_samplesheet
- .splitCsv(header: true)
40
+ .splitCsv(header: true, sep: sep)
41
.map { row ->
42
43
def tumorPath = row.tumor_bam.trim()
@@ -49,9 +50,10 @@ workflow PARSE_SAMPLESHEET {
49
50
tuple(row.sample_name, row.pair_identifier, tumorFile, normalFile)
51
}
52
.set { sample_info_ch }
53
+
54
55
emit:
56
57
ch_samples = sample_info_ch
58
-}
59
+}
0 commit comments