Skip to main content

MELD

Project description

MELD

Quantifying the effect of experimental perturbations at single-cell resolution

Latest PyPi version GitHub Actions Coverage Status Read the Docs bioRxiv Preprint Twitter GitHub stars

Quick Start

Introduction

MELD is a Python package for quantifying the effects of experimental perturbations. For an in depth explanation of the algorithm, read our manuscript on BioRxiv.

Quantifying the effect of experimental perturbations at single-cell resolution. Daniel B Burkhardt*, Jay S Stanley*, Alexander Tong, Ana Luisa Perdigoto, Scott A Gigante, Kevan C Herold, Guy Wolf, Antonio J Giraldez, David van Dijk, Smita Krishnaswamy. BioRxiv. doi:10.1101/532846.

The goal of MELD is to identify populations of cells that are most affected by an experimental perturbation. Rather than clustering the data first and calculating differential abundance of samples within clusters, MELD provides a density estimate for each scRNA-seq sample for every cell in each dataset. Comparing the ratio between the density of each sample provides a quantitative estimate the effect of a perturbation at the single-cell level. We can then identify the cells most or least affected by the perturbation.

Installation

pip install --user meld

Requirements

MELD requires Python >= 3.6. All other requirements are installed automatically by pip.

Usage example

   import numpy as np
   import meld

   # Create toy data
   n_samples = 500
   n_dimensions = 100
   data = np.random.normal(size=(n_samples, n_dimensions))
   sample_labels = np.random.choice(['treatment', 'control'], size=n_samples)

   # Estimate density of each sample over the graph
   sample_densities = meld.MELD().fit_transform(data, sample_labels)

   # Normalize densities to calculate sample likelihoods
   sample_likelihoods = meld.utils.normalize_densities(sample_densities)

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

meld-1.0.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

meld-1.0.0-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file meld-1.0.0.tar.gz.

File metadata

  • Download URL: meld-1.0.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for meld-1.0.0.tar.gz
Algorithm Hash digest
SHA256 44b18e87af9aefed60a9d436c6c04b3607301a44b8a273922cc6ec319c78a10a
MD5 82441d68a2ce1bad89059f73523158e6
BLAKE2b-256 8904493c4628db14fee1fa96a39ce816b88970f3742cae0f7c5f3f28015f7678

See more details on using hashes here.

File details

Details for the file meld-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: meld-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for meld-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af3037ced27a42ebbd03874743d0e406e448ed220537b2d4efa0ab61127ac5aa
MD5 b7f75b35fbe448006e7c622cee2c72bc
BLAKE2b-256 a4d4c3c9f3afa46247b2faaf14c76255e3fbaa30abe2e27ff05a5399d82dc37d

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