Skip to main content

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:

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


Download files

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

Source Distribution

copairs-0.5.3.tar.gz (38.3 kB view details)

Uploaded Source

Built Distribution

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

copairs-0.5.3-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

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

Hashes for copairs-0.5.3.tar.gz
Algorithm Hash digest
SHA256 992a81f6442d3c05469f1dda2c40a18d5acbfc9492a9bd535c80aa9af76fa875
MD5 cae8a1c89a97877d24c4d2a8c7a148e3
BLAKE2b-256 fea0ef4e6d60f59fb9bfbd0eef17ecb07788986f263ffa04abf680b7a73f0bd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for copairs-0.5.3.tar.gz:

Publisher: release.yml on cytomining/copairs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for copairs-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 06709b95e689f66084cedfc83f1d1e07bde6bedc31d6977fb45ea9c87c2947c2
MD5 156079b3d945fe4c32d292011dca3d45
BLAKE2b-256 efe35ae9c7fc3b7ec3e17fde6d56aa07714abd55911bbfe6f5fdaa951b216776

See more details on using hashes here.

Provenance

The following attestation bundles were made for copairs-0.5.3-py3-none-any.whl:

Publisher: release.yml on cytomining/copairs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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