Meta-analysis of neuroimaging studies.
Project description
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.
This Python package permits using NeuroQuery offline or integrating it in other applications.
Getting started
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
shows basic usage of neuroquery.
neuroquery has a function to download a trained model so that users can get
started right away:
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
in the examples).
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neuroquery-1.1.0.tar.gz.
File metadata
- Download URL: neuroquery-1.1.0.tar.gz
- Upload date:
- Size: 90.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
784aa324e43b27bd4cfa534199ee6268ca61035558cbafa9e7b9d7d37bdb0608
|
|
| MD5 |
11b00b1bcdf2d859e06062810db26421
|
|
| BLAKE2b-256 |
e4a8926394376663eb01fae9c65f5a92074f7dd8ef63b936f46747d273d38924
|
File details
Details for the file neuroquery-1.1.0-py3-none-any.whl.
File metadata
- Download URL: neuroquery-1.1.0-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68cb76c30877713d380f3a7a8504db4bfa19840b0c8b5a9b8b3bd0720808e875
|
|
| MD5 |
27940c1e0624bcab170270ea4ba8f0e6
|
|
| BLAKE2b-256 |
d4a6f6f93632cf22d041903033e2f3f2ab108ff887b8b9fb70eca0fef929f0c6
|