跳到正文
cccskills
免费在 GitHub 公开

literature-search-europepmc

Search open-access life-science literature in Europe PMC by keyword, author, or article identifier. Download available PDFs and full texts as plain text or XML, and retrieve reference lists and papers that cite a study.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Search Europe PMC for scientific literature and download open-access full texts and PDFs. Retrieve full-text XML/plain text by PMCID, get citation lists and bibliography.

实测评分 未实测

查看安装方法

适用场景

  • Find open-access papers on a life-science topic
  • Look up a paper by DOI or PMID
  • Save full text as PDF, plain text, or XML
  • Explore citing papers and reference lists

包含的文件(3)

  • SKILL.md8.2 KB
  • references/citation.bib2.0 KB
  • scripts/europepmc_api.py11.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Europe PMC Database

A skill for searching, downloading, and exploring open-access papers from Europe PMC — a comprehensive, free life-science literature database with over 43 million abstracts and 9 million full-text articles.

Prerequisites

  1. uv: Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH.
  2. User Notification: If .licenses/literature_search_europepmc_LICENSE.txt does not already exist in the workspace root directory then (1) prominently notify the user to check the terms at https://europepmc.org/ and to always check the license of the papers retrieved by the skill for any restrictions, then (2) create the file recording the notification text and timestamp.

Core Rules

  • Open Access Only: This skill exclusively searches open-access content. The script automatically appends OPEN_ACCESS:y to every search query. Do NOT remove or override this filter.
  • NEVER run python3 or python3 -c directly: the system Python does not necessarily have all key dependencies. Do not attempt to pip install or create new venvs.
  • Use the Wrapper: ALWAYS use the provided script rather than calling the API directly. The script handles rate limiting (1 req/s) and errors.
  • Output Files: All subcommands require --output to write results to a file. Read the output file separately to avoid context overflow.
  • List Sources. If this skill is used, ensure this is mentioned in the output AND list the URLs of all papers that were used in producing the output.

Utility Scripts

All commands are subcommands of scripts/europepmc_api.py. Rate limiting and retries are handled automatically.

1. Search (search)

Search Europe PMC by query. Supports DOI lookup, keyword search, author search, PMID lookup, and the full Europe PMC search syntax.

# Look up a paper by DOI
uv run scripts/europepmc_api.py search "DOI:10.1038/s41586-021-03819-2" --output result.json

# Keyword search
uv run scripts/europepmc_api.py search "CRISPR cancer" --max_results 5 --output results.json

# Author search
uv run scripts/europepmc_api.py search "AUTH:Jumper J" --max_results 10 --output results.json

# PMID lookup
uv run scripts/europepmc_api.py search "EXT_ID:34265844 AND SRC:MED" --output result.json

# Sorted by citations
uv run scripts/europepmc_api.py search "machine learning" \
  --sort "CITED desc" --max_results 20 --output results.json

Arguments:

  • query (str, required) — search query using Europe PMC syntax
  • --output (str, required) — output JSON file path
  • --max_results (int, default 10) — maximum results per page (max 1000)
  • --result_type (str, default core) — core (full metadata) or lite
  • --cursor (str, default *) — cursor mark for pagination; pass the nextCursorMark value from a previous response to get the next page
  • --sort (str) — sort order, e.g. CITED desc, P_PDATE_D desc (publication date descending), P_PDATE_D asc

Output: JSON file with three fields:

  • hitCount (int) — total number of matching articles
  • nextCursorMark (str) — cursor for next page; empty string if no more pages
  • results (list) — array of article metadata objects

Search Syntax Quick Reference:

  • DOI:10.xxxx/yyyy — look up by DOI
  • EXT_ID:12345678 AND SRC:MED — look up by PMID
  • AUTH:surname initials — author search
  • TITLE:keyword — search in title only
  • JOURNAL:name — search by journal
  • PUB_YEAR:2024 or (FIRST_PDATE:[2023-01-01 TO 2023-12-31]) — date filter
  • HAS_FT:y — restrict to articles with full text in Europe PMC
  • Boolean operators: AND, OR, NOT

Note: OPEN_ACCESS:y is automatically appended to all queries. You do not need to add it manually.

2. Download PDF (download_pdf)

Download an open-access PDF from Europe PMC by PMCID.

uv run scripts/europepmc_api.py download_pdf PMC8371605 --output alphafold.pdf

Arguments:

  • pmcid (str, required) — PubMed Central ID (e.g., PMC8371605)
  • --output (str, required) — filepath to save the PDF

Output: Saves the PDF to the specified file. Exits with an error if the PMCID is not found or the response is not a valid PDF. Whenever you download a PDF, check the pdf downloaded is not empty or corrupted.

3. Get Full Text (get_fulltext)

Retrieve the full text of an open-access article and save to a file. Returns plain text (XML tags stripped) by default, or raw XML with --format xml.

# Get plain text (default)
uv run scripts/europepmc_api.py get_fulltext PMC8371605 --output fulltext.txt

# Get raw XML
uv run scripts/europepmc_api.py get_fulltext PMC8371605 --format xml --output fulltext.xml

Arguments:

  • pmcid (str, required) — PubMed Central ID
  • --output (str, required) — output file path
  • --format (str, default text) — text (plain text) or xml (raw JATS XML)

Output: Full text written to the specified file. Exits with an error if the article is not in the Europe PMC open-access subset.

