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.8+ 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.2.tar.gz (33.6 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.2-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: copairs-0.5.2.tar.gz
  • Upload date:
  • Size: 33.6 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.2.tar.gz
Algorithm Hash digest
SHA256 09ef518d3566e9252f71e91db79bfec0e6fba3c0c57a354d71fb783ae091ac48
MD5 453fd365b2065d2e53252363ec28b626
BLAKE2b-256 a89caad573ffd28083ee39414085b23607c6648febe27591a7d6b3385d7c3500

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: copairs-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 29.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 56f37fc04c558d518a27102fe2d23d7bd99cba51fc0454e691482fe8324ebc74
MD5 6ae348c31a1a12ce4676339ff36b7d3a
BLAKE2b-256 1c1f4a9f9260ec5f4212741bee51366fc79eceee54cc2c03cd50e2959fc13e74

See more details on using hashes here.

Provenance

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