Analysis of confounders by Rank-to-Group scores
Project description
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.
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 rtg_score-0.1.0.tar.gz.
File metadata
- Download URL: rtg_score-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c1d734b28c6b93ce81b906d539a84a7adbdddc628c5e25c9fde15831df0cd0d
|
|
| MD5 |
486bfa42f74ddd7d790b118c283125ee
|
|
| BLAKE2b-256 |
4d7af5674ab3c3cb5939d6906d41c0ad2a83e47c16c084b927c5776712c97f7f
|
File details
Details for the file rtg_score-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: rtg_score-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c7f70f13ee5ef0ee0d662f6d76e730e3dbe62d31d19629f5262b964d9397b80
|
|
| MD5 |
840f804bd499f19814a15cbcf7d4b0b8
|
|
| BLAKE2b-256 |
ecd69a4b587bb0a5b30219a89c819ddfc6bd20759110c1b08e755395bc64e691
|