Split large FASTA or FASTQ files into smaller chunks
Split FASTA / FASTQ Files
Splitting FASTA or FASTQ files is a common bioinformatics operation where large sequence files are divided into smaller chunks based on a specified number of lines. This simplifies data management and enables parallel processing workflows.
.fasta, .fa,
.fna)
.fastq, .fq)
.gz)
Split a FASTQ file into chunks of 40,000 lines:
split -l 40000 input.fastq chunk_
Split a FASTA file by sequence count using SeqKit:
seqkit split2 -s 10000 input.fasta -O split_output/