Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

spatial-raw-processing

БесплатноБез исполняемых скриптовНе проверен

Process barcoded spatial transcriptomics FASTQ pairs with st_pipeline, preserve upstream artifacts, convert the counts matrix into a standardized…

mdbabumiamssmот 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 to spatial-preprocess.
  • Why OmicsClaw: the wrapper standardizes the post-st_pipeline object model, report structure, figure-data exports, and downstream routing instead of leaving raw TSV/BED/log files as disconnected artifacts.

Core Capabilities

  1. FASTQ-to-count-matrix execution: runs st_pipeline on a resolved R1/R2 FASTQ pair with barcode-coordinate metadata.
  2. Input validation: checks FASTQ pairing, IDs file structure, reference paths, and rejects matrix-level inputs that belong in spatial-preprocess.
  3. Standardized AnnData conversion: converts <expName>_stdata.tsv plus the IDs table into raw_counts.h5ad with layers["counts"], raw, and obsm["spatial"].
  4. Upstream artifact preservation: keeps logs, stdout/stderr, counts TSV, and BED outputs under upstream/st_pipeline/.
  5. Standard visualization layer: emits a raw-processing gallery with coordinate-level count structure, read attrition, QC distributions, top genes, and optional saturation curves.
  6. Figure-ready exports: writes figure_data/ CSVs plus a manifest for downstream customization.
  7. Downstream handoff: records spatial-preprocess as the canonical next step and surfaces the exact handoff path in the report and result.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 in spatial-preprocess.
  • spatial-raw-processing is for sequencing-level spatial assays where you still have FASTQ files plus barcode-coordinate metadata.

Workflow

  1. Load / resolve inputs: accept explicit --read1/--read2, a pair-containing directory, or a JSON/YAML config.
  2. Validate: reject matrix-level inputs, validate the IDs file structure, and check the reference paths.
  3. Run upstream method: execute st_pipeline or use the OmicsClaw demo path.
  4. Persist upstream artifacts: keep the counts TSV, BED, logs, stdout/stderr, and run metadata under upstream/st_pipeline/.
  5. Convert to AnnData: write raw_counts.h5ad with raw counts in X, layers["counts"], raw, and obsm["spatial"].
  6. Visualize / summarize: generate the canonical gallery, export tables, and write figure_data/.
  7. Report / handoff: write README.md, report.md, result.json, and the reproducibility bundle, then point the user to spatial-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
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить spatial-raw-processing с