Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rtg_score-0.1.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

rtg_score-0.1.0-py2.py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page