mhoban / rainbow_bridge

GNU General Public License v3.0
5 stars 2 forks source link

Improve input file handling #6

Closed mhoban closed 2 months ago

mhoban commented 1 year ago

see here: https://github.com/nextflow-io/nextflow/issues/236#issuecomment-314018546

relevant code:

params.single = false
params.reads = "data/*{1,2}.fastq.gz"

Channel.fromFilePairs( params.reads, size: params.single ? 1 : 2  ) |
  ifEmpty { exit 1, "Cannot find any reads matching: ${params.reads}\nNB: Path needs to be enclosed in quotes!\nIf this is single-end data, please specify --single on the command line."  } |
  view
mhoban commented 2 months ago

I think we're at the point where what's currently being done works well enough, especially after #81 is complete