A python command-line utility for the generation of comprehensive reports on the quality of ribosome profiling (Ribo-Seq) datasets
Project description
A python command-line utility for the generation of comprehensive reports on the quality of ribosome profiling (Ribo-Seq) datasets
Free software: MIT license
Documentation: https://RiboMetric.readthedocs.io.
Installation
To install RiboMetric:
$ pip install RiboMetric
For PDF export support (adds ~30 dependencies):
$ pip install RiboMetric[pdf]
Usage
Create annotation files from gff files:
$ RiboMetric prepare -g gff_file.gff
Use the annotation file to run RiboMetric on a bam file:
$ RiboMetric run -b bam_file.bam -a annotation_RiboMetric.tsv
View results interactively in your terminal:
$ RiboMetric view output_RiboMetric_data.json
By default, RiboMetric calculates standard Ribo-Seq QC metrics. To enable optional (theoretical) metrics:
$ RiboMetric run -b bam_file.bam -a annotation_RiboMetric.tsv --enable-optional-metrics
Or enable specific metrics:
$ RiboMetric run -b bam_file.bam -a annotation_RiboMetric.tsv --enable-metric periodicity_fourier
For more information on how to use RiboMetric, see the documentation or use --help
Features
RiboMetric calculates comprehensive quality metrics for Ribo-Seq data:
- Default Metrics (Standard Ribo-Seq QC):
Read length distribution (IQR, coefficient of variation, max proportion)
Terminal nucleotide bias (5’ and 3’ ligation bias detection)
3-nt periodicity (frame dominance and information content)
Metagene uniformity (entropy-based)
CDS coverage
Regional distribution (5’UTR, CDS, 3’UTR proportions and ratios)
- Optional Metrics (Theoretical/Experimental):
Alternative periodicity methods (autocorrelation, Fourier transform, Trips-Viz)
Alternative uniformity methods (autocorrelation, Theil index, Gini index)
Additional read length metrics (bimodality, normality tests)
Use --enable-optional-metrics to calculate all metrics, or --enable-metric <name> for specific ones.
Output Formats
RiboMetric provides multiple output formats for different use cases:
- For Pipeline Integration:
Summary TSV - One-line summary per sample for quick QC decisions
QC Status JSON - Machine-readable pass/warn/fail with thresholds
Comparison CSV - Wide format for multi-sample comparison
- For Sample Review:
Interactive TUI - Terminal-based viewer for exploring metrics (RiboMetric view)
Interactive HTML - Professional reports with executive summary and searchable metrics
PDF - Archivable reports for documentation
Metrics Table CSV - Detailed metrics with read-length breakdowns
See REPORTING_GUIDE.md for complete documentation and examples.
Requirements
Transcriptomic alignments are required in BAM format
GFF annotations from Ensembl are also required
Testing
RiboMetric has a comprehensive test suite to ensure reliability:
$ pip install -r requirements_test.txt
$ pytest
For more information, see TESTING.md
Credits
This project was worked on by Lukas Wierdsma during his Internship at the UCC for Bioinformatics, Howest in 2023.
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ribometric-0.1.15.tar.gz.
File metadata
- Download URL: ribometric-0.1.15.tar.gz
- Upload date:
- Size: 44.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bc71bbe4f51ded23e0b3fb62c763ebddd16e017d6bf87957f6ab2ee0e38c94b
|
|
| MD5 |
9521fc4389cafb8ca627f3f26de18d78
|
|
| BLAKE2b-256 |
b7fadefb42286dea95b7531e919032db063f9ddf4bb595721ba562014b25f870
|
File details
Details for the file ribometric-0.1.15-py2.py3-none-any.whl.
File metadata
- Download URL: ribometric-0.1.15-py2.py3-none-any.whl
- Upload date:
- Size: 70.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cc801c836af4923e0b2a6407980c7bb37eb5fcc8849792c24dba797a19195ac
|
|
| MD5 |
9fc0dbb292e1c96ee79d55ddbcf2fa9a
|
|
| BLAKE2b-256 |
e822d61b68be5c2c0f942353e60948759ca5dc49f1f330d4924035e0d23337ee
|