MELD
Quantifying the effect of experimental perturbations at single-cell resolution
Tutorials
For a quick-start tutorial of MELD in Google CoLab, check out this notebook from our Machine Learning Workshop:
If you're looking for an in-depth tutorial of MELD and VFC, start here:
If you'd like to see how to use MELD without VFC, start here:
Introduction
MELD is a Python package for quantifying the effects of experimental perturbations. For an in depth explanation of the algorithm, please read the associated article:
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.
You can also watch a seminar explaining MELD given by @dburkhardt:
Installation
pip install 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)
Metadata
Release files for meld 1.0.2
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 | Actions |
|---|---|---|---|---|
| meld-1.0.2.tar.gz | 29.1 kB | Without provenance | Details for meld-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| meld-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for meld-1.0.2-py3-none-any.whl |
Total release size: 55.6 kB
Release files / meld-1.0.2.tar.gz
| Download URL | meld-1.0.2.tar.gz |
|---|---|
| Size | 29.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
696f67d4e88fc51f07463dcf96d3195734d1e3464c55ee95ebed2cf1c38134e9
|
|
BLAKE2b-256 checksum How to use checksums |
64347a43890031d05b2d3ed269ea6fa256016a8675f2420255caf22bf33bff98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / meld-1.0.2-py3-none-any.whl
| Download URL | meld-1.0.2-py3-none-any.whl |
|---|---|
| Size | 26.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
251c469fc041b7daa3abec22b69fbfeafc7cebb10b4338cdf87450be5ad85fd4
|
|
BLAKE2b-256 checksum How to use checksums |
0a96bc37de0bf197ce026ebba72bf7267f5a7124cc79a276781cdb6220d349f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for meld 1.0.2
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.