This Nextflow pipeline will sub-sample fastq files to a given number of reads. It can work with paired data or single end.
Current parameters are:
params.reads: path to reads, something like this:*fastq.gzparams.outdir: your output pathparams.sample_size: number of reads
The pipeline was built in 30min with the help of Seqera AI.