본문으로 건너뛰기
Skillpedia
데이터베이스51k · #3429

benchling-integration

하는 일

실험실에서 과학 데이터를 관리하는 데 쓰는 시스템인 Benchling에 연결하는 도구입니다. DNA 서열을 가져오거나, 재고를 확인하거나, 정보를 내보내는 작업을 자동화할 수 있습니다.

사용하는 경우

  • ✓파일에서 DNA 서열을 Benchling으로 가져올 때.
  • ✓특정 실험실 위치에 어떤 재료(재고)가 있는지 확인할 때.
  • ✓특정 정보가 포함된 DNA 서열 목록을 내보낼 때.

스킬 링크

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/benchling-integration/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/benchling-integration/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“'sequences.fasta' 파일의 서열을 'lib_example' 폴더로 가져와 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 Benchling과 통신하기 위한 특별한 코드(SDK)를 사용합니다. 자격 증명으로 접근을 설정한 뒤, 데이터를 읽거나 쓰는 작업을 요청할 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Benchling Integration

When to use

Use this skill for Benchling registry entities, sequence imports, inventory, ELN entries, workflow tasks, apps, event-driven integrations, and warehouse analytics.

Reviewed 2026-09-30: examples target the released benchling-sdk 1.25.0 and its stable v2 API models. The current authentication guide recommends V3 for new development, while the V3 guide still describes endpoint-specific early access. Confirm your tenant's V3 availability and stability before migrating; these v2 SDK examples must not be mechanically rewritten to V3.

SDK imports, model serialization, and request construction were checked locally against 1.25.0. Tenant-dependent examples are illustrative: no authenticated requests, mutations, AWS deployment, or warehouse connection were run.

Workflow

  1. Identify the tenant, API version, identity, and permissions. Use OAuth app credentials for background integrations; use delegated authorization when acting as an individual user. See authentication.
  2. Read the relevant schema and resolve actual folder, registry, status, and dropdown IDs. Preserve sequence alphabet/topology and sample units. A valid Python model does not establish biological correctness or satisfaction of a tenant's required fields.
  3. Read a small filtered page before writing. Use typed SDK methods and check their actual parameter names; not all services share the same CRUD naming convention.
  4. Construct and serialize a representative payload. For imports, retain external IDs and returned Benchling IDs so a retry can reconcile a partial run without duplicates.
  5. Perform the requested operation and read back the result. Check terminal async status; completed polling can still mean FAILED.

Setup and a read-only query

uv pip install "benchling-sdk==1.25.0"
import os
from benchling_sdk.benchling import Benchling
from benchling_sdk.auth.client_credentials_oauth2 import ClientCredentialsOAuth2

tenant_url = os.environ["BENCHLING_TENANT_URL"].rstrip("/")
benchling = Benchling(
    url=tenant_url,
    auth_method=ClientCredentialsOAuth2(
        client_id=os.environ["BENCHLING_CLIENT_ID"],
        client_secret=os.environ["BENCHLING_CLIENT_SECRET"],
        token_url=f"{tenant_url}/oauth/token",
    ),
)
for page in benchling.dna_sequences.list(page_size=10, name_includes="plasmid"):
    for sequence in page:
        print(sequence.id, sequence.name)
    break  # deliberate first-page connectivity/permission check

A successful empty page is a valid connectivity result. It does not imply access to all projects. There is no documented v2 users/me route or SDK users.get_me().

Important SDK conventions

  • Import fields from benchling_sdk.helpers.serialization_helpers. Its input is {"field_name": {"value": value}}, including the inner value mapping.
  • Use dna_sequence_id for DNA updates and workflow_task_id for workflow updates. Workflow task creation requires a workflow_task_group_id.
  • Entry methods are create_entry, get_entry_by_id, list_entries, and update_entry.
  • list() usually returns pages; iterate twice to reach the objects. estimated_count is a property that can raise NotImplementedError, not a method or guaranteed count.
  • Moving a tube uses ContainerUpdate(parent_storage_id=...). Material transfer is a separate operation; it changes contents and quantities.
  • Register on creation with registry_id plus either entity_registry_id (a human registry identifier) or naming_strategy. Do not confuse those with the registry's ID.

Common use cases

Import FASTA sequences

Install Biopython separately (uv pip install biopython). This illustrative import creates unregistered linear DNA; choose topology and resolve collisions before running.

from Bio import SeqIO
from benchling_sdk.models import DnaSequenceCreate

for record in SeqIO.parse("sequences.fasta", "fasta"):
    payload = DnaSequenceCreate(
        name=record.id,
        bases=str(record.seq),
        is_circular=False,
        folder_id="lib_example",
    )
    created = benchling.dna_sequences.create(payload)
    print(record.id, created.id)  # persist this mapping for restart/reconciliation

Audit inventory under a location


…
자주 묻는 질문

Benchling이란 무엇인가요?

DNA 서열, 재고, 실험 같은 연구 데이터를 정리하고 관리하기 위해 실험실에서 쓰는 플랫폼입니다.

SDK란 무엇인가요?

‘소프트웨어 개발 키트(Software Development Kit)’의 약자입니다. Benchling 같은 다른 시스템과 상호작용하는 프로그램을 개발자가 만들 수 있도록 돕는 도구 모음입니다.

이 도구를 쓰려면 코딩을 알아야 하나요?

도구는 뒤에서 코드를 사용하지만, 사용자는 단순한 언어로 작업을 요청할 수 있도록 설계되어 있어 기술적인 부분은 도구가 처리합니다.

상세 정보

작성자의 원본 설명

Benchling Python SDK and REST API integration for registry entities, inventory, ELN entries, workflows, Benchling Apps, and Data Warehouse queries. Use when automating lab data with benchling-sdk or the v2 API.

repo: K-Dense-AI/scientific-agent-skills

인기도

GitHub 스타
51k
순위
#3429
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