Important: Only articles in the PMC Open Access Subset have full text available. If retrieval fails, use search to check the isOpenAccess field and fall back to the abstract.

4. Get Citations (get_citations)

Retrieve articles that cite a given paper.

# Get citations for the AlphaFold paper (PMID 34265844)
uv run scripts/europepmc_api.py get_citations MED 34265844 \
  --page_size 25 --output citations.json

Arguments:

  • source (str, required) — source database: MED (PubMed), PMC, PPR (preprints), PAT (patents)
  • article_id (str, required) — article ID in the source database
  • --output (str, required) — output JSON file path
  • --page (int, default 1) — page number
  • --page_size (int, default 25) — results per page

Output: JSON file with hitCount and citations array.

5. Get References (get_references)

Retrieve the reference list (bibliography) of a given paper.

# Get references from the AlphaFold paper
uv run scripts/europepmc_api.py get_references MED 34265844 \
  --page_size 100 --output references.json

Arguments:

  • source (str, required) — source database: MED, PMC, PPR, PAT
  • article_id (str, required) — article ID in the source database
  • --output (str, required) — output JSON file path
  • --page (int, default 1) — page number
  • --page_size (int, default 25) — results per page

Output: JSON file with hitCount and references array.

Common Workflows

DOI to PDF

# Step 1: Search for the PMCID
uv run scripts/europepmc_api.py search "DOI:10.1038/s41586-021-03819-2" --output result.json
PMCID=$(jq -r '.results[0].pmcid // empty' result.json)

# Step 2: Download the PDF
uv run scripts/europepmc_api.py download_pdf "$PMCID" --output paper.pdf

PMID to Full Text

# Step 1: Find the PMCID from a PMID
uv run scripts/europepmc_api.py search "EXT_ID:34265844 AND SRC:MED" --output result.json
PMCID=$(jq -r '.results[0].pmcid // empty' result.json)

# Step 2: Get the full text
uv run scripts/europepmc_api.py get_fulltext "$PMCID" --output fulltext.txt

Citation Graph Traversal

# Find what papers cite a landmark study, then check their references
uv run scripts/europepmc_api.py get_citations MED 34265844 --page_size 50 --output citing.json
# Parse a cited paper's PMID and explore its references
uv run scripts/europepmc_api.py get_references MED <CITING_PMID> --output refs.json

Search with Pagination

# First page
uv run scripts/europepmc_api.py search "CRISPR" --max_results 100 --output page1.json
# Extract cursor for next page
CURSOR=$(jq -r '.nextCursorMark // empty' page1.json)
# Next page
uv run scripts/europepmc_api.py search "CRISPR" --max_results 100 --cursor "$CURSOR" --output page2.json

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Retrieve AlphaFold protein structures using a UniProt ID and summarize prediction confidence, boundaries of rigid structural regions, and likely disordered regions. Downloaded structure files and error estimates support further examination of the results.

中文简介正在准备中。当前显示英语简介。

  • Check confidence in a predicted protein structure
  • Identify boundaries of rigid structural regions
  • Assess regions likely to lack a stable structure
google-deepmind/science-skills33262026年10月23日 更新

Create links that open specific genetic variants or genomic regions in AlphaGenome Atlas. Set tissue and display filters, build linked candidate tables, and open charts comparing predictions for reference and alternate DNA sequences.

中文简介正在准备中。当前显示英语简介。

  • Open a specific genetic variant in AlphaGenome Atlas
  • Explore a genomic region with selected display filters
  • Build a candidate variant table with clickable links
google-deepmind/science-skills33262026年10月23日 更新

Analyze a genetic variant with the AlphaGenome API to predict changes in gene activity, DNA accessibility, and RNA splicing, the joining of RNA segments. Produce comparison plots and a report highlighting effects across tissues.

中文简介正在准备中。当前显示英语简介。

  • Explore predicted effects of non-coding genetic variants
  • Compare predicted gene activity changes across tissues
  • Visualize changes in RNA splicing
google-deepmind/science-skills33262026年10月23日 更新

Use AlphaGenome scores to investigate predicted molecular effects of genetic variants, annotate variant files, and rank research candidates. Scan genomic regions for single nucleotide substitutions and retrieve matching gene structures, including exon and splice junction coordinates.

中文简介正在准备中。当前显示英语简介。

  • Inspecting predicted functional effects of individual variants
  • Annotating variant files and ranking research candidates
  • Scanning genomic regions for impactful single nucleotide substitutions
google-deepmind/science-skills33262026年10月23日 更新

Search ChEMBL for compounds, drug targets, and measured biological activity. Retrieve drug mechanisms, compare activity values in a common unit, find similar chemical structures, and download structure files or images for further analysis.

中文简介正在准备中。当前显示英语简介。

  • Find compounds and their drug targets
  • Compare IC50 values in a common unit
  • Check drug mechanisms and indications
google-deepmind/science-skills33262026年10月23日 更新

Search ClinicalTrials.gov for studies by condition, treatment, location, recruitment status, or trial phase. Retrieve individual trial details and participation criteria, count matching studies, and explore trials run by a particular company or institution.

中文简介正在准备中。当前显示英语简介。

  • Finding recruiting trials by condition and location
  • Checking trial participation and exclusion criteria
  • Counting studies by condition, phase, or time period
google-deepmind/science-skills33262026年10月23日 更新

查看 google-deepmind 的全部技能

报告此技能的问题