Repository navigation
Getting Started
You can learn the whole workflow with one tiny file. In about five minutes, you will validate it, build an index, extract a region, transform it, and inspect its statistics.
Save this as example.fa:
>chr1 chromosome one
ACGTACGTACGT
>rna
AUGCRY
>protein
MPEPTIDE
z-fasta uses the identifier before the first space or tab. The indexed names are chr1, rna, and protein.
z-fasta validate example.faExpected output:
OK example.fa: no findings
complete: examined 64 bytes, 6 lines, 3 records, 26 symbols; protein alphabet chosen from 26 symbols
Validation does not require an index.
z-fasta index example.faExpected stderr:
wrote example.fa.zfi (3 sequences)
You now have example.fa.zfi, the sidecar GET and stats will use.
z-fasta get example.fa chr1>chr1
ACGTACGTACGT
z-fasta get example.fa chr1:3-8>chr1:3-8
GTACGT
Positional coordinates are 1-based inclusive. The third through eighth symbols produce six output symbols.
z-fasta get example.fa chr1:3-8 --rc --annotate-rc>chr1:3-8 (reverse complement)
ACGTAC
Complement-based transforms classify up to 256 requested bases and reject protein records.
z-fasta stats example.faThe report brings file details, length summaries, Nx statistics, auN, and complete nucleotide or protein composition together in one place.
Why this mixed file is classified as protein
Stats classifies the complete indexed symbol population. A sample is nucleotide only when case-insensitive IUPAC nucleotide bytes are strictly more than 90 percent of all symbols. The protein record pushes this small combined file below that threshold.
-
Indexing for
.zfi,.fai, duplicate identifiers, and publication safety. - Extracting sequences for multiple regions and names files.
- BED and strand workflows for interval files.
- Validation and repair for messy FASTA.
- Statistics for report definitions.
z-fasta v0.4.0 | Home | Quick start | Cheat sheet | Troubleshooting | Releases | MIT License
z-fasta Wiki
Start
Use z-fasta
Understand behavior
- Index formats
- Coordinates and names
- Limits and supported formats
- Performance and correctness
- Tool comparison
Solve a problem
Contribute