omero-integration by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill omero-integrationOMERO 是一个用于管理、可视化和分析显微镜图像及元数据的开源平台。通过 Python API 访问图像,检索数据集,分析像素数据,管理 ROI 和注释,适用于高内涵筛选和显微镜工作流。
此技能应在以下情况下使用:
此技能涵盖八个主要能力领域。每个领域在 references/ 目录中都有详细文档:
文件 : references/connection.md
建立与 OMERO 服务器的安全连接,管理会话,处理身份验证,并在组上下文中工作。用于初始设置和连接模式。
常见场景:
文件 : references/data_access.md
浏览 OMERO 的层次化数据结构(项目 → 数据集 → 图像)和筛选数据(屏幕 → 板 → 孔)。检索对象,按属性查询,并访问元数据。
常见场景:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
文件 : references/metadata.md
创建和管理注释,包括标签、键值对、文件附件和评论。将注释链接到图像、数据集或其他对象。
常见场景:
文件 : references/image_processing.md
以 NumPy 数组形式访问原始像素数据,操作渲染设置,创建衍生图像,并管理物理维度。
常见场景:
文件 : references/rois.md
创建、检索和分析具有各种形状(矩形、椭圆、多边形、掩膜、点、线)的 ROI。从 ROI 区域提取强度统计信息。
常见场景:
文件 : references/tables.md
存储和查询与 OMERO 对象关联的结构化表格数据。适用于分析结果、测量数据和元数据。
常见场景:
文件 : references/scripts.md
创建在服务器端运行的 OMERO.scripts,用于批处理、自动化工作流以及与 OMERO 客户端的集成。
常见场景:
文件 : references/advanced.md
涵盖权限、文件集、跨组查询、删除操作和其他高级功能。
常见场景:
uv pip install omero-py
要求:
基本连接模式:
from omero.gateway import BlitzGateway
# 连接到 OMERO 服务器
conn = BlitzGateway(username, password, host=host, port=port)
connected = conn.connect()
if connected:
# 执行操作
for project in conn.listProjects():
print(project.getName())
# 始终关闭连接
conn.close()
else:
print("Connection failed")
推荐使用上下文管理器模式:
from omero.gateway import BlitzGateway
with BlitzGateway(username, password, host=host, port=port) as conn:
# 连接自动管理
for project in conn.listProjects():
print(project.getName())
# 退出时自动关闭
用于数据探索:
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 进行跨组查询references/connection.md)references/data_access.md)references/data_access.md)references/image_processing.md)references/tables.md 或 references/metadata.md)references/rois.md)references/rois.md)references/tables.md)references/scripts.md)始终将 OMERO 操作包装在 try-except 块中,并确保连接正确关闭:
from omero.gateway import BlitzGateway
import traceback
try:
conn = BlitzGateway(username, password, host=host, port=port)
if not conn.connect():
raise Exception("Connection failed")
# 执行操作
except Exception as e:
print(f"Error: {e}")
traceback.print_exc()
finally:
if conn:
conn.close()
每周安装量
133
代码仓库
GitHub 星标数
23.4K
首次出现
2026年1月21日
安全审计
安装于
claude-code120
opencode108
cursor105
gemini-cli103
antigravity100
codex92
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.
This skill should be used when:
This skill covers eight major capability areas. Each is documented in detail in the references/ directory:
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:
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:
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:
File : references/image_processing.md
Access raw pixel data as NumPy arrays, manipulate rendering settings, create derived images, and manage physical dimensions.
Common scenarios:
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:
File : references/tables.md
Store and query structured tabular data associated with OMERO objects. Useful for analysis results, measurements, and metadata.
Common scenarios:
File : references/scripts.md
Create OMERO.scripts that run server-side for batch processing, automated workflows, and integration with OMERO clients.
Common scenarios:
File : references/advanced.md
Covers permissions, filesets, cross-group queries, delete operations, and other advanced functionality.
Common scenarios:
uv pip install omero-py
Requirements:
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
For data exploration:
references/connection.md to establish connectionreferences/data_access.md to navigate hierarchyreferences/metadata.md for annotation detailsFor image analysis:
references/image_processing.md for pixel data accessreferences/rois.md for region-based analysisreferences/tables.md to store resultsFor automation:
references/scripts.md for server-side processingreferences/data_access.md for batch data retrievalFor advanced operations:
references/advanced.md for permissions and deletionreferences/connection.md for cross-group queriesreferences/connection.md)references/data_access.md)references/data_access.md)references/image_processing.md)references/tables.md or references/metadata.md)references/rois.md)references/rois.md)references/tables.md)references/scripts.md)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()
Weekly Installs
133
Repository
GitHub Stars
23.4K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code120
opencode108
cursor105
gemini-cli103
antigravity100
codex92
Python图像处理技能:Pillow脚本生成,支持调整大小、格式转换、网页优化
806 周安装