Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sragent

БесплатноБез исполняемых скриптовНе проверен

Query the Sequence Read Archive (SRA), retrieve scientific publications, and analyze genomics metadata using the SRAgent toolkit. Supports accession…

ArcInstituteот ArcInstitute★ 206 звёзд на GitHub16 установок в других каталогах

Об этом скилле

SRAgent: Sequence Read Archive Data and Publication Retrieval

Overview

SRAgent is an agentic workflow system for working with the NCBI Sequence Read Archive (SRA) and Gene Expression Omnibus (GEO) databases. It automates literature discovery, metadata extraction, and manuscript retrieval for genomics datasets.

Setup Instructions

1. Install SRAgent

SRAgent requires Python ≥3.11. Check to see if SRAgent is already installed:

which SRAgent

If SRAgent is not installed, follow the instructions below.

Install using uv:

# Clone the repository
git clone https://github.com/ArcInstitute/SRAgent.git
cd SRAgent

# Create and activate virtual environment with uv
uv venv
source .venv/bin/activate

# Install the package
uv pip install .

Verify installation:

SRAgent --help

2. Configure environment variables

The following environment variables are required:

  • OPENAI_API_KEY=sk-openai-...
    • Needed to use OpenAI models
  • ANTHROPIC_API_KEY=sk-ant-...
    • Needed to use Claude models
  • DYNACONF
    • Needed to switch between Claude and OpenAI models
  • [email protected]
    • Needed for using the Entrez API
  • NCBI_API_KEY=your-ncbi-key
    • Optional for increased rate limits when using the Entrez API
  • CORE_API_KEY=your-core-key
    • Optional for paper downloads from the CORE API
  • GCP_PROJECT_ID=your-project-id
    • Needed for using Google BigQuery
  • GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json
    • Needed for using Google BigQuery

Prompt the user to provide the environment variables if they are not already set as environment variables: export MY_SECRET_VAR=my-secret-value.

3. Configure Settings

SRAgent uses a settings file (settings.yml) to configure models and behavior. The default configuration works for most users, but you can customize it.

Option A: Use Default Settings

No action needed - SRAgent ships with sensible defaults.

Option B: Custom Settings File

See ./references/example-settings.yml for an example settings file that you can modify as needed.

4. Verify Setup

Test your configuration:

# Check which model is being used
python -c "from SRAgent.agents.utils import load_settings; s = load_settings(); print(s['models']['default'])"

# Test basic functionality
SRAgent entrez "Convert GSE121737 to SRX accessions"

Core Capabilities

1. Accession Conversion

Convert between different genomics database accession formats:

  • GEO Series: GSE* → SRA Study (SRP*)
  • SRA Study: SRP*/PRJNA* → SRA Experiments (SRX*)
  • SRA Experiment: SRX*/ERX* → SRA Runs (SRR*/ERR*)

2. Metadata Extraction

Query comprehensive metadata from SRA/GEO:

  • Sequencing platform (Illumina, PacBio, Oxford Nanopore)
  • Library preparation technology (10X Genomics, Smart-seq, etc.)
  • Organism, tissue, cell type
  • Study design and experimental details
  • Single-cell vs bulk RNA-seq identification

3. BigQuery Analysis

Leverage NCBI's BigQuery dataset for large-scale queries:

  • Batch accession conversions
  • Technology identification across studies
  • Filtering by platform, assay type, organism
  • Study/experiment/run relationship mapping

4. Publication Retrieval

Automatically find and download manuscripts:

  • Link SRA accessions to PubMed publications
  • Extract DOIs from PubMed records
  • Download full-text PDFs from multiple sources:
    • Preprint servers (arXiv, bioRxiv, medRxiv)
    • CORE API
    • Europe PMC
    • Unpaywall
  • Batch processing with CSV input

When to Use This Skill

Use SRAgent when the user:

  • Mentions SRA, GEO, or genomics accessions (GSE, SRP, SRX, SRR)
  • Needs to convert between accession formats
  • Wants metadata about sequencing experiments
  • Needs to find or download papers associated with datasets
  • References the Sequence Read Archive (SRA), European Nucleotide Archive (ENA), or Gene Expression Omnibus (GEO)

Available Commands

Command 1: SRAgent entrez

Purpose: Low-level NCBI Entrez database queries

Best for:

  • Simple accession conversions
  • Quick dataset summaries
  • Cross-database linking
  • When you know exactly what Entrez tool to use (esearch, efetch, elink)

Examples:

# Convert GEO to SRX
SRAgent --no-progress --no-summaries entrez "Convert GSE121737 to SRX accessions"

# Summarize a dataset
SRAgent --no-progress --no-summaries entrez "Summarize SRX4967527"

# Link to publications
SRAgent --no-progress --no-summaries entrez "Find publications for GSE196830"

Command 2: SRAgent sragent

Purpose: Comprehensive metadata extraction with multiple tools

Best for:

  • Complex metadata queries
  • Technology identification
  • When simple Entrez queries aren't enough
  • Determining if data is single-cell

Tools available:

  • Entrez agent (all databases)
  • BigQuery (large-scale queries)
  • NCBI web scraping
  • sra-stat (direct sequence file analysis)

Examples:

# Check sequencing technology
SRAgent --no-progress --no-summaries sragent "Wh
Полный SKILL.md на GitHub

Установить sragent в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdreferences/example-settings.ymlreferences/metadata-fields.mdreferences/quick-reference.mdreferences/usage-examples.md

FAQ

Что делает скилл sragent?

Query the Sequence Read Archive (SRA), retrieve scientific publications, and analyze genomics metadata using the SRAgent toolkit. Supports accession conversion (GSE→SRX→SRR), BigQuery metadata queries, manuscript downloads from multiple sources, and scRNA-seq technology identification. Use when working with SRA/GEO datasets, finding publications, or analyzing single-cell sequencing experiments.

Как установить скилл sragent?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sragent запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить sragent с