Tooluniverse electron microscopy

From mims-harvard/ToolUniverse · View interactive version

Tooluniverse electron microscopy is an AI agent skill from the GitHub repository mims-harvard/ToolUniverse. Search and analyze electron microscopy data — cryo-EM density maps (EMDB), fitted atomic models (PDB), raw micrograph datasets (EMPIAR), and cryo-electron tomography volumes (CryoET Data Portal). Use for finding 3D structural data on a protein/complex, comparing experimental EM resolution to AlphaFo

How to use this skill

Skill file

Electron Microscopy Structure Analysis

Pipeline for discovering and analyzing electron microscopy data across the full resolution spectrum: from 3D density maps (EMDB) to fitted atomic models (PDB), raw micrograph datasets (EMPIAR), and cryo-electron tomography volumes (CryoET Data Portal). Connects EM data to structural biology context via PDB and AlphaFold.

Guiding principles:

  1. Resolution awareness -- always report and interpret map resolution; sub-4A enables atomic modeling, 4-8A enables domain fitting, >8A is shape-level
  2. Map before model -- the density map is the primary experimental data; fitted models are interpretations
  3. Method matters -- single particle analysis, tomography, 2D crystallography, and helical reconstruction have different strengths and limitations
  4. Raw data value -- EMPIAR raw data enables reprocessing with newer algorithms; always note availability
  5. Cross-reference structures -- connect EMDB maps to PDB entries and AlphaFold predictions for completeness
  6. English-first queries -- use English terms in tool calls

EM resolution determines what you can see. TEM resolves individual protein complexes (~2nm). Cryo-EM achieves near-atomic resolution (<4Å) for large complexes. SEM shows surface topology. Choose the right EM modality for the question.

LOOK UP, DON'T GUESS

When uncertain about any scientific fact, SEARCH databases first rather than reasoning from memory. A database-verified answer is always more reliable than a guess.


COMPUTE, DON'T DESCRIBE

When analysis requires computation (statistics, data processing, scoring, enrichment), write and run Python code via Bash. Don't describe what you would do — execute it and report actual results. Use ToolUniverse tools to retrieve data, then Python (pandas, scipy, statsmodels, matplotlib) to analyze it.

When to Use

Typical triggers:

Not this skill: For X-ray crystallography or NMR structures, use PDB search tools directly. For protein structure prediction, use tooluniverse-protein-structure.


Core Databases

| Database | Content | Best For |

|----------|---------|----------|

| EMDB | 3D EM density maps (>40K entries) | Finding processed maps, resolution data, fitting info |

| EMPIAR | Raw micrograph/tilt series datasets | Accessing original image data for reprocessing |

| CryoET Data Portal | Cryo-electron tomography data | Tomographic volumes, cellular context, in-situ structures |

| PDB (RCSB) | Atomic models fitted to EM maps | Structural models derived from EM data |

| AlphaFold | AI-predicted protein structures | Complementary models when EM resolution is limited |


Workflow Overview

Phase 0: Query Parsing
  Identify target protein/complex, method preference, resolution needs
    |
Phase 1: Map & Image Search (EMDB)
  Find EM density maps, resolution, method, sample details
    |
Phase 2: Structure Fitting (EMDB + PDB)
  Identify fitted atomic models, fitting quality
    |
Phase 3: Raw Data Access (EMPIAR)
  Find raw micrographs, tilt series, particle stacks
    |
Phase 4: Tomography (CryoET Data Portal)
  Search cryo-ET datasets, reconstructed volumes
    |
Phase 5: Cross-Reference & Context (PDB + AlphaFold)
  Connect to atomic models, predicted structures, literature
    |
Phase 6: Report Synthesis
  Integrated EM data landscape for the target

Phase Details

Phase 0: Query Parsing

Identify from the user's request:

Phase 1: Map & Image Search (EMDB)

Objective: Find EM density maps matching the query.

Tools:

Workflow:

  1. Search EMDB for the target protein/complex
  2. Sort results by resolution (best first)
  3. For top entries, get full details including sample preparation and processing
  4. Note the EM method used (single particle, tomography, helical, etc.)
  5. Record associated PDB and EMPIAR accessions

Resolution interpretation:

Phase 2: Structure Fitting (EMDB + PDB)

Objective: Find atomic models fitted into EM maps and assess fitting quality.

Tools:

Workflow:

  1. For each EMDB entry from Phase 1, check for fitted atomic models
  2. Get fitting statistics (cross-correlation, real-space R-factor if available)
  3. Retrieve the PDB entry for structural details
  4. If no model is fitted, search PDB for related structures by name

