How shenwei356/seqkit works
SeqKit is a cross-platform command-line toolkit for manipulating FASTA/Q sequence data. Users invoke a subcommand on files or streams and receive transformed records, search results, statistics, or other command-specific output. The README documents format conversion, sequence editing, searching, sampling, indexing, and analysis; the tree maps these capabilities to command modules. The shown entry point calls the command package, while command-to-command and shared parsing internals are not fully visible in the excerpts, so those connections are limited to documented behavior.
Main entry points: root.go Command dispatcher · main.go Program entry · seq.go Sequence transform · grep.go Sequence filtering
Components 27
CLI entry
- Program entry
seqkit/main.go - Command dispatcher
seqkit/cmd/root.go - Shared command utilities
seqkit/cmd
Sequence operations
- Sequence transform
seqkit/cmd/seq.go - Region extraction
seqkit/cmd/subseq.go - Sliding windows
seqkit/cmd/sliding.go - Sequence translation
seqkit/cmd/translate.go - Sequence mutation
seqkit/cmd/mutate.go - Pattern replacement
seqkit/cmd/replace.go - Sequence renaming
seqkit/cmd/rename.go
Search and selection
- Sequence filtering
seqkit/cmd/grep.go - Motif location
seqkit/cmd/locate.go - Amplicon extraction
seqkit/cmd/amplicon.go - Short-sequence search
seqkit/cmd/fish.go - Sequence sampling
seqkit/cmd/sample.go - Sampling v2
seqkit/cmd/sample2.go
Formats and files
- FASTA indexing
seqkit/cmd/faidx.go - Quality conversion
seqkit/cmd/convert.go - FASTA/Q to table
seqkit/cmd/fx2tab.go - Table to FASTA/Q
seqkit/cmd/tab2fx.go - File splitting
seqkit/cmd/split.go - Stream concatenation
seqkit/cmd/scat.go
Analysis and alignment
- Sequence statistics
seqkit/cmd/stat.go - Feature monitoring
seqkit/cmd/watch.go - BAM analysis
seqkit/cmd/bam.go - BAM tools
seqkit/cmd/bam_toolbox.go
Other components
- CLI user
Connections 27
- CLI user → Program entry: runs
seqkit/main.go - Program entry → Command dispatcher: calls Execute
seqkit/main.go - Command dispatcher → Sequence transform: offers subcommand
- Command dispatcher → Region extraction: offers subcommand
- Command dispatcher → Sliding windows: offers subcommand
- Command dispatcher → Sequence translation: offers subcommand
- Command dispatcher → Sequence mutation: offers subcommand
- Command dispatcher → Pattern replacement: offers subcommand
- Command dispatcher → Sequence renaming: offers subcommand
- Command dispatcher → Sequence filtering: offers subcommand
- Command dispatcher → Motif location: offers subcommand
- Command dispatcher → Amplicon extraction: offers subcommand
- Command dispatcher → Short-sequence search: offers subcommand
- Command dispatcher → Sequence sampling: offers subcommand
- Command dispatcher → Sampling v2: offers subcommand
- Command dispatcher → FASTA indexing: offers subcommand
- Command dispatcher → Quality conversion: offers subcommand
- Command dispatcher → FASTA/Q to table: offers subcommand
- Command dispatcher → Table to FASTA/Q: offers subcommand
- Command dispatcher → File splitting: offers subcommand
- Command dispatcher → Stream concatenation: offers subcommand
- Command dispatcher → Sequence statistics: offers subcommand
- Command dispatcher → Feature monitoring: offers subcommand
- Command dispatcher → BAM analysis: offers subcommand
- Command dispatcher → BAM tools: offers subcommand
- Sequence transform → Shared command utilities: uses utilities
- Sequence filtering → Shared command utilities: uses utilities