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.1.tar.gz (48.0 kB view details)

Uploaded Source

Built Distribution

neuroquery-1.0.1-py3-none-any.whl (50.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neuroquery-1.0.1.tar.gz
  • Upload date:
  • Size: 48.0 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.1.tar.gz
Algorithm Hash digest
SHA256 9505866afb074f57fc00b50a5d432ee5f888a5c291a8b8c26ca5b8fbf4146bce
MD5 f130ccd7075a7b14bc24e0bc2e9ca85b
BLAKE2b-256 679da637b0d64b7cba68e2753e600975f3b08ad3b2552c66a9dba6c73f184e2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neuroquery-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 50.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 08c5579b487aeae7bd44caf6be62af0644c489f096fc0ff411c33a89247cab5a
MD5 41beb9b6c9ed4a7f653fceabd38aa82e
BLAKE2b-256 0f12e7ec63e036da666bea50ba5daf425dec78b8c30bfef00531029d6362db91

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