Skip to content

Commit e542859

Browse files
authored
Merge pull request #10 from TRON-Bioinformatics/dev
Update main.nf
2 parents c30be3e + f883842 commit e542859

File tree

1 file changed

+4
-2
lines changed
  • subworkflows/parse_samplesheet

1 file changed

+4
-2
lines changed

subworkflows/parse_samplesheet/main.nf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ workflow PARSE_SAMPLESHEET {
3535
validateSamplesheet(ch_samplesheet)
3636
log.info "[INFO] Samplesheet validated"
3737

38+
def sep = ch_samplesheet_file.name.endsWith('.tsv') ? '\t' : ','
3839
ch_samplesheet
39-
.splitCsv(header: true)
40+
.splitCsv(header: true, sep: sep)
4041
.map { row ->
4142

4243
def tumorPath = row.tumor_bam.trim()
@@ -49,9 +50,10 @@ workflow PARSE_SAMPLESHEET {
4950
tuple(row.sample_name, row.pair_identifier, tumorFile, normalFile)
5051
}
5152
.set { sample_info_ch }
53+
5254

5355
emit:
5456

5557
ch_samples = sample_info_ch
5658

57-
}
59+
}

0 commit comments

Comments
 (0)