Repository navigation
Getting Started
This is the path I recommend for a first look: a tiny file, and one command at a time, so you can see exactly what each one does. It takes a few minutes, and assumes z-fastq is on your PATH (Installation).
Save this as reads.fastq. It holds two records, one of five bases and one of three:
@read-1
ACGTN
+
IIIII
@read-2
GGC
+
III
z-fastq check reads.fastqNothing is printed. For check, silence and exit status 0 mean the file is valid, which is exactly what a script wants. Validation explains what is checked.
z-fastq count reads.fastq
z-fastq stats reads.fastqcount prints 2. stats adds bases, lengths, base composition, GC, and quality; Counting and statistics explains each number.
gzip -c reads.fastq > reads.fastq.gz
z-fastq stats reads.fastq.gz
gzip -dc reads.fastq.gz | z-fastq count -z-fastq recognizes gzip by its first bytes rather than by the .gz name, and reads standard input only when you write - (Input and output).
z-fastq sample --fraction 0.5 --seed 3 reads.fastq > sample.fastqWith seed 3 it keeps one of the two records. Run it again: the same seed and input always give the same records. Sampling also covers exact counts and pairs.
- Paired reads? Read Paired reads, then Processing paired reads.
- A script or workflow? Read Automation for exit statuses and partial output.
- An option? The Command cheat sheet has them all.
z-fastq v0.2.1 | Home | Getting started | Command cheat sheet | Troubleshooting | Source | Releases
z-fastq Wiki
Start
Use it
- Counting and statistics
- Validation
- Paired reads
- Sampling
- Interleaving
- Processing paired reads
- Quality control
Look things up
Decide and solve
Build on it