Skip to main content

Find region name for a given MNI coordinate in a selected atlas

Project description

Coord2Region

Codecov Tests Documentation Status Preprint License: BSD-3-Clause

Coord2Region maps 3D brain coordinates to anatomical regions, retrieves related studies, and uses large language models to summarize findings or generate images.

Features

  • Automatic anatomical labeling across multiple atlases
  • LLM-powered summaries of nearby literature
  • Coordinate-to-study lookups via Neurosynth, NeuroQuery, etc.
  • AI-generated region images
  • Command-line and Python interfaces

Installation

Requires Python 3.10 or later. We recommend installing in a virtual environment:

python -m venv .venv
source .venv/bin/activate
pip install coord2region

To work on Coord2Region itself, install the optional dependencies:

pip install '.[dev]'    # linting and tests
pip install '.[docs]'   # documentation build

On shells like zsh, keep the extras spec in quotes to avoid glob expansion errors.

Set environment variables like OPENAI_API_KEY or GEMINI_API_KEY to enable LLM-based features.

Example

coord2region coords-to-atlas 30 -22 50 --atlas harvard-oxford

Other use cases:

  • coord2region coords-to-summary 30 -22 50 → text summary from related studies
  • coord2region coords-to-image 30 -22 50 → AI-generated region image

Full usage instructions and API details are available in the documentation.

Links

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

coord2region-0.1.1.tar.gz (601.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coord2region-0.1.1-py3-none-any.whl (52.4 kB view details)

Uploaded Python 3

File details

Details for the file coord2region-0.1.1.tar.gz.

File metadata

  • Download URL: coord2region-0.1.1.tar.gz
  • Upload date:
  • Size: 601.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for coord2region-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2ef552a136165916ec919a7b7941b94273df0844681023a094bdd88e4c78a16b
MD5 000c169b95d7f6e0628030c17c02a1a3
BLAKE2b-256 5872c0b419452166997f7d5a6d718b2671a4bcb26dbdaacf1751a34313f5d629

See more details on using hashes here.

File details

Details for the file coord2region-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: coord2region-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 52.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for coord2region-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85f03a269a23d74b5702ac2ea7c94a85ea8235f028800d332d6b152586b1704e
MD5 af71380e9fcf0d21eddf2b8148bc76a4
BLAKE2b-256 a3d364c267f008e0bc8c999bc91ade331fb1bac64aaa6d139fdd1d60b81b3219

See more details on using hashes here.

Supported by

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