copairs


Namecopairs JSON
Version 0.5.0 PyPI version JSON
download
home_pageNone
SummaryFind pairs and compute metrics between them
upload_time2025-02-21 17:09:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords pairwise replication
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
             # 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:
```bash
pip install copairs
```

To also install dependencies for running examples, run:
```bash
pip install copairs[demo]
```

### Testing

To run tests, run:
```bash
pip install -e .[test]
pytest
```

## Usage

We provide examples demonstrating how to use copairs for:
- [grouping profiles based on their metadata](./examples/finding_pairs.ipynb)
- [calculating mAP to assess phenotypic activity of perturbations](./examples/phenotypic_activity.ipynb)
- [calculating mAP to assess phenotypic consistency of perturbations](./examples/phenotypic_consistency.ipynb)
- [estimating null size for mAP p-value calculation](./examples/null_size.ipynb)

## Citation
If you find this work useful for your research, please cite our [pre-print](https://doi.org/10.1101/2024.04.01.587631):

Kalinin, A.A., Arevalo, J., Vulliard, L., Serrano, E., Tsang, H., Bornholdt, M., Rajwa, B., Carpenter, A.E., Way, G.P. and Singh, S., 2024. A versatile information retrieval framework for evaluating profile strength and similarity. bioRxiv, pp.2024-04. doi:10.1101/2024.04.01.587631

BibTeX:
```
@article{kalinin2024versatile,
  title={A versatile information retrieval framework for evaluating profile strength and similarity},
  author={Kalinin, Alexandr A and Arevalo, John and Vulliard, Loan and Serrano, Erik and Tsang, Hillary and Bornholdt, Michael and Rajwa, Bartek and Carpenter, Anne E and Way, Gregory P and Singh, Shantanu},
  journal={bioRxiv},
  pages={2024--04},
  year={2024},
  doi={10.1101/2024.04.01.587631}
}
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "copairs",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "pairwise, replication",
    "author": null,
    "author_email": "John Arevalo <johnarevalo@gmail.com>, Alexandr Kalinin <akalinin@broadinstitute.org>, \"Alan F. Munoz\" <amunozgo@broadinstitute.org>",
    "download_url": "https://files.pythonhosted.org/packages/96/2f/5983c803ab772d7eb29583e2dacb1f7d663ea98d1de02799f7e5071dc1c6/copairs-0.5.0.tar.gz",
    "platform": null,
    "description": " # copairs\n\n`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.\n\n## Getting started\n\n### System requirements\ncopairs supports Python 3.8+ and should work with all modern operating systems (tested with MacOS 13.5, Ubuntu 18.04, Windows 10).\n\n### Dependencies\ncopairs depends on widely used Python packages:\n* numpy\n* pandas\n* tqdm\n* statsmodels\n* [optional] plotly\n\n### Installation\n\nTo install copairs and dependencies, run:\n```bash\npip install copairs\n```\n\nTo also install dependencies for running examples, run:\n```bash\npip install copairs[demo]\n```\n\n### Testing\n\nTo run tests, run:\n```bash\npip install -e .[test]\npytest\n```\n\n## Usage\n\nWe provide examples demonstrating how to use copairs for:\n- [grouping profiles based on their metadata](./examples/finding_pairs.ipynb)\n- [calculating mAP to assess phenotypic activity of perturbations](./examples/phenotypic_activity.ipynb)\n- [calculating mAP to assess phenotypic consistency of perturbations](./examples/phenotypic_consistency.ipynb)\n- [estimating null size for mAP p-value calculation](./examples/null_size.ipynb)\n\n## Citation\nIf you find this work useful for your research, please cite our [pre-print](https://doi.org/10.1101/2024.04.01.587631):\n\nKalinin, A.A., Arevalo, J., Vulliard, L., Serrano, E., Tsang, H., Bornholdt, M., Rajwa, B., Carpenter, A.E., Way, G.P. and Singh, S., 2024. A versatile information retrieval framework for evaluating profile strength and similarity. bioRxiv, pp.2024-04. doi:10.1101/2024.04.01.587631\n\nBibTeX:\n```\n@article{kalinin2024versatile,\n  title={A versatile information retrieval framework for evaluating profile strength and similarity},\n  author={Kalinin, Alexandr A and Arevalo, John and Vulliard, Loan and Serrano, Erik and Tsang, Hillary and Bornholdt, Michael and Rajwa, Bartek and Carpenter, Anne E and Way, Gregory P and Singh, Shantanu},\n  journal={bioRxiv},\n  pages={2024--04},\n  year={2024},\n  doi={10.1101/2024.04.01.587631}\n}\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Find pairs and compute metrics between them",
    "version": "0.5.0",
    "project_urls": {
        "Bug Reports": "https://github.com/cytomining/copairs/issues",
        "Homepage": "https://github.com/cytomining/copairs",
        "Source": "https://github.com/cytomining/copairs/"
    },
    "split_keywords": [
        "pairwise",
        " replication"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f21beec412f74e5d040544283fbe15f6ebb39bc6cc9562f38dd36720cae1f7a6",
                "md5": "22d6f35eac90220c3dd6f88d8d58ef4d",
                "sha256": "24e50f73cf7f4184ea1da770cb41555f2ae6faf8305ee9e19525374e0176a3fb"
            },
            "downloads": -1,
            "filename": "copairs-0.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "22d6f35eac90220c3dd6f88d8d58ef4d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 27536,
            "upload_time": "2025-02-21T17:09:52",
            "upload_time_iso_8601": "2025-02-21T17:09:52.564085Z",
            "url": "https://files.pythonhosted.org/packages/f2/1b/eec412f74e5d040544283fbe15f6ebb39bc6cc9562f38dd36720cae1f7a6/copairs-0.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "962f5983c803ab772d7eb29583e2dacb1f7d663ea98d1de02799f7e5071dc1c6",
                "md5": "64632fa910f4a76f7a99993fd9cb6ffe",
                "sha256": "3eee29967e620189fd77e72c5a0281fd322ceb30c661d9dd5f417a058061760e"
            },
            "downloads": -1,
            "filename": "copairs-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "64632fa910f4a76f7a99993fd9cb6ffe",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 30869,
            "upload_time": "2025-02-21T17:09:53",
            "upload_time_iso_8601": "2025-02-21T17:09:53.929522Z",
            "url": "https://files.pythonhosted.org/packages/96/2f/5983c803ab772d7eb29583e2dacb1f7d663ea98d1de02799f7e5071dc1c6/copairs-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-21 17:09:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cytomining",
    "github_project": "copairs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "copairs"
}
        
Elapsed time: 1.99275s