纠正错误 / Fix 添加实例 / Add example
文件格式 / Formats

SeqKit

高性能 FASTA/FASTQ 命令行工具箱,适合统计、筛选、抽样、格式转换和序列操作。Fast FASTA/FASTQ toolkit for statistics, filtering, sampling, conversion, and sequence operations.

速览 | Quick Look

安装 | Install

mamba install -c bioconda seqkit

常用命令 | Common Commands

统计 FASTA/FASTQ:

seqkit stats *.fq.gz

按 ID 列表提取:

seqkit grep -f ids.txt sequences.fa.gz > selected.fa

FASTQ 转 FASTA:

seqkit fq2fa reads.fq.gz > reads.fa

随机抽样:

seqkit sample -p 0.1 -s 42 reads.fq.gz > reads.10pct.fq

反向互补:

seqkit seq -r -p primers.fa > primers.revcomp.fa

关键参数 | Key Options

常见坑 | Pitfalls

参考 | References