Skip to content

Instantly share code, notes, and snippets.

@thanhleviet
Created October 6, 2021 12:24
Show Gist options
  • Save thanhleviet/e5531bb90ccb02bdb7dcd71eb4afe613 to your computer and use it in GitHub Desktop.
Save thanhleviet/e5531bb90ccb02bdb7dcd71eb4afe613 to your computer and use it in GitHub Desktop.
Parse and print records in a csv with nextflow
#!/usr/bin/env nextflow
nextflow.enable.dsl=2
ch_pilon = Channel.fromPath(params.sample_sheet)
.splitCsv(header: true)
.map {row -> tuple(row.sample_id,[row.sr1,row.sr2],row.contigs)}
ch_pilon.view()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment