utrcalling
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 installis 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:
- Quickstart
- Protocols and input files: what your annotation table needs
- Output files
- Peak calling: what the bandwidth means, choosing it for your data, and 5' data
- From sites to analysis and quality control
- In workflows, and the command lines of earlier versions, which still work
- Extending utrcalling
- Command line and Python references
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.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| utrcalling-5.2.0.tar.gz | 2.0 MB | With provenance | Details for utrcalling-5.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| utrcalling-5.2.0-py3-none-any.whl | Python 3 | none | any | Details for utrcalling-5.2.0-py3-none-any.whl |
Total release size: 4.0 MB
Release files / utrcalling-5.2.0.tar.gz
| Download URL | utrcalling-5.2.0.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b77ff1dd7c5146daaf43301f1a27c6844b422e19ca17e0b397a43c978244d871
|
|
BLAKE2b-256 checksum How to use checksums |
4bcb6c90aa247479ef074f3bc85eb83ce7bf6e1a4da81083c66354291f924399
|
| 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 18, 2026.
Transparency logRelease files / utrcalling-5.2.0-py3-none-any.whl
| Download URL | utrcalling-5.2.0-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce778d06b46dcc88206f9dc22c15a656c708ce7157d646157d47388cd7d4c501
|
|
BLAKE2b-256 checksum How to use checksums |
c5b9d9721f1e8353959088d8f1bc5cf24663c97ac09affe59736eaca806e85af
|
| 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 18, 2026.
Transparency logSecurity for utrcalling 5.2.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.
Attestation for utrcalling-5.2.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 18, 2026.
Transparency logA 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.