bulkrna-batch-correcti…
Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation. Skip…
Load when turning scRNA FASTQ (or existing CellRanger/STARsolo/SimpleAF/kb-python output)
$ npx -y skills add tiangzlab/omicsclaw --skill sc-count --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sc-countContext preview
The summary Claude sees to decide when to auto-load this skill.
Load when turning scRNA FASTQ (or existing CellRanger/STARsolo/SimpleAF/kb-python output)
name: sc-count description: Load when turning scRNA FASTQ (or existing CellRanger/STARsolo/SimpleAF/kb-python output) into a downstream-ready AnnData. Skip when reads are already counted into AnnData (use sc-standardize-input); raw quality assessment only (use sc-fastq-qc). trigger: Cell Ranger count, STARsolo count, fastq to adata, raw single-cell counting, generate count matrix tags: - singlecell - scrna - counting - cellranger - starsolo - simpleaf - kb-python
This is CLI_ONLY: counting needs external tools and reference indexes.
from skills._sdk.notebook import run_cli
run_cli("sc-count", "--input", "data/sample_R1.fastq.gz",
"--read2", "data/sample_R2.fastq.gz", "--method", "starsolo",
"--reference", "/refs/star", "--chemistry", "10xv3",
"--whitelist", "/refs/barcodes.tsv",
inputs=["data/sample_R1.fastq.gz", "data/sample_R2.fastq.gz",
"/refs/barcodes.tsv"])Record the reference index version in the module README as well. The demo standardizes PBMC3k raw counts; it does not align or count reads. There is no `_api.py` for this skill.
The user has FASTQ files (or pre-existing tool output directories) and wants per-cell counts in OmicsClaw's canonical AnnData contract. Four backends share one CLI: `cellranger`, `starsolo`, `simpleaf`, `kb_python`. When passed a matching already-counted directory the skill re-canonicalises rather than re-counts. Pairs with `sc-fastq-qc` upstream (read QC) and `sc-multi-count` downstream (merging multiple samples).
**Inputs**
**Outputs**
1. Resolve `--input`; if it's an existing CellRanger / STARsolo / SimpleAF / kb-python output dir, re-canonicalise instead of running the backend. 2. Otherwise validate backend prerequisites (chemistry, reference, t2g for kb-python, whitelist for STARsolo). 3. Run the chosen backend against the FASTQ (and `--read2` if explicit). 4. Load the resulting matrix into AnnData; canonicalise (`layers["counts"]`, `adata.raw`, gene-name harmonisation). 5. Render barcode-rank + count-distribution figures. 6. Emit `processed.h5ad` + `report.md` + `result.json`.
# Demo (standardizes PBMC3k counts; no counting backend) python skills/singlecell/scrna/sc-count/sc_count.py --demo --output /tmp/sc_count_demo # CellRanger over FASTQ python skills/singlecell/scrna/sc-count/sc_count.py \ --input fastq_dir/ --output results/ \ --reference cellranger_transcriptome --threads 16 # STARsolo (requires explicit chemistry) python skills/singlecell/scrna/sc-count/sc_count.py \ --input fastq_dir/ --output results/ \ --method starsolo --reference star_genome_dir --chemistry 10xv3 --whitelist barcodes.tsv # Re-canonicalise an existing CellRanger output directory python skills/singlecell/scrna/sc-count/sc_count.py \ --input cellranger_output_dir/ --output results/
Python packages this skill's script needs. They are not installed for you — check before a long run.
`anndata`, `matplotlib`, `numpy`, `pandas`, `scanpy`, `scipy`, `seab
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…