Skip to content

Commit 00fc0bc

Browse files
committed
Merge pull request #327 from matthew-brett/brainvoyager-docs
MRG: start of document on BrainVoyager formats Documentation only, discussed with Thomas Emmerling by phone.
2 parents eff2dea + 0549c6e commit 00fc0bc

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

doc/source/devel/bv_formats.rst

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
#########################
2+
BrainVoyager file formats
3+
#########################
4+
5+
With notes on nibabel support.
6+
7+
PR for some BrainVoyager support at https://github.com/nipy/nibabel/pull/216.
8+
9+
********
10+
Overview
11+
********
12+
13+
See :
14+
* All files are little-endian byte order regardless of byte-order on the
15+
machine writing the data;
16+
* BV apparently provides a "BVQXtools" library for reading writing BV files in
17+
MATLAB;
18+
19+
.. _bv-internal-axes:
20+
21+
***********************
22+
BV internal format axes
23+
***********************
24+
25+
BV files have a internal format that has axes named `X`, `Y` and `Z`. Quoting
26+
from the `VMR format definition`_::
27+
28+
BV X front -> back = Y in Tal space
29+
BV Y top -> bottom = Z in Tal space
30+
BV Z left -> right = X in Tal space
31+
32+
Put another way |--| the correspondence of BV XYZ to Talairach axes is:
33+
34+
* BV X corresponds to Anterior to Posterior;
35+
* BV Y corresponds to Superior to Inferior;
36+
* BV Z corresponds to Left to Right.
37+
38+
or:
39+
40+
* BV X -> Talairach -Y;
41+
* BV Y -> Talairach -Z;
42+
* BV Z -> Talairach X;
43+
44+
Nice!
45+
46+
*****************
47+
Types of BV files
48+
*****************
49+
50+
There appear to be 38 BV file types at the time of writing of which 18 appear
51+
to have a page of description on the `BV file format index page`_.
52+
53+
Here are some examples of BV formats:
54+
55+
* FMR |--| "FMR project files are simple text files containing the information
56+
defining a functional project created from raw MRI data". This text file
57+
contains meta-data about the functional time course data, stored in one or
58+
more STC files. See the `FMR format definition`_.
59+
* STC |--| "A STC file (STC = "slice time course") contains the functional
60+
data (time series) of a FMR project." The time-course data of a 4D
61+
("single-slice") format STC file are stored on disk in
62+
fastest-to-slowest-changing order: columns, rows, time, slice. STC files
63+
can also contain the data for one single slice ("multi-slice format"), in
64+
which case the data are in fast-to-slow order: columns, rows, time. This is
65+
a raw data file where the relevant meta-data such as image size come from an
66+
associated FMR format file. See `STC format definition`_;
67+
* VTC |--| "A VTC file contains the functional data (time series) of one
68+
experimental run (one functional scan) in the space of a 3D anatomical data
69+
set (VMR), e.g. in Talairach space.". See `VTC format definition`_;
70+
This is a different format to the STC (raw data in native-space) format.
71+
The file is a header followed by ints or floats in
72+
fastest-to-slowest-changing order of: time; BV X; BV Y; BV Z; where BV X, BV
73+
Y, BV Z refer to the :ref:`bv-internal-axes`, and therefore Talairach -Y,
74+
-Z, X.
75+
* NR-VMP |--| "A native resolution volume map (NR-VMP) file contains
76+
statistical results in 3D format.". See `NR-VMP format definition`_
77+
* AR-VMP |--| "An anatomical-resolution VMP (volume map) file contains
78+
statistical results in 3D format." at anatomical scan resolution. See `AR-VMP format definition`_;
79+
* VMR |--| 'high-resolution anatomical MR' - see `VMR format definition`_.
80+
* MSK |--| mask file. Only documentation appears to be
81+
http://www.brainvoyager.com/ubb/Forum8/HTML/000087.html
82+
* SMP |--| 'surface map'. See `SMP format definition`_. Contains one or more
83+
"maps", where a map is a ``NrOfVertices`` (number of vertices) length vector
84+
of float64 values.
85+
86+
.. _BV file format index page: http://support.brainvoyager.com/automation-aamp-development/23-file-formats.html
87+
.. _AR-VMP format definition: http://support.brainvoyager.com/automation-aamp-development/23-file-formats/376-users-guide-23-the-format-of-ar-vmp-files.html
88+
.. _NR-VMP format definition: http://support.brainvoyager.com/automation-aamp-development/23-file-formats/377-users-guide-23-the-format-of-nr-vmp-files.html
89+
.. _VTC format definition: http://support.brainvoyager.com/automation-aamp-development/23-file-formats/379-users-guide-23-the-format-of-vtc-files.html.
90+
.. _BV file format overview: http://support.brainvoyager.com/automation-aamp-development/23-file-formats/382-developer-guide-26-file-formats-overview.html
91+
.. _STC format definition: http://support.brainvoyager.com/automation-aamp-development/23-file-formats/384-developer-guide-26-the-format-of-stc-files.html
92+
.. _vmr format definition: http://support.brainvoyager.com/automation-aamp-development/23-file-formats/385-developer-guide-26-the-format-of-vmr-files.html
93+
.. _SMP format definition: : http://support.brainvoyager.com/automation-aamp-development/23-file-formats/476-the-format-of-smp-files.html.
94+
95+
.. include:: ../links_names.txt

0 commit comments

Comments
 (0)