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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

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

Hashes for rtg_score-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5c1d734b28c6b93ce81b906d539a84a7adbdddc628c5e25c9fde15831df0cd0d
MD5 486bfa42f74ddd7d790b118c283125ee
BLAKE2b-256 4d7af5674ab3c3cb5939d6906d41c0ad2a83e47c16c084b927c5776712c97f7f

See more details on using hashes here.

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

Hashes for rtg_score-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5c7f70f13ee5ef0ee0d662f6d76e730e3dbe62d31d19629f5262b964d9397b80
MD5 840f804bd499f19814a15cbcf7d4b0b8
BLAKE2b-256 ecd69a4b587bb0a5b30219a89c819ddfc6bd20759110c1b08e755395bc64e691

See more details on using hashes here.

Supported by

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