Datasets Loadingのロゴ

Datasets Loading

組織
omicverse
datasets-loading

OmicVerse built-in datasets: pbmc3k, pancreas, dentategyrus, zebrafish, immune, spatial, multiome, plus create_mock_dataset() and predefined_signatures GMT gene sets.

概要

公開者omicverse
リポジトリomicclaw
スキル名datasets-loading
スター
33
フォーク
5
同梱ファイル
1
ライセンスGPL-3.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    omicverseがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルDatasets LoadingをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/omicverse/omicclaw/tree/main/src/omicverse_skills/skills/datasets-loading
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/omicverse/omicclaw.git /tmp/omicclaw
mkdir -p .claude/skills
cp -r /tmp/omicclaw/src/omicverse_skills/skills/datasets-loading .claude/skills/datasets-loading
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDatasets Loadingを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にDatasets Loadingを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Datasets Loadingは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

OmicVerse Built-in Datasets

ov.datasets provides 30+ ready-to-use datasets with automatic download, caching, and fallback to mock data. Use these instead of manually downloading files or relying on scanpy.datasets.

When to Use This Module

  • Tutorials/demos: Load standard benchmarks (PBMC3k, Paul15, dentate gyrus) with one function call
  • Testing pipelines: Use create_mock_dataset() to generate synthetic data without downloads
  • Gene set analysis: Use predefined_signatures for curated GMT gene sets (cell cycle, gender, mitochondrial, tissue-specific)
  • Velocity workflows: Load pre-formatted datasets with spliced/unspliced layers

Dataset Catalog

Single-Cell

FunctionCellsGenesDescription
ov.datasets.pbmc3k()2,70032,73810x PBMC3k (raw or processed)
ov.datasets.pbmc8k()~8,000—10x PBMC 8k
ov.datasets.paul15()2,7303,451Myeloid progenitors
ov.datasets.krumsiek11()64011Myeloid differentiation simulation
ov.datasets.bone_marrow()5,78027,876Bone marrow hematopoietic
ov.datasets.hematopoiesis()——Processed hematopoiesis
ov.datasets.hematopoiesis_raw()——Raw hematopoiesis
ov.datasets.sc_ref_Lymph_Node()~10,000~15,000Lymph node reference
ov.datasets.bhattacherjee()~5,000~2,000Mouse PFC cocaine study
ov.datasets.human_tfs()——Human TF list (DataFrame)

RNA Velocity & Trajectories

FunctionCellsGenesDescription
ov.datasets.dentate_gyrus()18,21327,998Dentate gyrus (loom)
ov.datasets.dentate_gyrus_scvelo()2,93013,913DG subset from scVelo
ov.datasets.zebrafish()4,18116,940Zebrafish developmental
ov.datasets.pancreatic_endocrinogenesis()——Pancreatic epithelial
ov.datasets.pancreas_cellrank()2,93013,913Pancreas cellrank benchmark
ov.datasets.scnt_seq_neuron_splicing()13,47644,021scNT-seq neuron splicing
ov.datasets.scnt_seq_neuron_labeling()3,06024,078scNT-seq neuron labeling
ov.datasets.sceu_seq_rpe1()~2,930~13,913scEU-seq RPE1
ov.datasets.sceu_seq_organoid()3,8319,157scEU-seq organoid
ov.datasets.haber()7,21627,998Intestinal epithelium
ov.datasets.chromaffin()——Chromaffin cell lineage
ov.datasets.hg_forebrain_glutamatergic()1,72032,738Human forebrain
ov.datasets.toggleswitch()2002Two-gene simulation

Spatial & Multiome

FunctionDescription
ov.datasets.seqfish()SeqFISH spatial transcriptomics
ov.datasets.multi_brain_5k()10x E18 mouse brain multiome (MuData)

Bulk RNA-seq & Deconvolution

FunctionDescription
ov.datasets.burczynski06()UC/CD PBMC bulk (127 samples)
ov.datasets.moignard15()Embryo hematopoiesis qRT-PCR
ov.datasets.decov_bulk_covid_bulk()COVID-19 PBMC bulk
ov.datasets.decov_bulk_covid_single()COVID-19 PBMC single-cell ref

Synthetic

FunctionDescription
ov.datasets.create_mock_dataset()Configurable synthetic scRNA-seq
ov.datasets.blobs()Gaussian blob clusters

Mock Data Generation

Use create_mock_dataset() when you need data without network access or for pipeline testing:

python
import omicverse as ov

# Basic mock dataset
adata = ov.datasets.create_mock_dataset(
    n_cells=2000,
    n_genes=1500,
    n_cell_types=6,
    with_clustering=False,
    random_state=42,
)
# adata.obs: cell_type, sample_id, condition, tissue
# adata.var: gene_symbols, highly_variable