Fitting quality indicators:

Phase 3: Raw Data Access (EMPIAR)

Objective: Locate raw micrograph data for potential reprocessing.

Tools:

Workflow:

  1. Search EMPIAR for entries related to the target
  2. Cross-reference with EMDB entries found in Phase 1 (many EMDB entries link to EMPIAR)
  3. Note data types: micrographs, particle stacks, tilt series, gain references
  4. Record dataset size (can be 100s of GB to TBs)

Data types in EMPIAR:

Phase 4: Tomography (CryoET Data Portal)

Objective: Find cryo-electron tomography datasets for cellular and in-situ structural biology.

Tools:

Workflow:

  1. Search CryoET Data Portal for the target organism/structure
  2. Get dataset details including sample preparation and imaging parameters
  3. Explore individual runs for tilt series specifications
  4. Note voxel spacing and tomogram dimensions

Tomography vs single particle: Tomography preserves cellular context (in situ) but typically achieves lower resolution. Single particle gives higher resolution but requires purified samples.

Phase 5: Cross-Reference & Context

Objective: Connect EM data to broader structural biology context.

Tools:

Workflow:

  1. For proteins with EM structures, get AlphaFold predictions for comparison
  2. Note regions where AlphaFold confidence is low (pLDDT < 70) -- these may be flexible and harder to resolve by EM
  3. Search PubMed for methodological papers and biological insights from the EM studies
  4. Cross-reference EMDB/PDB/EMPIAR accessions in publications

Phase 6: Interpretation & Recommendations

Don't just list maps — help the user choose the RIGHT map for their purpose.

Decision matrix: Which map should I use?

| Purpose | Best Resolution | Method | Priority Criteria |

|---------|----------------|--------|-------------------|

| Atomic model building | < 3.5A | Single particle | Highest resolution with fitted PDB model |

| Drug binding site analysis | < 3.0A | Single particle | Must resolve side chains in binding pocket |

| Domain architecture | 4-8A | Single particle or subtomogram avg | Large complexes where domains need fitting |

| Conformational states | < 4.5A | Single particle (multiple classes) | Look for entries with multiple maps from same dataset |

| Cellular context | 15-40A | Cryo-ET | Tomographic datasets showing in-situ arrangement |

| Reprocessing | Any | Any | Must have EMPIAR raw data; prefer recent datasets (better detectors) |

Quality assessment checklist:

Resolution trend analysis: If multiple maps exist over time, note the resolution trajectory. Improvement from 6A (2015) to 2.8A (2023) suggests the sample is amenable to high-resolution single particle analysis with modern hardware.

Phase 7: Report Synthesis

Assemble findings into an actionable report:

  1. Target Overview -- protein/complex identity, biological significance
  2. EM Map Landscape -- available maps with resolution, method, and year
  3. Best Available Structures -- highest resolution maps with fitted models, with quality assessment
  4. Recommendation -- which specific map/model to use for the user's purpose (with reasoning)
  5. Raw Data Availability -- EMPIAR datasets for reprocessing, with dataset sizes
  6. Tomography Data -- cellular context datasets if available
  7. Structural Context -- comparison with X-ray/NMR/AlphaFold structures
  8. Key Publications -- methods papers, biological discoveries
  9. Data Gaps -- missing conformational states, unresolved regions, need for higher resolution

Common Analysis Patterns

| Pattern | Description | Key Phases |

|---------|-------------|------------|

| Structure Discovery | Find all EM data for a protein | 0, 1, 2, 5 |

| Reprocessing Prep | Find raw data for re-analysis | 0, 1, 3 |

| Tomography Survey | Explore in-situ structural data | 0, 4 |

| Resolution Comparison | Track resolution improvements over time | 0, 1, 2 |

| Map-Model Validation | Assess quality of fitted atomic models | 0, 1, 2, 5 |


Edge Cases & Fallbacks


Related Resource: IDR (light microscopy & high-content screening)

IDR (Image Data Resource, https://idr.openmicroscopy.org) is the reference repository for light microscopy and high-content screening data — distinct from the EM databases above. Use it to find published imaging studies and images by curated metadata across all ~140 studies at once:

Notes: value matching is case-sensitive on the stored capitalization (organism must be Homo sapiens, not homo sapiens); use IDR_list_values_for_key to find valid values. To drill from a returned IDR study container into its datasets/images, use the existing IDR_get_study / IDR_get_study_datasets / IDR_list_dataset_images / IDR_get_image_map_annotations tools.


Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.