> ## Documentation Index
> Fetch the complete documentation index at: https://proto.evodesign.org/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# bioRxiv

> [bioRxiv](https://www.biorxiv.org/) and [medRxiv](https://www.medrxiv.org/) are preprint servers for the life sciences and health sciences, run by openRxiv, an independent non-profit. This toolkit exposes one tool, `biorxiv-details`, which looks up a preprint by DOI through the bioRxiv API and returns every posted version with its date, the title, authors, category, license, abstract, and the journal DOI once the preprint is published. It runs on CPU in process and needs only network access.

![bioRxiv](https://proto-bio.github.io/proto-assets/images/tool/biorxiv/hero.png)[![](https://avatars.githubusercontent.com/u/229024258?s=200\&v=4) openRxiv](https://proto.evodesign.org/docs/tools/organizations/openrxiv.md)

> [!NOTE]
>
> **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](https://api.biorxiv.org/) 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.

***

&#x20;Website Website  Preprint Preprint  Cite Cite  Tool Source Tool Source  Open as Notebook Open as Notebook  Run Locally Run Locally

&#x20;biorxiv.org

&#x20;Visit website

[Open](https://www.biorxiv.org/)

bioRxiv: the preprint server for biologyRichard Sever, Samantha Hindle, ... John R. InglisbioRxiv (2019)

&#x20;Read preprint

[Open](https://doi.org/10.1101/833400)

@articlesever2019biorxiv

```bibtex theme={null}
@article{sever2019biorxiv,
  title={bioRxiv: the preprint server for biology},
  author={Sever, Richard and Hindle, Samantha and Roeder, Ted and Fereres, Sol and Fern{\'a}ndez Gayol, Olaya and Ghosh, Sanchari and Proietti Onori, Martina and Croushore, Emma and Black, Kevin-John and Sussman, Linda and Argentine, Janet and Manos, Wayne and Mu{\~n}oz, Marisol and Sinanan, Josh and Teal, Tracy K. and Inglis, John R.},
  journal={bioRxiv},
  year={2019},
  doi={10.1101/833400}
}
```

&#x20;Copy citation

![Proto](https://mintcdn.com/bio-pro/cMLt8hAqaP9M3LKy/assets/logo/logo-light.svg?fit=max\&auto=format\&n=cMLt8hAqaP9M3LKy\&q=85\&s=f5e5dfd1b8f9b9db3a0be0e2eb01f678)

evo-design/proto-tools

&#x20;View source

[Open](https://github.com/evo-design/proto-tools/tree/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/biorxiv)

Open Notebook

&#x20;Open notebook

[Open](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/biorxiv/examples/example.ipynb)

[![proto-tools on GitHub](https://opengraph.githubassets.com/1/evo-design/proto-tools)](https://github.com/evo-design/proto-tools)

Run locally with proto-tools

```bash theme={null}
pip install git+https://github.com/evo-design/proto-tools.git
```

Toolkit contributors[![](https://avatars.githubusercontent.com/u/21143637?v=4\&s=64)bviggiano](https://github.com/bviggiano)[![](https://avatars.githubusercontent.com/u/61667248?v=4\&s=64)adititm](https://github.com/adititm)

| Function | Description | |
| - | - | - |
| `run_biorxiv_details()` | Look up bioRxiv or medRxiv preprint metadata by DOI: versions and dates, authors, abstract, and t... | [ Docs](#api-run-biorxiv-details) [ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/biorxiv/biorxiv_details.py#L223) |

## Background

[bioRxiv](https://www.biorxiv.org/) opened in 2013 so that researchers could share manuscripts before peer review, and [medRxiv](https://www.medrxiv.org/) 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](https://api.biorxiv.org/) 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](https://api.biorxiv.org/) (openRxiv) - endpoints and returned fields.
* [About bioRxiv](https://www.biorxiv.org/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](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/biorxiv/biorxiv_details.py#L49)

> [accordion] Input: BiorxivDetailsInput
>
> **dois** `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](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/biorxiv/biorxiv_details.py#L81)

> [accordion] Config: BiorxivDetailsConfig
>
> **server** `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`
>
> **verbose** `integer` (default: 0)
>
> Verbosity level (0=quiet, 1=info, 2=debug, 3=raw subprocess stderr). `True` is coerced to `1` and `False` to `0`.
>
> **device** `string` (default: cpu)
>
> Device to run the tool on.
>
> **timeout** `integer` (default: 3600)
>
> Maximum execution time in seconds, not counting time spent while a weights download keeps progressing. `None` waits indefinitely.
>
> **seed** `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](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/biorxiv/biorxiv_details.py#L163)

> [accordion] Output: BiorxivDetailsOutput
>
> **preprints** `List[BiorxivPreprint]`
>
> Records in input order; a DOI that is not found carries `error`.
>
> **BiorxivPreprint**
>
> **doi** `string` *required*
>
> Requested preprint DOI.
>
> **error** `string`
>
> Why this item has no data; None when it was retrieved.
>
> **server** `string`
>
> Server that answered, as reported (`bioRxiv` or `medRxiv`).
>
> **title** `string`
>
> Title of the latest version.
>
> **authors** `List[string]`
>
> Authors (`"Surname, I."`) of the latest version.
>
> **corresponding\_author** `string`
>
> Corresponding author.
>
> **corresponding\_institution** `string`
>
> Corresponding author's institution.
>
> **category** `string`
>
> Subject category, e.g. `bioengineering`.
>
> **license** `string`
>
> License code, e.g. `cc_by`.
>
> **abstract** `string`
>
> Abstract of the latest version.
>
> **published\_doi** `string`
>
> Journal DOI once the preprint is published, else None.
>
> **versions** `List[BiorxivVersion]`
>
> All posted versions, oldest first.
>
> **source\_url** `string`
>
> bioRxiv API URL the record was read from.
>
> **source\_url** `string` *required*
>
> bioRxiv API endpoint used.
>
> **tool\_version** `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.

> [!TIP]
>
> **Example notebook:** See the [full working example](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/biorxiv/examples/example.ipynb) for a copy-paste-ready walkthrough.

## Infrastructure Guides

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

> [card] [Tool Persistence](https://proto.evodesign.org/docs/tools/guides/tool-persistence.md)
>
> Keep a tool's model warm across calls instead of reloading it every invocation.

> [card] [Device Management](https://proto.evodesign.org/docs/tools/guides/device-management.md)
>
> How GPUs are allocated to tools and how to target specific devices.

> [card] [Parallel Execution](https://proto.evodesign.org/docs/tools/guides/parallel-execution.md)
>
> Fan a batch of inputs out across multiple GPUs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.