Skip to main content
License: bioRxiv retrieves data from preprint metadata served by the bioRxiv API, distributed under source-specific terms. Attribution to preprint metadata served by the bioRxiv API 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 openRxiv. 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.


biorxiv.org
Visit website
bioRxiv: the preprint server for biology
Richard Sever, Samantha Hindle, … John R. Inglis
bioRxiv (2019)
Read preprint
@articlesever2019biorxiv
Copy citation
ProtoProtoevo-design/proto-tools
View source
Open Notebook
Open notebook
proto-tools on GitHub
Run locally with proto-tools
Toolkit contributors

Background

bioRxiv opened in 2013 so that researchers could share manuscripts before peer review, and medRxiv followed in 2019 for clinical and health research. Preprints are screened but not peer reviewed. Authors can post revised versions, so one DOI may carry several versions, each with its own date and text, and a figure or value can change between them. When a preprint is later published, the servers link it to the journal article’s DOI. The bioRxiv API serves this metadata for both servers. It looks records up by DOI or lists them by posting date, but it has no keyword search.

Learning Resources

  • bioRxiv API (openRxiv) - endpoints and returned fields.
  • About bioRxiv (openRxiv) - screening, versions, and licensing.

Tools

bioRxiv Details (biorxiv-details)

Looks up preprints by DOI and returns, for each, the latest version’s title, authors, corresponding author, category, license, and abstract, the published journal DOI if any, every version with its date and JATS XML link, and the API URL used (source_url).

API Reference

Source
List[string]
required
bioRxiv or medRxiv DOIs (e.g. "10.1101/2022.12.09.519842"). A https://doi.org/ or doi: prefix is removed. A bare string is normalized to a one-item list.
Source
enum
default:"auto"
auto tries bioRxiv, then medRxiv when bioRxiv has no posts for the DOI; biorxiv or medrxiv queries only that server. Both servers issue 10.1101 and 10.64898 DOIs, so the prefix does not identify the server.Available options: auto, biorxiv, medrxiv
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[BiorxivPreprint]
Records in input order; a DOI that is not found carries error.
string
required
bioRxiv API 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 details to cite the exact version of a preprint that reports a result, to check whether it has since been published, and to move from a preprint to its journal article.

Usage Tips

  • The bioRxiv API has no keyword search. To find preprints by topic, use europepmc-search with SRC:PPR in the query, then pass the DOI of a hit here.
  • DOIs may be bare (10.1101/2022.12.09.519842) or a https://doi.org/ link. Newer bioRxiv and medRxiv DOIs use the 10.64898 prefix.
  • The default server="auto" tries bioRxiv, then medRxiv. Both servers issue the same DOI prefixes, so the prefix does not identify the server. The result’s server field names the one that answered. Set server="biorxiv" or server="medrxiv" to query only that server.
  • A DOI that is not found, or that the API rejects, returns a record with error set and no metadata. The other DOIs in the call still return.
  • Take published_doi to europepmc-search (DOI:"...") to find the published article and its PMCID.
  • Each version’s jats_xml_url is bioRxiv’s full text, including for preprints whose full text Europe PMC does not hold. bioRxiv serves these files behind Cloudflare rate limits, so space out bulk downloads and expect occasional HTTP 429 responses.
  • paperclip-literature-* also indexes bioRxiv and medRxiv full text, with line-numbered reading, but needs a PAPERCLIP_API_KEY.

Toolkit Notes

  • Requires network access. Every call is an HTTPS request to the bioRxiv 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.