# With full preprocessing (normalized, PCA, UMAP, leiden)
adata = ov.datasets.create_mock_dataset(
    n_cells=5000,
    n_genes=3000,
    n_cell_types=10,
    with_clustering=True,
)

Features:

  • Negative binomial expression distribution
  • Cell-type-specific marker genes (2-5x expression multiplier)
  • Gene names: Gene_0001, Gene_0002, ...
  • with_clustering=True adds: normalization, HVG, scaling, PCA, UMAP, leiden

Predefined Gene Set Signatures

Pre-loaded GMT files for common scoring tasks:

python
from omicverse.datasets import predefined_signatures, load_signatures_from_file

# Available signature keys
print(list(predefined_signatures.keys()))
# ['cell_cycle_human', 'cell_cycle_mouse', 'gender_human', 'gender_mouse',
#  'mitochondrial_genes_human', 'mitochondrial_genes_mouse',
#  'ribosomal_genes_human', 'ribosomal_genes_mouse',
#  'apoptosis_human', 'apoptosis_mouse',
#  'human_lung', 'mouse_lung', 'mouse_brain', 'mouse_liver', 'emt_human']

# Load a signature → dict[str, list[str]]
cell_cycle = load_signatures_from_file(predefined_signatures['cell_cycle_human'])
# {'S_genes': ['MCM5', 'PCNA', ...], 'G2M_genes': ['HMGB2', 'CDK1', ...]}

# Use with scoring
import scanpy as sc
sc.tl.score_genes_cell_cycle(adata, s_genes=cell_cycle['S_genes'],
                              g2m_genes=cell_cycle['G2M_genes'])

Critical API Reference

python
# CORRECT: use ov.datasets for standard benchmarks
adata = ov.datasets.pbmc3k()

# WRONG: manually downloading what's already built-in
# import urllib.request
# urllib.request.urlretrieve('https://...', 'pbmc3k.h5ad')  # unnecessary!
# adata = ov.read('pbmc3k.h5ad')

# CORRECT: pbmc3k(processed=True) for pre-processed version
adata = ov.datasets.pbmc3k(processed=True)

# WRONG: loading raw then manually preprocessing for a demo
# adata = ov.datasets.pbmc3k()
# sc.pp.normalize_total(adata)  # unnecessary if you just need a quick demo

# CORRECT: mock data for testing (no network needed)
adata = ov.datasets.create_mock_dataset(n_cells=500, n_genes=200)

# WRONG: creating synthetic data manually with numpy
# X = np.random.poisson(1, (500, 200))  # missing metadata, layers, etc.

Caching Behavior

  • Default cache directory: ./data/ (relative to working directory)
  • Skip if exists: All functions check for existing files before downloading
  • Mirror fallback: Stanford and Figshare mirrors for reliability
  • Mock fallback: Most functions generate mock data if download fails (network issues)
  • var_names_make_unique() called automatically after loading

Troubleshooting

  • Download timeout / 403 error: Some datasets use download_data_requests() with custom headers. If persistent, manually download the file to ./data/ with the expected filename and the function will find it.
  • ModuleNotFoundError: No module named 'muon' when calling multi_brain_5k(): Install muon: pip install muon. This function returns MuData, not AnnData.
  • Mock dataset has no .raw or layers['counts']: Add manually after creation: ov.utils.store_layers(adata, layers='counts') and adata.raw = adata.
  • load_signatures_from_file returns empty dict: Verify the GMT file path. Use predefined_signatures['key'] which resolves to the bundled file via importlib.resources.
  • Dentate gyrus loom download is slow: The loom file is large (~200MB). Use ov.datasets.dentate_gyrus_scvelo() for the smaller pre-processed subset (2,930 cells).

Dependencies

  • Core: omicverse, scanpy, anndata, numpy, pandas
  • Downloads: tqdm, requests (for mirror fallback)
  • Multiome: muon (only for multi_brain_5k())
  • Signatures: importlib.resources (stdlib)

Examples

  • "Load the PBMC3k dataset and run the standard preprocessing pipeline."
  • "Create a mock dataset with 5000 cells and 8 cell types for testing my clustering workflow."
  • "Load cell cycle gene signatures and score my adata for S and G2M phase genes."

References

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Datasets Loading」では何ができますか?

OmicVerse built-in datasets: pbmc3k, pancreas, dentategyrus, zebrafish, immune, spatial, multiome, plus create_mock_dataset() and predefined_signatures GMT gene sets.

TypingMindでDatasets Loadingを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Datasets Loadingはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDatasets Loadingをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/omicverse/omicclaw/tree/main/src/omicverse_skills/skills/datasets-loadingを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Datasets Loadingを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Datasets Loadingは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDatasets Loadingを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Datasets Loading」は無料ですか?

はい。omicverseがGitHubでGPL-3.0ライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