Randomly select a representative subset of reads from a FASTQ file
Subsample Reads
Randomly selects a fraction of reads from a FASTQ file to generate a smaller but representative dataset. An optional random seed allows reproducible sampling.
.fastq,
.fq)
.fastq.gz,
.fq.gz)
0 and 1
seqkit sample \
-p 0.1 \
-s 42 \
input.fastq.gz \
-o subsampled.fastq.gz
seqtk sample \
-s 42 \
input.fastq.gz \
0.1 > subsampled.fastq
seqtk sample -s 42 R1.fastq.gz 0.1 \
> R1_sub.fastq
seqtk sample -s 42 R2.fastq.gz 0.1 \
> R2_sub.fastq