single-cell-foundation-model-stofm

Preprocess spatial transcriptomics data into hf.dataset and data.h5ad formats.

1.1k|132|Updated Apr 13, 2023
One-click install
npx skills add https://github.com/PharMolix/OpenBioMed --skill single-cell-foundation-model-stofm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: single-cell-foundation-model-stofm
Source: https://github.com/PharMolix/OpenBioMed/tree/main/skills/spatial-transcriptomics-foundation-model-stofm
Command: npx skills add https://github.com/PharMolix/OpenBioMed --skill single-cell-foundation-model-stofm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps preprocess spatial transcriptomics data for the SToFM workflow, producing the input artifacts and embeddings needed for downstream region segmentation and cell type annotation.

Core Features & Use Cases

  • Preprocessing: convert raw spatial transcriptomics data into the SToFM-ready formats (hf.dataset and data.h5ad).
  • Embedding Generation: run the official cell encoder and SE(2) Transformer to produce cell embeddings for spatial graphs.
  • Downstream Tasks: support region segmentation and cell type annotation using the generated embeddings.
  • Local Repositories: tailored for a local SToFM repo at /DATA/disk0/zhaosy/home/SToFM.

Quick Start

Provide the local SToFM repository path and invoke the official preprocessing and embedding pipelines to generate the ready inputs and embeddings.

Frequently Asked Questions about single-cell-foundation-model-stofm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preprocess spatial transcriptomics data for cell embedding generation?

To preprocess spatial transcriptomics data for cell embedding generation, convert raw data into SToFM-ready formats like hf.dataset and data.h5ad using the official preprocessing pipeline.

What is the best way to generate per-cell embeddings from spatial transcriptomics graphs?

Generating per-cell embeddings from spatial graphs requires running the cell encoder and SE(2) Transformer on preprocessed hf.dataset and data.h5ad files to produce actionable cell embeddings.

Can I use SToFM embeddings for downstream region segmentation and cell type annotation?

Yes, SToFM embeddings support downstream region segmentation and cell type annotation by providing the per-cell feature representations extracted via the SE(2) Transformer and cell encoder.

Do I need a local SToFM repository to run the spatial transcriptomics preprocessing pipeline?

Yes, you need a local SToFM repository path containing the required data.h5ad and hf.dataset files to invoke the official preprocessing and embedding pipelines successfully.

What input formats are required for spatial transcriptomics data preprocessing?

Spatial transcriptomics data preprocessing requires inputs to be formatted as hf.dataset and data.h5ad files to properly interface with the cell encoder and SE(2) Transformer.

Why does spatial transcriptomics preprocessing require the SE(2) Transformer?

Spatial transcriptomics preprocessing requires the SE(2) Transformer to process spatial graphs and generate accurate per-cell embeddings for downstream region segmentation and cell type annotation.