Skip to main content

Meta-analysis of neuroimaging studies

Project description

Build Status codecov

Binder

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

Quick demo

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

neuroquery-1.0.2.tar.gz (48.7 kB view details)

Uploaded Source

Built Distribution

neuroquery-1.0.2-py3-none-any.whl (51.6 kB view details)

Uploaded Python 3

File details

Details for the file neuroquery-1.0.2.tar.gz.

File metadata

  • Download URL: neuroquery-1.0.2.tar.gz
  • Upload date:
  • Size: 48.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.10

File hashes

Hashes for neuroquery-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c13ce12087eeedc47086c0487be167d53d95d2350f4e64cf33d2ca11b35681f9
MD5 d7d998f59a17bf6e4e37584fd79337ec
BLAKE2b-256 6af6e3f5e7f1b06f0b3d911ab5e893a2b1fe8957a7a68767c7af30ded94321de

See more details on using hashes here.

File details

Details for the file neuroquery-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: neuroquery-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 51.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.10

File hashes

Hashes for neuroquery-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 319e01161a1ddead5dab60993f7ba90b5d5bcdfd6a83ea08af5ebdb25aac0fef
MD5 3ee35ac8d5986b0a8ca3069f4393a486
BLAKE2b-256 41c02e532845e3efe03286c894267508a0b3ee78ba6d551f36160af52a52cb58

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page