ab1-synth-skill
БесплатноЗапускает вложенные скриптыНе проверенGenerate a synthetic Sanger .ab1 chromatogram from a reference FASTA (ASV/consensus) plus raw FASTQ reads, with realistic peak spacing/height/width, baseline…
от zd200572184 установки в других каталогахОб этом скилле
AB1 Synth Skill
Builds an .ab1 file that opens in Chromas, FinchTV, SnapGene and Biopython.
Input is a reference sequence (e.g. one ASV from asv_rep.fasta) plus the
trimmed reads that support it; read variation and base qualities shape the
peaks.
This is a simulated trace, not instrument data. FASTQ contains no fluorescence channels, so the chromatogram is reconstructed. Say so when the result will be used as evidence.
Quick start
python scripts/make_ab1.py \
--fasta asv_rep.fasta --id ASV1 \
--fastq trim.L9.fq.gz \
--out ASV1.ab1
Optional: --sample NAME, --seed N, --kmer 17, --open (launch Chromas
on Windows), or omit --fastq for a reference-only trace.
Pipeline
load_target— pick the FASTA record (--id, else first record).map_reads— unique k-mer seeds vote for an offset; reads are accepted when they overlap at least half the reference and stay under the mismatch rate. Per-position base counts and Phred sums are accumulated.build_trace— one peak per base with base-dependent spacing bias, jitter, quality-scaled height, asymmetric width, minor peaks from allele fractions, spectral pull-up, baseline drift, noise and a few dye bumps.write_abif— ABIF container (see rules below).validate— re-read with Biopython, compare base calls and channel lengths.
ABIF rules that actually matter
- The file header is 34 bytes:
ABIF+ version +tdir+ number + element type + element size + element count + data size + data offset + 4-byte handle. A 30-byte header makes Chromas report "not a recognised file type or the data is corrupted". - Start payload at 128 and keep every data offset and the directory offset 4-byte aligned.
- Sort directory entries by tag name, then tag number.
- Channel order is
FWO_1 = GATC;DATA1..4are the raw channels in that order,DATA9..12the processed ones. Chromas displaysDATA1..4. PLOC2must point at the real peak apexes, one entry per base.PCON1/2as element type 2 keeps Biopython happy (abiparser decodes it).SMPL1is a pString (type 18): a length byte followed by the name.
Notes
- Reads often cover only part of the amplicon (e.g. ASV1 is 344 bp but reads start at base 31). Uncovered positions fall back to the reference sequence with default quality.
- If Chromas still refuses a file, compare its header/directory against a
known-good
.ab1(struct.unpack(">H4sI2H3I4x", data[4:34])). - Requires Biopython. Python 3.9+.
Установить ab1-synth-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ab1-synth-skill?
Generate a synthetic Sanger .ab1 chromatogram from a reference FASTA (ASV/consensus) plus raw FASTQ reads, with realistic peak spacing/height/width, baseline noise and minor peaks, and a Chromas-compatible ABIF container. Use when a user asks to turn an ASV, OTU, consensus or FASTA sequence into an .ab1/ABIF/峰图 file, or asks to visualize amplicon reads as a Sanger trace.
Как установить скилл ab1-synth-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ab1-synth-skill запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic