{ "info": { "author": "Niels Reuter", "author_email": "niels.reuter@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# CBPtools\n\n## Connectivity-Based Parcellation Tools\nRegional **connectivity-based parcellation** (CBP) is a procedure for regional mapping by long-range connectivity\nprofiles (Eickhoff et al., 2015), revealing brain organization within a region-of-interest (ROI).\n\nFor a complete overview of the software and a setup guide, visit \n[documentation](https://cbptools.readthedocs.io/en/latest/).\n\nThe procedure clusters ROI voxels/vertices based on similarity in their profile of connection strengths to a set of\ntarget voxels/vertices, referred to as a connectivity profile. The connectivity profile for each ROI voxel/vertex\nreflects that voxel/vertex's connectivity to a target space, for instance all gray matter voxels/vertices within the\nbrain for functional data. Voxels/vertices are clustered using the\n[k-means clustering](http://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html) algorithm, which\nis optimized such that within-group similarity of profiles is high and between-group similarity is low. The resulting\nclusters form units of homogeneity within an ROI delineated by differences in connectivity, with the units being\nspatially consistent due to neighboring voxels/vertices having more similar patterns in connectivity than those further\naway. This provides the CBP procedure with the ability to map distinct brain regions, useful for localizing\n(dys)function or outlining functional or structural subdivisions/clusters within a particular ROI. Group results are\ngenerated by applying a [hierarchical clustering](https://docs.scipy.org/doc/scipy/reference/cluster.hierarchy.html)\nalgorithm on the individual clustering results. Further processing options can configured by the user.\n\nThe type of connectivity depends crucially on the imaging modality, where connectivity means the patterns of anatomical\nlinks for structural data through diffusion-weighted imaging (DWI), and statistical dependencies for functional data.\nCBPtools currently supports two neuroimaging modalities: resting-state bloox-oxygen-level dependent (BOLD) time-series\ntypically used to measure task-independent functional connectivity, and probabilistic diffusion tractography to\nestimate anatomical fiber-connectivity.\n\n## Installation instructions\nIt is recommended to use a dedicated virtual environment (see\n[virtualenv documentation](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments)):\n\n python3 -m venv ~/.venv/cbptools\n source ~/.venv/cbptools/bin/activate\n\nCBPtools can be installed using pip by running the following terminal command:\n\n pip install cbptools\n\n\n## Usage example\nAfter installing CBPtools, an example configuration file can be obtained.\n\n cbptools example --get \n\nWhere is replaced by the data you intend to give as input, either rsfmri, dmri, or connectivity. A\nconfiguration file with default and placeholder settings will now appear in your current working directory. Edit this\nfile so that it correctly points to the input data and all parameters are set accordingly.\n\nA CBP project can now be created by specifying the location to the configuration file and the working directory in\nwhich the project will be created.\n\n cbptools create --config /path/to/config_file.yaml --workdir /path/to/workdir\n\nIf any errors appear project creation will fail, and an error log will appear inside of the working directory. If no\nerrors occur, the project will be created. Change directory to the project directory and execute the `Snakefile` using\nsnakemake, which is installed as a dependency of CBPtools.\n\n cd /path/to/workdir\n snakemake\n\nFor more customizability on snakemake (K\u00f6ster and Rahmann, 2012), visit the\n[snakemake documentation](https://snakemake.readthedocs.io/en/stable/).\n\n## Licensing\nThe copyright and all other rights related to the hereby provided products are held by Forschungszentrum J\u00fclich GmbH. \nThe use of the products is only permitted for own educational, scientific or private purposes. The source of the \nproducts must be quoted correctly. It is not allowed to revise or amend the provided products or extract only parts \nof it without the explicit permission of Forschungszentrum J\u00fclich GmbH. Likewise it is not allowed to grant \nsublicences to third partys.\n\n## Acknowledgements\nThis open source software code was developed in part or in whole in the Human Brain Project, funded from the European \nUnion\u2019s Horizon 2020 Framework Programme for Research and Innovation under the Specific Grant Agreement No. 785907 \n(Human Brain Project SGA2).\n\n## References\nEickhoff SB, Thirion B, Varoquaux G, Bzdok D (2015): Connectivity-based parcellation: Critique and implications.\nHum Brain Mapp 36:4771\u20134792.\n\nK\u00f6ster J, Rahmann S (2012): Snakemake--a scalable bioinformatics workflow engine. Bioinformatics 28:2520\u20132522.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/inm7/cbptools", "keywords": "", "license": "Apache", "maintainer": "", "maintainer_email": "", "name": "cbptools", "package_url": "https://pypi.org/project/cbptools/", "platform": "", "project_url": "https://pypi.org/project/cbptools/", "project_urls": { "Homepage": "https://github.com/inm7/cbptools" }, "release_url": "https://pypi.org/project/cbptools/1.0.0/", "requires_dist": [ "matplotlib (>=3.0.3)", "nibabel (>=2.5.0)", "numpy (>=1.17.0)", "pandas (>=0.25.0)", "pyyaml (>=5.1.1)", "scikit-learn (>=0.21.3)", "scipy (>=1.3.0)", "seaborn (>=0.9.0)", "snakemake (>=5.5.4)", "pypandoc ; extra == 'devel-docs'" ], "requires_python": ">=3.5.0", "summary": "Regional Connectivity-Based Parcellation tool for Python", "version": "1.0.0" }, "last_serial": 5793403, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "be45a6773457f563cb3100ed7c64ae3d", "sha256": "6a34763fbecf265b24e95d3288141de223fd0da1d2d25d7ca0bb7c735cede20b" }, "downloads": -1, "filename": "cbptools-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "be45a6773457f563cb3100ed7c64ae3d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.0", "size": 161438, "upload_time": "2019-09-06T18:18:29", "url": "https://files.pythonhosted.org/packages/52/b2/be029e1478743c94b8c0ec12cfcda46b9c9dbcab2dda1accf55355de1b9b/cbptools-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7a64639263074efc1f3e6f709641a670", "sha256": "78a01dc391f3a2d9fc9dd172cbaa426bdccd562b5d1c5cbf3aab833993800532" }, "downloads": -1, "filename": "cbptools-1.0.0.tar.gz", "has_sig": false, "md5_digest": "7a64639263074efc1f3e6f709641a670", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 110466, "upload_time": "2019-09-06T18:18:33", "url": "https://files.pythonhosted.org/packages/7c/e5/6a381a3ac038db3441ce40ca34a48d87982a0724bb93703a4ce11b428b36/cbptools-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "be45a6773457f563cb3100ed7c64ae3d", "sha256": "6a34763fbecf265b24e95d3288141de223fd0da1d2d25d7ca0bb7c735cede20b" }, "downloads": -1, "filename": "cbptools-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "be45a6773457f563cb3100ed7c64ae3d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.0", "size": 161438, "upload_time": "2019-09-06T18:18:29", "url": "https://files.pythonhosted.org/packages/52/b2/be029e1478743c94b8c0ec12cfcda46b9c9dbcab2dda1accf55355de1b9b/cbptools-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7a64639263074efc1f3e6f709641a670", "sha256": "78a01dc391f3a2d9fc9dd172cbaa426bdccd562b5d1c5cbf3aab833993800532" }, "downloads": -1, "filename": "cbptools-1.0.0.tar.gz", "has_sig": false, "md5_digest": "7a64639263074efc1f3e6f709641a670", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 110466, "upload_time": "2019-09-06T18:18:33", "url": "https://files.pythonhosted.org/packages/7c/e5/6a381a3ac038db3441ce40ca34a48d87982a0724bb93703a4ce11b428b36/cbptools-1.0.0.tar.gz" } ] }