bulkrna-batch-correcti…
Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation. Skip…
Load when converting spatial transcriptomics raw FASTQ pairs through ST-Pipeline into a `raw_counts.h5ad`
$ npx -y skills add tiangzlab/omicsclaw --skill spatial-raw-processing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/spatial-raw-processingContext preview
The summary Claude sees to decide when to auto-load this skill.
Load when converting spatial transcriptomics raw FASTQ pairs through ST-Pipeline into a `raw_counts.h5ad`
name: spatial-raw-processing description: Load when converting spatial transcriptomics raw FASTQ pairs through ST-Pipeline into a `raw_counts.h5ad` ready for spatial-preprocess. Skip when input is already a count-matrix AnnData (use spatial-preprocess); non-spatial bulk / scRNA FASTQ (use bulkrna-read-qc). trigger: spatial raw processing, raw spatial fastq, spatial fastq, st_pipeline, st pipeline, barcode coordinates, ids file, visium raw fastq, slide-seq fastq, slideseq fastq, upstream spatial processing tags: - spatial - raw-processing - fastq - st-pipeline - visium - slideseq
This is CLI_ONLY: ST-Pipeline consumes FASTQ files, barcode coordinates and reference indexes. It is not an in-memory analysis function.
from skills._sdk.notebook import run_cli
output = run_cli("spatial-raw-processing", "--input", "data/run_bundle.json",
inputs=["data/run_bundle.json", "data/R1.fastq.gz",
"data/R2.fastq.gz", "data/barcodes.tsv"])Record the reference index version in the module README. The executable example uses synthetic upstream outputs and does not run ST-Pipeline.
The user has paired-end spatial-transcriptomics FASTQ files (`read1` = spatial barcode + UMI, `read2` = cDNA) plus a STAR genome index, and wants the standard ST-Pipeline run that produces a `raw_counts.h5ad` with one row per spatial spot. Single backend: `st_pipeline` (calls `run_stpipeline` from `skills/spatial/_lib/stpipeline_adapter.py`).
After this skill, chain to `spatial-preprocess` for QC + normalisation. For non-spatial scRNA FASTQ use `sc-fastq-qc`. For bulk RNA-seq read QC use `bulkrna-read-qc`.
**Inputs**
**Outputs**
1. Parse args (or load bundle JSON / YAML from positional `--input`). 2. `_apply_effective_defaults` fills missing parameter values (threads, trimming, UMI ranges, etc.). 3. `_validate_real_run_bundle`: check `read1` / `read2` / `ids` / `ref-map` exist and are well-typed; reject duplicate read1=read2; verify FASTQ extension. 4. Call `run_stpipeline(...)` which shells out to ST-Pipeline (requires the `stpipeline` binary on PATH or `--stpipeline-repo` + `--bin-path`). 5. Wrap the resulting count matrix into AnnData with `X = raw_counts`, `layers["counts"]`, `raw = raw_counts_snapshot`. 6. Save `raw_counts.h5ad` and `result.json`. Print "next: spatial-preprocess on raw_counts.h5ad".
# Demo (synthetic raw_counts.h5ad — does NOT run ST-Pipeline) python skills/spatial/spatial-raw-processing/spatial_raw_processing.py --demo --output /tmp/spatial_raw_demo # Real run with explicit args python skills/spatial/spatial-raw-processing/spatial_raw_processing.py \ --read1 sample_R1.fastq.gz --read2 sample_R2.fastq.gz \ --ids barcodes.tsv \ --ref-map /refs/star_index_human \ --ref-annotation /refs/genes.gtf \ --exp-name visium_001 --platform visium \ --threads 16 \ --output results/ # Real run from bundle JSON python skills/spatia
Conversational & memory-enabled AI research partner for multi-omics analysis. CLI + Desktop App (installers in Releases). From biological idea to full research paper.
Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation. Skip…
Load when discovering bulk gene co-expression modules and hub genes with R WGCNA. Skip direct expression contrasts (use…
Load when comparing gene expression between two conditions in bulk RNA-seq count data. Skip
Load when estimating cell-type proportions in bulk RNA-seq samples from a single-cell or
Load when running pathway / GO term enrichment on a bulk RNA-seq DE result list. Skip when
Load when converting Ensembl, Entrez or symbol IDs in a bulk RNA count matrix using an explicit mapping or a small human demo…