concordex


Nameconcordex JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/pachterlab/concordex
SummaryIdentification of spatial homogeneous regions with concordex
upload_time2024-09-30 17:48:03
maintainerKayla Jackson
docs_urlNone
authorKayla Jackson, A. Sina Booeshaghi, Angel Galvez-Merchan, Alexandra Kim
requires_python>=3.9
licenseMIT License Copyright (c) 2024 Pachter Lab Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords singlecell clustering spatial transcriptomics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # concordex 1.0.2

The goal of `concordex` is to identify spatial homogeneous regions (SHRs) as defined in the recent manuscript, [“Identification of spatial homogenous regions in tissues with concordex”](https://doi.org/10.1101/2023.06.28.546949). Briefly, SHRs are are domains that are homogeneous with respect to cell type composition. `concordex` relies on the the k-nearest-neighbor (kNN) graph to representing similarities between cells and uses common clustering algorithms to identify SHRs.

## Installation

`concordex` can be installed via pip
```bash
pip install git+https://github.com/pachterlab/concordex.git
```

## Usage

After installing, `concordex` can be run as follows: 
```
import scanpy as sc 
from concordex.tools import calculate_concordex

ad = sc.datasets.pbmc68k_reduced()

# Compute concordex with discrete labels
calculate_concordex(ad, 'louvain', n_neighbors=10)

# Neighborhood consolidation information is stored in `adata.obsm`
ad.obsm['nbc'][:3]

# The column names are stored in `adata.uns`
ad.uns['nbc_params']['nbc_colnames']
```

## Citation

If you’d like to use the `concordex` package in your research, please
cite our recent bioRxiv preprint

> Jackson, K.; Booeshaghi, A. S.; Gálvez-Merchán, Á.; Moses, L.; Chari,
> T.; Kim, A.; Pachter, L. Identification of spatial homogeneous regions in tissues 
> with concordex. bioRxiv (Cold Spring Harbor Laboratory) 2023. 
> <https://doi.org/10.1101/2023.06.28.546949>.

    @article {Jackson2023.06.28.546949, 
        author = {Jackson, Kayla C. and Booeshaghi, A. Sina and G{'a}lvez-Merch{'a}n, {'A}ngel and Moses, Lambda and Chari, Tara and Kim, Alexandra and Pachter, Lior}, 
        title = {Identification of spatial homogeneous regions in tissues with concordex}, 
        year = {2024}, 
        doi = {10.1101/2023.06.28.546949}, 
        publisher = {Cold Spring Harbor Laboratory}, 
        URL = {<https://www.biorxiv.org/content/early/2024/07/18/2023.06.28.546949>},
        journal = {bioRxiv} 
    }

## Maintainer

[Kayla Jackson](https://github.com/kayla-jackson)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pachterlab/concordex",
    "name": "concordex",
    "maintainer": "Kayla Jackson",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "Kayla Jackson <kaylajac@caltech.edu>",
    "keywords": "SingleCell, Clustering, Spatial, Transcriptomics",
    "author": "Kayla Jackson, A. Sina Booeshaghi, Angel Galvez-Merchan, Alexandra Kim",
    "author_email": "Kayla Jackson <kaylajac@caltech.edu>, \"A. Sina Booeshaghi\" <sinab@berkeley.edu>, Angel Galvez-Merchan <angelgalvez94@gmail.com>, Alexandra Kim <alexandrasuriya@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/4e/2b/2955c8cb775aec661fa586847b20fac2c74938785af721179ce1cd18570e/concordex-1.0.2.tar.gz",
    "platform": null,
    "description": "# concordex 1.0.2\n\nThe goal of `concordex` is to identify spatial homogeneous regions (SHRs) as defined in the recent manuscript, [\u201cIdentification of spatial homogenous regions in tissues with concordex\u201d](https://doi.org/10.1101/2023.06.28.546949). Briefly, SHRs are are domains that are homogeneous with respect to cell type composition. `concordex` relies on the the k-nearest-neighbor (kNN) graph to representing similarities between cells and uses common clustering algorithms to identify SHRs.\n\n## Installation\n\n`concordex` can be installed via pip\n```bash\npip install git+https://github.com/pachterlab/concordex.git\n```\n\n## Usage\n\nAfter installing, `concordex` can be run as follows: \n```\nimport scanpy as sc \nfrom concordex.tools import calculate_concordex\n\nad = sc.datasets.pbmc68k_reduced()\n\n# Compute concordex with discrete labels\ncalculate_concordex(ad, 'louvain', n_neighbors=10)\n\n# Neighborhood consolidation information is stored in `adata.obsm`\nad.obsm['nbc'][:3]\n\n# The column names are stored in `adata.uns`\nad.uns['nbc_params']['nbc_colnames']\n```\n\n## Citation\n\nIf you\u2019d like to use the `concordex` package in your research, please\ncite our recent bioRxiv preprint\n\n> Jackson, K.; Booeshaghi, A. S.; G\u00e1lvez-Merch\u00e1n, \u00c1.; Moses, L.; Chari,\n> T.; Kim, A.; Pachter, L. Identification of spatial homogeneous regions in tissues \n> with concordex. bioRxiv (Cold Spring Harbor Laboratory) 2023. \n> <https://doi.org/10.1101/2023.06.28.546949>.\n\n    @article {Jackson2023.06.28.546949, \n        author = {Jackson, Kayla C. and Booeshaghi, A. Sina and G{'a}lvez-Merch{'a}n, {'A}ngel and Moses, Lambda and Chari, Tara and Kim, Alexandra and Pachter, Lior}, \n        title = {Identification of spatial homogeneous regions in tissues with concordex}, \n        year = {2024}, \n        doi = {10.1101/2023.06.28.546949}, \n        publisher = {Cold Spring Harbor Laboratory}, \n        URL = {<https://www.biorxiv.org/content/early/2024/07/18/2023.06.28.546949>},\n        journal = {bioRxiv} \n    }\n\n## Maintainer\n\n[Kayla Jackson](https://github.com/kayla-jackson)\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Pachter Lab  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Identification of spatial homogeneous regions with concordex",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/pachterlab/concordex",
        "Repository": "https://github.com/pachterlab/concordex"
    },
    "split_keywords": [
        "singlecell",
        " clustering",
        " spatial",
        " transcriptomics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "172efb20a8438b2fbc05dc094599f144d45396b49956087b2619f71aeb3fc1f1",
                "md5": "5d90ad08cb1b6a1a1bfde7789a9377cf",
                "sha256": "e08f0cea991213423e7d59a80e5888a6f8bd8d2e1b58252934952b062ecddf87"
            },
            "downloads": -1,
            "filename": "concordex-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5d90ad08cb1b6a1a1bfde7789a9377cf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 9329,
            "upload_time": "2024-09-30T17:48:02",
            "upload_time_iso_8601": "2024-09-30T17:48:02.501994Z",
            "url": "https://files.pythonhosted.org/packages/17/2e/fb20a8438b2fbc05dc094599f144d45396b49956087b2619f71aeb3fc1f1/concordex-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4e2b2955c8cb775aec661fa586847b20fac2c74938785af721179ce1cd18570e",
                "md5": "723dbf93d635a67aaea50a1d93cc5d62",
                "sha256": "7b800bba39337e59341d7bfcbb66cd16d85e23009874f700e76f28db9eadc877"
            },
            "downloads": -1,
            "filename": "concordex-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "723dbf93d635a67aaea50a1d93cc5d62",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 9886,
            "upload_time": "2024-09-30T17:48:03",
            "upload_time_iso_8601": "2024-09-30T17:48:03.490276Z",
            "url": "https://files.pythonhosted.org/packages/4e/2b/2955c8cb775aec661fa586847b20fac2c74938785af721179ce1cd18570e/concordex-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-30 17:48:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pachterlab",
    "github_project": "concordex",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "concordex"
}
        
Elapsed time: 3.88182s