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.4.tar.gz (41.9 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.4-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

Details for the file copairs-0.5.4.tar.gz.

File metadata

  • Download URL: copairs-0.5.4.tar.gz
  • Upload date:
  • Size: 41.9 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.4.tar.gz
Algorithm Hash digest
SHA256 4d821784fa42d388db66e6a90c4ca1849c79957059260655faa884ffe6559648
MD5 d3ef50aa8bc89e8a34c1789cf4b06d86
BLAKE2b-256 65257e2b2327ce9b3a7312be41070f264a09761fccb146cf60206d27c50e24b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for copairs-0.5.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: copairs-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 34.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e24e41ffdcfabf8d76b4288423f8951ea9c69884d5c4e88f8d9d33ff1ee32bbf
MD5 7cc3d76e63f7db19c3bc1bc9401e344b
BLAKE2b-256 b72a86a6255d7e892419833ba5951f7574d02c9c83648cd939bb5a921e386858

See more details on using hashes here.

Provenance

The following attestation bundles were made for copairs-0.5.4-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