neuroquery


Nameneuroquery JSON
Version 1.0.4 PyPI version JSON
download
home_pagehttps://github.com/neuroquery/neuroquery
SummaryMeta-analysis of neuroimaging studies.
upload_time2023-07-04 13:47:42
maintainerJérôme Dockès
docs_urlNone
authorJérôme Dockès
requires_python>=3.7
licenseBSD 3-Clause License
keywords neuroimaging meta-analysis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![build](https://github.com/neuroquery/neuroquery/actions/workflows/testing.yml/badge.svg)](https://github.com/neuroquery/neuroquery/actions/workflows/testing.yml)[![codecov](https://codecov.io/gh/neuroquery/neuroquery/branch/main/graph/badge.svg)](https://codecov.io/gh/neuroquery/neuroquery)

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/neuroquery/neuroquery.git/main?filepath=examples)

# NeuroQuery

NeuroQuery is a tool and a statistical model for meta-analysis of the functional
neuroimaging literature.

Given a text query, it can produce a brain map of the most relevant anatomical
structures according to the current scientific literature.

It can be used through a web interface: https://neuroquery.org

Technical details and extensive validation are provided in [this paper](https://elifesciences.org/articles/53385).

This Python package permits using NeuroQuery offline or integrating it in other
applications. 

## Getting started

[Quick demo](https://nbviewer.jupyter.org/github/neuroquery/neuroquery/blob/main/examples/minimal_example.ipynb)

### Dependencies

NeuroQuery requires Python 3, numpy, scipy, scikit-learn, nilearn, pandas,
regex, lxml, and requests.

nltk is an optional dependency needed only if you use stemming or lemmatization
for tokenization of input text.

python-Levenshtein is an optional dependency used only in some parts of
tokenization. If you use the vocabulary lists provided with `neuroquery` or in
`neuroquery_data` it is not needed.

### Installation

`neuroquery` can be installed with

```
pip install neuroquery
```

### Usage

In the `examples` folder, 
[`minimal_example.ipynb`](https://nbviewer.jupyter.org/github/neuroquery/neuroquery/blob/main/examples/minimal_example.ipynb)
shows basic usage of `neuroquery`.

`neuroquery` has a function to download a trained model so that users can get
started right away:

```python
from neuroquery import fetch_neuroquery_model, NeuroQueryModel
from nilearn.plotting import view_img

encoder = NeuroQueryModel.from_data_dir(fetch_neuroquery_model())
# encoder returns a dictionary containing a brain map and more,
# see examples or documentation for details
view_img(
    encoder("Parkinson's disease")["brain_map"], threshold=3.).open_in_browser()
```

`neuroquery` also provides classes to train new models from scientific
publications' text and stereotactic peak activation coordinates (see
[`training_neuroquery.ipynb`](https://nbviewer.jupyter.org/github/neuroquery/neuroquery/blob/main/examples/training_neuroquery.ipynb)
in the examples).


BSD 3-Clause License

Copyright (c) 2023, Jérôme Dockès
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
   contributors may be used to endorse or promote products derived from
   this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/neuroquery/neuroquery",
    "name": "neuroquery",
    "maintainer": "J\u00e9r\u00f4me Dock\u00e8s",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "jerome@dockes.org",
    "keywords": "neuroimaging,meta-analysis",
    "author": "J\u00e9r\u00f4me Dock\u00e8s",
    "author_email": "jerome@dockes.org",
    "download_url": "https://files.pythonhosted.org/packages/3e/cd/35c4684d00a5728f90a8723e638169d62e8dd7c713ea7f97ffbd63f94929/neuroquery-1.0.4.tar.gz",
    "platform": null,
    "description": "[![build](https://github.com/neuroquery/neuroquery/actions/workflows/testing.yml/badge.svg)](https://github.com/neuroquery/neuroquery/actions/workflows/testing.yml)[![codecov](https://codecov.io/gh/neuroquery/neuroquery/branch/main/graph/badge.svg)](https://codecov.io/gh/neuroquery/neuroquery)\n\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/neuroquery/neuroquery.git/main?filepath=examples)\n\n# NeuroQuery\n\nNeuroQuery is a tool and a statistical model for meta-analysis of the functional\nneuroimaging literature.\n\nGiven a text query, it can produce a brain map of the most relevant anatomical\nstructures according to the current scientific literature.\n\nIt can be used through a web interface: https://neuroquery.org\n\nTechnical details and extensive validation are provided in [this paper](https://elifesciences.org/articles/53385).\n\nThis Python package permits using NeuroQuery offline or integrating it in other\napplications. \n\n## Getting started\n\n[Quick demo](https://nbviewer.jupyter.org/github/neuroquery/neuroquery/blob/main/examples/minimal_example.ipynb)\n\n### Dependencies\n\nNeuroQuery requires Python 3, numpy, scipy, scikit-learn, nilearn, pandas,\nregex, lxml, and requests.\n\nnltk is an optional dependency needed only if you use stemming or lemmatization\nfor tokenization of input text.\n\npython-Levenshtein is an optional dependency used only in some parts of\ntokenization. If you use the vocabulary lists provided with `neuroquery` or in\n`neuroquery_data` it is not needed.\n\n### Installation\n\n`neuroquery` can be installed with\n\n```\npip install neuroquery\n```\n\n### Usage\n\nIn the `examples` folder, \n[`minimal_example.ipynb`](https://nbviewer.jupyter.org/github/neuroquery/neuroquery/blob/main/examples/minimal_example.ipynb)\nshows basic usage of `neuroquery`.\n\n`neuroquery` has a function to download a trained model so that users can get\nstarted right away:\n\n```python\nfrom neuroquery import fetch_neuroquery_model, NeuroQueryModel\nfrom nilearn.plotting import view_img\n\nencoder = NeuroQueryModel.from_data_dir(fetch_neuroquery_model())\n# encoder returns a dictionary containing a brain map and more,\n# see examples or documentation for details\nview_img(\n    encoder(\"Parkinson's disease\")[\"brain_map\"], threshold=3.).open_in_browser()\n```\n\n`neuroquery` also provides classes to train new models from scientific\npublications' text and stereotactic peak activation coordinates (see\n[`training_neuroquery.ipynb`](https://nbviewer.jupyter.org/github/neuroquery/neuroquery/blob/main/examples/training_neuroquery.ipynb)\nin the examples).\n\n\nBSD 3-Clause License\n\nCopyright (c) 2023, J\u00e9r\u00f4me Dock\u00e8s\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its\n   contributors may be used to endorse or promote products derived from\n   this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License",
    "summary": "Meta-analysis of neuroimaging studies.",
    "version": "1.0.4",
    "project_urls": {
        "Homepage": "https://github.com/neuroquery/neuroquery"
    },
    "split_keywords": [
        "neuroimaging",
        "meta-analysis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f20c77084cb0c6842fd98b45e55cb8de7f3556e51529c43e9738a8c1a55e841a",
                "md5": "2bdb33cfdf0e15e5c78754cce40db5f7",
                "sha256": "cd5ef5c8a4d64271225717515c9a3f5be38a21cb3173a0e01282250cba09259a"
            },
            "downloads": -1,
            "filename": "neuroquery-1.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2bdb33cfdf0e15e5c78754cce40db5f7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 22056,
            "upload_time": "2023-07-04T13:47:40",
            "upload_time_iso_8601": "2023-07-04T13:47:40.693721Z",
            "url": "https://files.pythonhosted.org/packages/f2/0c/77084cb0c6842fd98b45e55cb8de7f3556e51529c43e9738a8c1a55e841a/neuroquery-1.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3ecd35c4684d00a5728f90a8723e638169d62e8dd7c713ea7f97ffbd63f94929",
                "md5": "ce1d5a3fdd2625667c3b86ad4f9206a3",
                "sha256": "6c2814d3d51002da57ac135e2b6ad3a7ed4df3e689ab5d05059577a232c71a54"
            },
            "downloads": -1,
            "filename": "neuroquery-1.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "ce1d5a3fdd2625667c3b86ad4f9206a3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 27689,
            "upload_time": "2023-07-04T13:47:42",
            "upload_time_iso_8601": "2023-07-04T13:47:42.588141Z",
            "url": "https://files.pythonhosted.org/packages/3e/cd/35c4684d00a5728f90a8723e638169d62e8dd7c713ea7f97ffbd63f94929/neuroquery-1.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-04 13:47:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "neuroquery",
    "github_project": "neuroquery",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "neuroquery"
}
        
Elapsed time: 0.09195s