geNorm
A Python package for RNAseq housekeeping (or, reference) normalisation.
You can:
- Run the geNorm algorithm [1], which automatically selects reference genes by recursively eliminating genes with high $
M$ value. - Compute the gene-stability measure $
M$ for reference genes in a given set of samples.
Here, $M$ is defined in terms of the average variation in log-ratio expression:
M_j = \sum_{k=1}^n\frac{V_{jk}}{n-1}
where
A_{jk}^{(i)} = \log_2 \frac{a_{ij}}{a_{jk}}; V_{jk} = \sqrt{\mathrm{Var}(A_{jk})};
with expression $a_{ij}$ referring to gene $j$ in sample $i$.
Installation
You can grab geNorm from the Python Package Index:
pip3 install rna-genorm
Example
from pandas import DataFrame
from genorm import m_measure, genorm
# Expression data for three control genes.
counts = DataFrame(
[[ 1, 2, 1],
[ 3, 6, 5],
[ 5, 10, 9],
[ 3, 6, 5]],
columns=['gene_a', 'gene_b', 'gene_c'],
index=[f'sample_{i}' for i in range(1, 5)],
)
# Compute `M` value for this set of control genes.
m_measure(counts)
# Select top 2 control genes with lowest `M`.
gene_names, m_values = genorm(counts, n_stop=2)
Acknowledgements
Made by Hylke Donker & Bram van Es and open sourced under the Apache 2 license.
References:
[1]: Vandesompele, Jo, et al. "Accurate normalization of real-time quantitative RT-PCR data by geometric averaging of multiple internal control genes." Genome biology 3.7 (2002): 1-12.
Metadata
Release files for rna-genorm 0.1.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 | |
|---|---|---|---|---|
| rna-genorm-0.1.0.tar.gz | 5.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rna_genorm-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / rna-genorm-0.1.0.tar.gz
| Download URL | rna-genorm-0.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6de75b70e91440569dfb2406fb360ce8c342992cf48e38e641f951f92a0d3b0
|
|
BLAKE2b-256 checksum How to use checksums |
d6812c4a69da77b3957f6a5ab53096e82e55e116f32acf9356cb6ea1c10dacbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Release files / rna_genorm-0.1.0-py3-none-any.whl
| Download URL | rna_genorm-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d218f1b833c79f7c18c2a62b43f7c4e3047938375f8594b3b59dd85361a0dd7f
|
|
BLAKE2b-256 checksum How to use checksums |
0cbb52854bf01e2a48f40535f6ac65875e8868c8c62c78b06f517a05e829a4e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Security for rna-genorm 0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.