Rank-To-Group (RTG) score evaluates contribution of confounders
Batch, cell line, donor, plate, reprogramming, protocol — these and other confounding factors influence cell cultures in vitro.
RTG score tracks contribution of different factors to variability by estimating how Rank maps To Group. Scoring relies on ranking by similarity, so there are no explicit or implicit assumptions of linearity.
RTG perfectly works with both well-interpretable data (gene expressions, cell types) and embeddings provided by deep learning.
Usage
rtg_score is python package. Installation:
pip install rtg_score
RTG score requires two DataFrames: one with confounds and ane with embeddings (or other features, e.g. gene expressions)
from rtg_score import compute_RTG_score
# following code corresponds to computing element of the figure above
#
score = compute_RTG_score(
metadata=confounders_metadata,
include_confounders=['batch', 'donor'],
exclude_confounders=['organoid_id'],
embeddings=qpcr_delta_ct,
)
An example of code to compute and plot table above is available in example subfolder.
Metadata
Release files for rtg-score 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 | |
|---|---|---|---|---|
| rtg_score-0.1.0.tar.gz | 4.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rtg_score-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 9.1 kB
Release files / rtg_score-0.1.0.tar.gz
| Download URL | rtg_score-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c1d734b28c6b93ce81b906d539a84a7adbdddc628c5e25c9fde15831df0cd0d
|
|
BLAKE2b-256 checksum How to use checksums |
4d7af5674ab3c3cb5939d6906d41c0ad2a83e47c16c084b927c5776712c97f7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.5
|
Release files / rtg_score-0.1.0-py2.py3-none-any.whl
| Download URL | rtg_score-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5c7f70f13ee5ef0ee0d662f6d76e730e3dbe62d31d19629f5262b964d9397b80
|
|
BLAKE2b-256 checksum How to use checksums |
ecd69a4b587bb0a5b30219a89c819ddfc6bd20759110c1b08e755395bc64e691
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.5
|
Security for rtg-score 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.