Find pairs and compute metrics between them
Project description
copairs
copairs is a Python package for finding groups of profiles based on metadata and calculate mean Average Precision to assess intra- vs inter-group similarities.
Getting started
System requirements
copairs supports Python 3.9-3.12 and should work with all modern operating systems (tested with MacOS 13.5, Ubuntu 18.04, Windows 10).
Dependencies
copairs depends on widely used Python packages:
- numpy
- pandas
- tqdm
- statsmodels
- [optional] plotly
Installation
To install copairs and dependencies, run:
pip install copairs
To also install dependencies for running examples, run:
pip install copairs[demo]
Testing
To run tests, run:
pip install -e .[test]
pytest
Usage
We provide examples demonstrating how to use copairs for:
- grouping profiles based on their metadata
- calculating mAP to assess phenotypic activity of perturbations
- calculating mAP to assess phenotypic consistency of perturbations
- estimating null size for mAP p-value calculation
Citation
If you find this work useful for your research, please cite our paper:
Kalinin, A.A., Arevalo, J., Serrano, E., Vulliard, L., Tsang, H., Bornholdt, M., Muñoz, A.F., Sivagurunathan, S., Rajwa, B., Carpenter, A.E., Way, G.P. and Singh, S., 2025. A versatile information retrieval framework for evaluating profile strength and similarity. Nature Communications 16, 5181. doi:10.1038/s41467-025-60306-2
BibTeX:
@article{kalinin2025versatile,
author = {Kalinin, Alexandr A. and Arevalo, John and Serrano, Erik and Vulliard, Loan and Tsang, Hillary and Bornholdt, Michael and Muñoz, Alán F. and Sivagurunathan, Suganya and Rajwa, Bartek and Carpenter, Anne E. and Way, Gregory P. and Singh, Shantanu},
title = {A versatile information retrieval framework for evaluating profile strength and similarity},
journal = {Nature Communications},
year = {2025},
volume = {16},
number = {1},
pages = {5181},
doi = {10.1038/s41467-025-60306-2},
url = {https://doi.org/10.1038/s41467-025-60306-2},
issn = {2041-1723}
}
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 copairs-0.5.3.tar.gz.
File metadata
- Download URL: copairs-0.5.3.tar.gz
- Upload date:
- Size: 38.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
992a81f6442d3c05469f1dda2c40a18d5acbfc9492a9bd535c80aa9af76fa875
|
|
| MD5 |
cae8a1c89a97877d24c4d2a8c7a148e3
|
|
| BLAKE2b-256 |
fea0ef4e6d60f59fb9bfbd0eef17ecb07788986f263ffa04abf680b7a73f0bd4
|
Provenance
The following attestation bundles were made for copairs-0.5.3.tar.gz:
Publisher:
release.yml on cytomining/copairs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
copairs-0.5.3.tar.gz -
Subject digest:
992a81f6442d3c05469f1dda2c40a18d5acbfc9492a9bd535c80aa9af76fa875 - Sigstore transparency entry: 813305710
- Sigstore integration time:
-
Permalink:
cytomining/copairs@b9e7fda30db3151c7e4f8ec6264d7b95f5579ce4 -
Branch / Tag:
refs/tags/v0.5.3 - Owner: https://github.com/cytomining
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b9e7fda30db3151c7e4f8ec6264d7b95f5579ce4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file copairs-0.5.3-py3-none-any.whl.
File metadata
- Download URL: copairs-0.5.3-py3-none-any.whl
- Upload date:
- Size: 31.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06709b95e689f66084cedfc83f1d1e07bde6bedc31d6977fb45ea9c87c2947c2
|
|
| MD5 |
156079b3d945fe4c32d292011dca3d45
|
|
| BLAKE2b-256 |
efe35ae9c7fc3b7ec3e17fde6d56aa07714abd55911bbfe6f5fdaa951b216776
|
Provenance
The following attestation bundles were made for copairs-0.5.3-py3-none-any.whl:
Publisher:
release.yml on cytomining/copairs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
copairs-0.5.3-py3-none-any.whl -
Subject digest:
06709b95e689f66084cedfc83f1d1e07bde6bedc31d6977fb45ea9c87c2947c2 - Sigstore transparency entry: 813305711
- Sigstore integration time:
-
Permalink:
cytomining/copairs@b9e7fda30db3151c7e4f8ec6264d7b95f5579ce4 -
Branch / Tag:
refs/tags/v0.5.3 - Owner: https://github.com/cytomining
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b9e7fda30db3151c7e4f8ec6264d7b95f5579ce4 -
Trigger Event:
release
-
Statement type: