🛠️ Omero連携
顕微鏡で取得した膨大な画??
📺 まず動画で見る(YouTube)
▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Microscopy data management platform. Access images via Python, retrieve datasets, analyze pixels, manage ROIs/annotations, batch processing, for high-content screening and microscopy workflows.
🇯🇵 日本人クリエイター向け解説
顕微鏡で取得した膨大な画??
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o omero-integration.zip https://jpskill.com/download/4193.zip && unzip -o omero-integration.zip && rm omero-integration.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/4193.zip -OutFile "$d\omero-integration.zip"; Expand-Archive "$d\omero-integration.zip" -DestinationPath $d -Force; ri "$d\omero-integration.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
omero-integration.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
omero-integrationフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-18
- 同梱ファイル
- 9
💬 こう話しかけるだけ — サンプルプロンプト
- › Omero Integration を使って、最小構成のサンプルコードを示して
- › Omero Integration の主な使い方と注意点を教えて
- › Omero Integration を既存プロジェクトに組み込む方法を教えて
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] omero-integration
OMERO連携
概要
OMEROは、顕微鏡画像とメタデータの管理、可視化、分析のためのオープンソースプラットフォームです。Python APIを介して画像にアクセスし、データセットを取得し、ピクセルを分析し、ROIとアノテーションを管理することで、ハイスループットスクリーニングおよび顕微鏡ワークフローに活用できます。
このスキルを使用する場面
このスキルは、次のような場合に使用します。
- OMERO Python API (omero-py) を使用して顕微鏡データにアクセスする場合
- 画像、データセット、プロジェクト、またはスクリーニングデータをプログラムで取得する場合
- ピクセルデータを分析し、派生画像を作成する場合
- 顕微鏡画像上にROI (関心領域) を作成または管理する場合
- OMEROオブジェクトにアノテーション、タグ、またはメタデータを追加する場合
- 測定結果をOMEROテーブルに保存する場合
- バッチ処理用のサーバーサイドスクリプトを作成する場合
- ハイスループットスクリーニング分析を実行する場合
主要な機能
このスキルは、8つの主要な機能領域をカバーしています。それぞれについては、references/ディレクトリに詳細が記載されています。
1. 接続とセッション管理
ファイル: references/connection.md
OMEROサーバーへの安全な接続を確立し、セッションを管理し、認証を処理し、グループコンテキストで作業します。初期設定と接続パターンに使用します。
一般的なシナリオ:
- 認証情報を使用してOMEROサーバーに接続する
- 既存のセッションIDを使用する
- グループコンテキストを切り替える
- コンテキストマネージャーで接続ライフサイクルを管理する
2. データアクセスと取得
ファイル: references/data_access.md
OMEROの階層型データ構造 (プロジェクト → データセット → 画像) とスクリーニングデータ (スクリーン → プレート → ウェル) をナビゲートします。オブジェクトを取得し、属性でクエリし、メタデータにアクセスします。
一般的なシナリオ:
- ユーザーのすべてのプロジェクトとデータセットをリストする
- IDまたはデータセットで画像を取得する
- スクリーニングプレートデータにアクセスする
- フィルターでオブジェクトをクエリする
3. メタデータとアノテーション
ファイル: references/metadata.md
タグ、キーと値のペア、ファイル添付、コメントを含むアノテーションを作成および管理します。アノテーションを画像、データセット、またはその他のオブジェクトにリンクします。
一般的なシナリオ:
- 画像にタグを追加する
- 分析結果をファイルとして添付する
- カスタムのキーと値のメタデータを作成する
- 名前空間でアノテーションをクエリする
4. 画像処理とレンダリング
ファイル: references/image_processing.md
生ピクセルデータをNumPy配列としてアクセスし、レンダリング設定を操作し、派生画像を作成し、物理的な寸法を管理します。
一般的なシナリオ:
- 計算分析のためにピクセルデータを抽出する
- サムネイル画像を生成する
- 最大強度投影を作成する
- チャンネルレンダリング設定を変更する
5. 関心領域 (ROIs)
ファイル: references/rois.md
さまざまな形状 (長方形、楕円、ポリゴン、マスク、点、線) のROIを作成、取得、分析します。ROI領域から強度統計を抽出します。
一般的なシナリオ:
- 画像上に長方形のROIを描画する
- セグメンテーションのためにポリゴンマスクを作成する
- ROI内のピクセル強度を分析する
- ROI座標をエクスポートする
6. OMEROテーブル
ファイル: references/tables.md
OMEROオブジェクトに関連付けられた構造化された表形式データを保存およびクエリします。分析結果、測定値、メタデータに役立ちます。
一般的なシナリオ:
- 画像の定量的測定値を保存する
- 複数の列型を持つテーブルを作成する
- 条件付きでテーブルデータをクエリする
- テーブルを特定の画像またはデータセットにリンクする
7. スクリプトとバッチ操作
ファイル: references/scripts.md
バッチ処理、自動化されたワークフロー、およびOMEROクライアントとの統合のためにサーバーサイドで実行されるOMERO.scriptsを作成します。
一般的なシナリオ:
- 複数の画像をバッチで処理する
- 自動分析パイプラインを作成する
- データセット全体の要約統計を生成する
- カスタム形式でデータをエクスポートする
8. 高度な機能
ファイル: references/advanced.md
権限、ファイルセット、クロスグループクエリ、削除操作、およびその他の高度な機能をカバーします。
一般的なシナリオ:
- グループ権限を処理する
- 元のインポートされたファイルにアクセスする
- クロスグループクエリを実行する
- コールバックでオブジェクトを削除する
インストール
uv pip install omero-py
要件:
- Python 3.7以上
- Zeroc Ice 3.6以上
- OMEROサーバーへのアクセス (ホスト、ポート、認証情報)
クイックスタート
基本的な接続パターン:
from omero.gateway import BlitzGateway
# Connect to OMERO server
conn = BlitzGateway(username, password, host=host, port=port)
connected = conn.connect()
if connected:
# Perform operations
for project in conn.listProjects():
print(project.getName())
# Always close connection
conn.close()
else:
print("Connection failed")
コンテキストマネージャーを使用した推奨パターン:
from omero.gateway import BlitzGateway
with BlitzGateway(username, password, host=host, port=port) as conn:
# Connection automatically managed
for project in conn.listProjects():
print(project.getName())
# Automatically closed on exit
適切な機能の選択
データ探索の場合:
- 接続を確立するために
references/connection.mdから始めます - 階層をナビゲートするために
references/data_access.mdを使用します - アノテーションの詳細については
references/metadata.mdを確認します
画像分析の場合:
- ピクセルデータアクセスには
references/image_processing.mdを使用します - 領域ベースの分析には
references/rois.mdを使用します - 結果を保存するには
references/tables.mdを使用します
自動化の場合:
- サーバーサイド処理には
references/scripts.mdを使用します - バッチデータ取得には
references/data_access.mdを使用します
高度な操作の場合:
- 権限と削除には
references/advanced.mdを使用します - クロスグループクエリについては
references/connection.mdを確認します
一般的なワークフロー
ワークフロー1: 画像の取得と分析
- OMEROサーバーに接続します (
references/connection.md) - データセットに移動します (
references/data_access.md) - データセットから画像を取得します (
references/data_access.md) - ピクセルデータをNumPy配列としてアクセスします (
references/image_processing.md) - 分析を実行します
- 結果をテーブルまたはファイルアノテーションとして保存します (
references/tables.mdまたはreferences/metadata.md)
ワークフロー
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
OMERO Integration
Overview
OMERO is an open-source platform for managing, visualizing, and analyzing microscopy images and metadata. Access images via Python API, retrieve datasets, analyze pixels, manage ROIs and annotations, for high-content screening and microscopy workflows.
When to Use This Skill
This skill should be used when:
- Working with OMERO Python API (omero-py) to access microscopy data
- Retrieving images, datasets, projects, or screening data programmatically
- Analyzing pixel data and creating derived images
- Creating or managing ROIs (regions of interest) on microscopy images
- Adding annotations, tags, or metadata to OMERO objects
- Storing measurement results in OMERO tables
- Creating server-side scripts for batch processing
- Performing high-content screening analysis
Core Capabilities
This skill covers eight major capability areas. Each is documented in detail in the references/ directory:
1. Connection & Session Management
File: references/connection.md
Establish secure connections to OMERO servers, manage sessions, handle authentication, and work with group contexts. Use this for initial setup and connection patterns.
Common scenarios:
- Connect to OMERO server with credentials
- Use existing session IDs
- Switch between group contexts
- Manage connection lifecycle with context managers
2. Data Access & Retrieval
File: references/data_access.md
Navigate OMERO's hierarchical data structure (Projects → Datasets → Images) and screening data (Screens → Plates → Wells). Retrieve objects, query by attributes, and access metadata.
Common scenarios:
- List all projects and datasets for a user
- Retrieve images by ID or dataset
- Access screening plate data
- Query objects with filters
3. Metadata & Annotations
File: references/metadata.md
Create and manage annotations including tags, key-value pairs, file attachments, and comments. Link annotations to images, datasets, or other objects.
Common scenarios:
- Add tags to images
- Attach analysis results as files
- Create custom key-value metadata
- Query annotations by namespace
4. Image Processing & Rendering
File: references/image_processing.md
Access raw pixel data as NumPy arrays, manipulate rendering settings, create derived images, and manage physical dimensions.
Common scenarios:
- Extract pixel data for computational analysis
- Generate thumbnail images
- Create maximum intensity projections
- Modify channel rendering settings
5. Regions of Interest (ROIs)
File: references/rois.md
Create, retrieve, and analyze ROIs with various shapes (rectangles, ellipses, polygons, masks, points, lines). Extract intensity statistics from ROI regions.
Common scenarios:
- Draw rectangular ROIs on images
- Create polygon masks for segmentation
- Analyze pixel intensities within ROIs
- Export ROI coordinates
6. OMERO Tables
File: references/tables.md
Store and query structured tabular data associated with OMERO objects. Useful for analysis results, measurements, and metadata.
Common scenarios:
- Store quantitative measurements for images
- Create tables with multiple column types
- Query table data with conditions
- Link tables to specific images or datasets
7. Scripts & Batch Operations
File: references/scripts.md
Create OMERO.scripts that run server-side for batch processing, automated workflows, and integration with OMERO clients.
Common scenarios:
- Process multiple images in batch
- Create automated analysis pipelines
- Generate summary statistics across datasets
- Export data in custom formats
8. Advanced Features
File: references/advanced.md
Covers permissions, filesets, cross-group queries, delete operations, and other advanced functionality.
Common scenarios:
- Handle group permissions
- Access original imported files
- Perform cross-group queries
- Delete objects with callbacks
Installation
uv pip install omero-py
Requirements:
- Python 3.7+
- Zeroc Ice 3.6+
- Access to an OMERO server (host, port, credentials)
Quick Start
Basic connection pattern:
from omero.gateway import BlitzGateway
# Connect to OMERO server
conn = BlitzGateway(username, password, host=host, port=port)
connected = conn.connect()
if connected:
# Perform operations
for project in conn.listProjects():
print(project.getName())
# Always close connection
conn.close()
else:
print("Connection failed")
Recommended pattern with context manager:
from omero.gateway import BlitzGateway
with BlitzGateway(username, password, host=host, port=port) as conn:
# Connection automatically managed
for project in conn.listProjects():
print(project.getName())
# Automatically closed on exit
Selecting the Right Capability
For data exploration:
- Start with
references/connection.mdto establish connection - Use
references/data_access.mdto navigate hierarchy - Check
references/metadata.mdfor annotation details
For image analysis:
- Use
references/image_processing.mdfor pixel data access - Use
references/rois.mdfor region-based analysis - Use
references/tables.mdto store results
For automation:
- Use
references/scripts.mdfor server-side processing - Use
references/data_access.mdfor batch data retrieval
For advanced operations:
- Use
references/advanced.mdfor permissions and deletion - Check
references/connection.mdfor cross-group queries
Common Workflows
Workflow 1: Retrieve and Analyze Images
- Connect to OMERO server (
references/connection.md) - Navigate to dataset (
references/data_access.md) - Retrieve images from dataset (
references/data_access.md) - Access pixel data as NumPy array (
references/image_processing.md) - Perform analysis
- Store results as table or file annotation (
references/tables.mdorreferences/metadata.md)
Workflow 2: Batch ROI Analysis
- Connect to OMERO server
- Retrieve images with existing ROIs (
references/rois.md) - For each image, get ROI shapes
- Extract pixel intensities within ROIs (
references/rois.md) - Store measurements in OMERO table (
references/tables.md)
Workflow 3: Create Analysis Script
- Design analysis workflow
- Use OMERO.scripts framework (
references/scripts.md) - Access data through script parameters
- Process images in batch
- Generate outputs (new images, tables, files)
Error Handling
Always wrap OMERO operations in try-except blocks and ensure connections are properly closed:
from omero.gateway import BlitzGateway
import traceback
try:
conn = BlitzGateway(username, password, host=host, port=port)
if not conn.connect():
raise Exception("Connection failed")
# Perform operations
except Exception as e:
print(f"Error: {e}")
traceback.print_exc()
finally:
if conn:
conn.close()
Additional Resources
- Official Documentation: https://omero.readthedocs.io/en/stable/developers/Python.html
- BlitzGateway API: https://omero.readthedocs.io/en/stable/developers/Python.html#omero-blitzgateway
- OMERO Model: https://omero.readthedocs.io/en/stable/developers/Model.html
- Community Forum: https://forum.image.sc/tag/omero
Notes
- OMERO uses group-based permissions (READ-ONLY, READ-ANNOTATE, READ-WRITE)
- Images in OMERO are organized hierarchically: Project > Dataset > Image
- Screening data uses: Screen > Plate > Well > WellSample > Image
- Always close connections to free server resources
- Use context managers for automatic resource management
- Pixel data is returned as NumPy arrays for analysis
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (8,044 bytes)
- 📎 references/advanced.md (15,013 bytes)
- 📎 references/connection.md (8,404 bytes)
- 📎 references/data_access.md (13,555 bytes)
- 📎 references/image_processing.md (15,705 bytes)
- 📎 references/metadata.md (17,020 bytes)
- 📎 references/rois.md (16,388 bytes)
- 📎 references/scripts.md (17,319 bytes)
- 📎 references/tables.md (14,835 bytes)