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, nltk, lxml, and requests.

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

Uploaded Source

Built Distribution

neuroquery-1.0.0-py3-none-any.whl (50.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neuroquery-1.0.0.tar.gz
  • Upload date:
  • Size: 47.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for neuroquery-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6edb3f6865e5269c1f8fc270a536470303ceacdaeffa0064a506d577b2a400f7
MD5 77d028df7c690b8761c19beed5d3dfc3
BLAKE2b-256 e0db5f44586be3cc9830f47e4e0b32f6e663c29bec04bf4dc5423bd33a28eff3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neuroquery-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 50.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for neuroquery-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58c1473141d6c96b92ae80704616aeff0e635a3809c872d1535f0c92ef420475
MD5 085f349e102a3520a3aeba889282addf
BLAKE2b-256 6e27199f72694bc8f1464b0fa37d65c1611846fcae9af843aa967ece313b1e87

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