Skip to main content

utrcalling

CI Coverage Documentation Python >= 3.11 License: BSD-3-Clause PyPI DOI

utrcalling counts the molecules at each site of each UTR, per cell or sample, from RNA sequencing reads: the polyadenylation sites of 3' UTRs and the transcription start sites of 5' UTRs. From BAM files and a GTF annotation it writes AnnData (.h5ad) count matrices of cells (or samples) by UTR sites, ready to study alternative polyadenylation (APA) and alternative transcription initiation (ATI) at single-cell resolution.

Documentation: utrcalling.readthedocs.io

Features

  • Single-cell and bulk protocols --- modified and standard 10x Chromium and Smart-seq3, 5' 10x and Cap-seq, and stranded or unstranded bulk RNA-seq.
  • 3' and 5' UTRs, at UTR or gene level.
  • Peak calling chosen for your data --- a kernel density estimate with a choice of kernel and bandwidth (fixed, set per UTR, or chosen by scoring its sites against the genome or a database of known sites), and the stability of each peak.
  • Quality control at every step --- tables of matrices, cells, batches and sites that pandas, R and MultiQC read, and a record in each matrix of how it was made.
  • From sites to analysis --- filter sites and UTRs, keep the UTRs with several sites, site usage per cell, mean UTR sizes, and the sequences around sites for motif analyses.
  • Extensible --- add your own scores, peak callers, bandwidth rules and protocols, as plugins or in a notebook.
  • Nothing outside Python --- pip install is all it needs.

Installation

utrcalling needs Python 3.11 or later, on Linux or macOS. In a conda environment:

conda create -n utrcalling -c conda-forge python=3.12
conda activate utrcalling
pip install utrcalling

Other ways, and a frozen environment for reproducibility: Installation.

Quick start

# Count the molecules at each UTR site of each cell
utrcalling run Mus_musculus.GRCm39.110.gtf.gz \
    --alignments sample1.bam sample2.bam --annotations-file cells.csv \
    --protocol-platform 10x --protocol-version 3 --raw-sizes --out raw_sizes.h5ad

# How the run went, per matrix
utrcalling qc report raw_sizes.h5ad raw_sizes_kde.h5ad -o report.tsv

# Keep the frequent sites, and the UTRs with two or more of them
utrcalling process filter-sites raw_sizes_kde.h5ad sites.h5ad --threshold 0.05 --minimum-counts 10
utrcalling process keep-multi-site sites.h5ad apa.h5ad

# Each site's share of its UTR's molecules, per cell
utrcalling tools to-fractions apa.h5ad fractions.h5ad

utrcalling --help lists the commands, and utrcalling COMMAND --help describes one. The documentation explains each step:

Citation

If you use utrcalling in your research, please cite it. Releases are archived on Zenodo under the DOI 10.5281/zenodo.23686176, which always resolves to the latest version; each version also has its own DOI, listed on that page. Citation metadata is in CITATION.cff, and GitHub's "Cite this repository" button formats it as APA or BibTeX.

Acknowledgements

Peak calling for 5' data builds on the master's thesis of Eugenia Guerrero Aruffo: Interferon regulates transcription and translation in neural stem cells by targeting regulatory elements on the 5' UTR (Heidelberg University, carried out at the German Cancer Research Center, 2026). She chose the linear kernel, half of Scott's bandwidth per UTR, the filters per treatment and by molecules; found and fixed peak calling on flat densities; and proposed the initiator as a measure of how well peaks find start sites, and bootstrap resampling as a measure of how stable peaks are.

Contributing

Bug reports, data that utrcalling does not handle well, and code are welcome: see CONTRIBUTING.md.

License

BSD-3-Clause. See LICENSE. Author: André Lopes Martins Macedo.

Metadata

Release files for utrcalling 5.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for utrcalling 5.1.0
File Size Uploaded Provenance Actions
utrcalling-5.1.0.tar.gz 2.0 MB With provenance Details for utrcalling-5.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for utrcalling 5.1.0
File Interpreter ABI Platform Actions
utrcalling-5.1.0-py3-none-any.whl Python 3 none any Details for utrcalling-5.1.0-py3-none-any.whl

Total release size: 4.0 MB

Release files / utrcalling-5.1.0.tar.gz

Download URL utrcalling-5.1.0.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
b9d66f523737fbce7d64bbeff0a87879f091a5c8788e2ce9bda2b7ec68f0416f
BLAKE2b-256 checksum
How to use checksums
6d779beeac75ec03805630a8d9bed074988a466e380fbbad87d5c5f239c2729f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / utrcalling-5.1.0-py3-none-any.whl

Download URL utrcalling-5.1.0-py3-none-any.whl
Size 2.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
41c8c051199ba0b0ad6004d24695850c083dfc9fb29b8a1b3791d5fc64a3f16e
BLAKE2b-256 checksum
How to use checksums
f2710cbaeedd42e77666da6bc85cd5c6269c9d21b9a4d6fc15c0d5a57f16161e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for utrcalling 5.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for utrcalling-5.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page