workflow parse_sample {
take:
samplesheet // file: /path/to/samplesheet.csv
main:
Channel.fromPath( samplesheet )
.splitCsv ( header:true, sep:'\t' )
.map { create_fastq_channel(it) } // [test1, [stlfr1, stlfr2, pf1, pf2]]
//.view()
.set { reads }
emit: reads
}
above is my current script. how to split by not only tab, but also any kinds of whitespaces (like tabs and/or one or multiple spaces etc)