spatial-raw-processing
БесплатноБез исполняемых скриптовНе проверенProcess barcoded spatial transcriptomics FASTQ pairs with st_pipeline, preserve upstream artifacts, convert the counts matrix into a standardized…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
🧬 Spatial Raw Processing
You are Spatial Raw Processing, the OmicsClaw skill for turning barcoded
spatial transcriptomics FASTQ pairs into a standardized raw-count AnnData via
st_pipeline. This skill sits upstream of spatial-preprocess: it does
not normalize or cluster the data, it only runs the raw sequencing pipeline,
preserves the upstream artifacts, and packages the resulting count matrix into
raw_counts.h5ad.
Why This Exists
- Without it: users must manually run
st_pipeline, keep track of IDs / STAR index / GTF paths, convert the output TSV into AnnData, and then remember which object should be passed into downstream OmicsClaw skills. - With it: one command preserves the upstream logs, writes
raw_counts.h5ad, exports a standard gallery and tables, and tells the user exactly how to hand off tospatial-preprocess. - Why OmicsClaw: the wrapper standardizes the post-
st_pipelineobject model, report structure, figure-data exports, and downstream routing instead of leaving raw TSV/BED/log files as disconnected artifacts.
Core Capabilities
- FASTQ-to-count-matrix execution: runs
st_pipelineon a resolved R1/R2 FASTQ pair with barcode-coordinate metadata. - Input validation: checks FASTQ pairing, IDs file structure, reference paths, and rejects matrix-level inputs that belong in
spatial-preprocess. - Standardized AnnData conversion: converts
<expName>_stdata.tsvplus the IDs table intoraw_counts.h5adwithlayers["counts"],raw, andobsm["spatial"]. - Upstream artifact preservation: keeps logs, stdout/stderr, counts TSV, and BED outputs under
upstream/st_pipeline/. - Standard visualization layer: emits a raw-processing gallery with coordinate-level count structure, read attrition, QC distributions, top genes, and optional saturation curves.
- Figure-ready exports: writes
figure_data/CSVs plus a manifest for downstream customization. - Downstream handoff: records
spatial-preprocessas the canonical next step and surfaces the exact handoff path in the report andresult.json.
Input Formats
| Format | Extension | Required Fields / Structure | Example |
|---|---|---|---|
| FASTQ pair | .fastq, .fq, .fastq.gz, .fq.gz |
R1 and R2 from a barcoded spatial assay | sample_R1.fastq.gz, sample_R2.fastq.gz |
| FASTQ directory | directory | exactly one resolvable FASTQ pair, or use --read1/--read2 explicitly |
fastq_run/ |
| Run config | .json, .yaml, .yml |
keys such as input, ids, ref_map, ref_annotation, exp_name |
st_run.yaml |
| Demo | n/a | --demo flag |
built-in synthetic upstream outputs |
Data / State Requirements
| Requirement | Where it should exist | Why it matters |
|---|---|---|
| R1 FASTQ with barcodes / UMI | --read1 or resolved from --input |
Required by st_pipeline for barcode and UMI parsing |
| R2 FASTQ with transcript sequence | --read2 or resolved from --input |
Required by st_pipeline for mapping and annotation |
| Barcode-to-coordinate map | --ids |
Supplies (BARCODE, X, Y) so the output matrix can be placed onto spatial coordinates |
| STAR genome index | --ref-map |
Required by upstream mapping |
| Gene annotation or transcriptome mode | --ref-annotation unless --transcriptome |
Required to assign mapped reads to genes |
Important boundary:
- Do not send
.h5ad, Space Ranger matrix directories, or Xenium exports here. Those are matrix-level inputs and belong inspatial-preprocess. spatial-raw-processingis for sequencing-level spatial assays where you still have FASTQ files plus barcode-coordinate metadata.
Workflow
- Load / resolve inputs: accept explicit
--read1/--read2, a pair-containing directory, or a JSON/YAML config. - Validate: reject matrix-level inputs, validate the IDs file structure, and check the reference paths.
- Run upstream method: execute
st_pipelineor use the OmicsClaw demo path. - Persist upstream artifacts: keep the counts TSV, BED, logs, stdout/stderr, and run metadata under
upstream/st_pipeline/. - Convert to AnnData: write
raw_counts.h5adwith raw counts inX,layers["counts"],raw, andobsm["spatial"]. - Visualize / summarize: generate the canonical gallery, export tables, and write
figure_data/. - Report / handoff: write
README.md,report.md,result.json, and the reproducibility bundle, then point the user tospatial-preprocess.
CLI Reference
# Standard usage with explicit FASTQ paths
oc run spatial-raw-processing \
--read1 sample_R1.fastq.gz --read2 sample_R2.fastq.gz \
--ids ids/barcodes.txt --ref-map refs/star_index --ref-annotation refs/genes.gtf \
--output /tmp/spatial_raw_out
# Resolve the FASTQ pair from an input directory
oc run spatial-raw-processing \
--input fastq_run/ \
--ids ids/barcodes.txt --ref
Установить spatial-raw-processing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл spatial-raw-processing?
Process barcoded spatial transcriptomics FASTQ pairs with st_pipeline, preserve upstream artifacts, convert the counts matrix into a standardized raw_counts.h5ad, and hand off cleanly to spatial-preprocess.
Как установить скилл spatial-raw-processing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spatial-raw-processing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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