# voxalign: automated MR spectroscopy voxel placement

We have developed a python package "[voxalign](/bnc-user-manual/standalone-tools/voxalign-automated-mr-spectroscopy-voxel-placement/installation.md)" that takes much of the guesswork out of MR spectroscopy voxel placement.

* One of voxalign's core functions is to ensure reproducible voxel placements across multiple scan sessions within the same participant. To do this, voxalign takes in the spectroscopy DICOM(s) and a T1 anatomical scan from a first MR session, and a T1 from an in-progress MR session, and provides the prescription to enter on the console to match the exact voxel position and orientation from the first session. Learn how to use voxalign for longitudinal studies like this [in our documentation on multi-session alignment](/bnc-user-manual/standalone-tools/voxalign-automated-mr-spectroscopy-voxel-placement/multi-session-alignment.md).

<figure><img src="/files/sIQI5mQksImHAQ44r2PA" alt="Overlaid onto an anatomical MRI scan are the two spectroscopy voxels (session 1 and session 2). Session 2 was aligned to session 1 using voxalign, and this image shows how accurate the overlay is."><figcaption><p>Scan session 1 voxel outline (dark blue) overlaid on the scan session 2 voxel</p></figcaption></figure>

* Voxalign can also tell you where to position the center of your voxel if you instead have a set of MNI coordinates to target. This is useful in helping to standardize voxel placement across participants, and for choosing voxel placements in the first session of a longitudinal study. Learn how to determine your voxel position based on MNI coordinates [in our section on centering on MNI coordinates](/bnc-user-manual/standalone-tools/voxalign-automated-mr-spectroscopy-voxel-placement/center-on-mni-coordinate.md).

<figure><img src="/files/H3P0KIuXctCnD72BMGM8" alt="A red cross overlaid onto an anatomical scan shows where the center of the ROI is, using MNI coordinates."><figcaption><p>MRS voxel center position corresponding to an MNI coordinate of [-8, 38, 31]</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ccv.brown.edu/bnc-user-manual/standalone-tools/voxalign-automated-mr-spectroscopy-voxel-placement.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
