Skip to main content
License: Europe PMC retrieves data from literature records and full text served by Europe PMC, distributed under source-specific terms. Attribution to literature records and full text served by Europe PMC is required when the data is redistributed. The client wrapper code is MIT-licensed. Please refer to the data terms for full terms.

Proto is not affiliated with EMBL-EBI. This toolkit is open source and builds on the implementation produced by this organization. Product names, logos, and trademarks are the property of their respective owners.


/
/
View repo
europepmc.org
Visit website
Europe PMC in 2023
Summer Rosonovski, Maria Levchenko, … Melissa Harrison
Nucleic Acids Research (2024)
Read paper
@articlerosonovski2024europepmc
Copy citation
ProtoProtoevo-design/proto-tools
View source
Open Notebook
Open notebook
proto-tools on GitHub
Run locally with proto-tools
Toolkit contributors

Background

Europe PMC is run by EMBL-EBI as a partner of PubMed Central. It indexes tens of millions of records, mostly PubMed abstracts, along with millions of full-text articles and preprints. Each record has a source code (MED for PubMed, PMC for PubMed Central, PPR for preprints) and an identifier within that source, and carries a PMID, PMCID, or DOI where one exists. Full text is available for the open-access subset of PubMed Central and Europe PMC, published under licenses such as CC BY that permit text mining. Articles arrive as JATS XML, the standard publishing markup for journal articles, which marks the title, abstracts, nested sections, figures, and tables. Reading an article as text rather than as a PDF makes it possible to find and quote a reported value, such as a binding constant or a list of hotspot residues, exactly as the authors wrote it.

Learning Resources

Tools

Europe PMC Full Text (europepmc-fulltext)

Fetches open-access articles by PMCID and returns each as plain-text sections: the title, every abstract, body and back-matter sections under their heading path, figure captions, and tables with cells separated by |.

API Reference

Source
List[string]
required
PubMed Central IDs (e.g. "PMC6034017"; a bare number gets the PMC prefix). A bare string is normalized to a one-item list.
Source
integer
default:"0"
Verbosity level (0=quiet, 1=info, 2=debug, 3=raw subprocess stderr). True is coerced to 1 and False to 0.
string
default:"cpu"
Device to run the tool on.
integer
default:"3600"
Maximum execution time in seconds, not counting time spent while a weights download keeps progressing. None waits indefinitely.
integer
Random seed. When set, tools run reproducibly up to small GPU float noise (see BaseToolOutput.approx_equal), and the seed participates in cache keys. When None, cacheable seed-sensitive tools skip cache until seeded.
Source
List[EuropePMCFullTextDocument]
Documents in input order.
string
required
Europe PMC REST endpoint used.
string
Version of the toolkit that produced the output, from its versions.yaml. Suffixed +dirty when the source no longer matches that version. See notes/versioning.md.

Applications

Use full text to find and quote the passage, table row, or figure caption that supports a claim, such as a reported dissociation constant or the residues a mutagenesis study found essential for binding.

Usage Tips

  • Pass the pmcid of a search hit with is_open_access=True. A PMCID that is not in Europe PMC or not open access gets an error and no sections. The other articles are still read.
  • Each section has a kind (title, abstract, section, figure, table) and a heading such as Results > Binding assays or Table 2, so a match can be cited by where it appears.
  • document.text joins every section into one string for searching, and the output exports to txt as well as json.
  • Reference lists are left out. Inline formulas are kept as plain text, so superscripts and subscripts run together (10^12 reads as 1012).
  • Check each article’s license before redistributing its text.

Toolkit Notes

These notes apply to both Europe PMC tools.
  • Requires network access. Every call is an HTTPS request to the Europe PMC REST API. No API key is needed.
  • Runs in process on CPU. There is no environment to build and no worker to start. Runtime is dominated by remote retrieval.
Example notebook: See the full working example for a copy-paste-ready walkthrough.

Infrastructure Guides

The following guides cover how to run tools efficiently and at scale.

Tool Persistence

Keep a tool’s model warm across calls instead of reloading it every invocation.

Device Management

How GPUs are allocated to tools and how to target specific devices.

Parallel Execution

Fan a batch of inputs out across multiple GPUs.