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

seqtk

轻量 FASTA/FASTQ 命令行工具,适合抽样、截取、格式转换和基础处理。Lightweight toolkit for common FASTA/FASTQ operations.

速览 | Quick Look

安装 | Install

mamba install -c bioconda seqtk

常用命令 | Common Commands

FASTQ 转 FASTA:

seqtk seq -a reads.fq.gz > reads.fa

随机抽样 100000 条 reads:

seqtk sample -s 42 reads.fq.gz 100000 > reads.subsample.fq

按 ID 列表提取序列:

seqtk subseq reference.fa ids.txt > subset.fa

反向互补:

seqtk seq -r input.fa > reverse_complement.fa

关键参数 | Key Options

常见坑 | Pitfalls

参考 | References