BrainVoyager 25.0 Release Notes

BrainVoyager 25.0

This major release stores all functional data as VTC files and all diffusion-weighted data as VDW files - the FMR ad DMR formats are deprecated (see below).



 

New Features


 

User Guide Chat AssistantThe new chat assistant (toolbar icon or Help > User Guide Chat Assistant) answers questions about BrainVoyager in natural language. For each question it searches the User Guide for the most relevant sections (combining semantic and keyword search) and generates the answer from these sections; the User Guide pages used are listed under Sources and can be opened in the User Guide with a click. The search runs on the local computer. By default the answers are also generated locally, so nothing is sent to the internet: the built-in model, which is used by default, is downloaded once (2.7 GB) from the chat assistant's settings panel that opens when the chat assistant is used for the first time, and needs no further installation; models provided by Ollama or a llama.cpp server can be used as well. Optionally, cloud models from OpenAI, Anthropic or Google can be selected with your own API key, which is stored in the Keychain (macOS) or the Credential Manager (Windows); in this case the questions and the matching User Guide sections are sent to the selected provider. For more details, see topic 'User Guide Chat Assistant' in the User Guide.
FMR / DMR → VTC / VDW TransitionAll functional data are now stored as VTC files as default. Data in original (slice) space are stored as VTC in 'slice space' (<name>_SLICES.vtc), which is shown together with a hosting VMR of the same dimensions (usually the first functional volume). This unifies functional data handling and makes all VTC tools available for data in original space, including MVPA and RSA. The same change is also implemened for DMR files, which are opened as VDW files. The transition is controlled by the setting Open and create FMR/DMR data as VTC/VDW in the Settings dialog (Settings > Data). VTC files in slice space now store the acquisition information that was so far only available in FMR files: voxel size, timing, scanner position of slices, the history of spatial transformations and the first data source file. The information is carried over to VTCs derived from other VTCs (e.g. after preprocessing, GLM residuals, averaging) and is shown in the new Acquisition Info tab of the VTC Properties dialog. For more details, see topic From FMR and DMR to Slices-VTC and Slices-VDW Data in the General Information chapter of the User Guide.
Preprocessing of VTCs in Slice SpaceVTCs in slice space can be preprocessed with all FMR preprocessing steps - mean intensity adjustment, slice scan time correction (using the stored timing information), 3D motion correction and EPI distortion correction - in addition to spatial and temporal filtering. Also coregistration and creation of functional data in native or normalized space is supported now directly with slice-space VTC files as input. The Python and JavaScript scripting API has been adjusted and extended as well. Also the data analysis manager tool and its underlying Python API has been updated for functional preprocessing workflows. For further details, see topic From FMR and DMR to Slices-VTC and Slices-VDW Data in the General Information chapter of the User Guide..
Multi-Slice ViewThe new multi-slice view shows slices of a VMR or VTC in slice space in a configurable grid, including statistical maps (VMPs) and volumes of interests (VOIs). Regions can be selected with the mouse (Ctrl/Shift click, rectangle selection) to show their time courses as in the deprecated FMR multi-slice view. The multi-slice view is shown as default in a dock widget of the main window. The dock follows the active document and keeps a separate view per document, so that grid layout, slice increment, center offset and zoom settings are preserved when switching between documents. The dock can be moved to another side of the main window with the context menu of its title bar; calling the menu item again hides it. Holding the SHIFT key while calling the menu item opens the view in a separate window. Visibility of the multi-slice view is controlled by the option Automatically show multi-slice view in the Settings dialog (default: off). If turned on, the multi-slice view is shown automatically for each opened or created VMR document and VTC in slice space; if turned off, the view is only shown when requested with the menu items. The Active Document Actions panel contains a new Multi-Slice View button for VMR documents, which shows or hides the multi-slice VTC view if a VTC in slice space is linked and the multi-slice VMR view otherwise. The multi-slice content can be zoomed with the mouse wheel or two-finger scrolling and pinch zooming on trackpads and touch screens. The Multi-Slice View Options dialog (gear icon in the grid toolbar) sets the zoom anchor to the upper left corner, the center of the view or the mouse cursor (default), which allows zooming the view directly into a slice of the grid. A double-click returns to the fitted grid; a double-click in the fitted grid resets the zoom and shift within the slices. Volume maps in the multi-slice view are shown as in the VMR view: the color range option, the map transparency (including transparency scaled with significance) and lag maps are respected, and VOIs, including threshold contours, are drawn on top of the maps. If statistical maps are loaded, the grid toolbar contains two buttons to increase and decrease the threshold of the shown map. For more details, see topic 'The Multi-Slice View' in the 'Getting Started' chapter of the User Guide.
GLMsingle: Denoising and Ridge RegressionThe GLMsingle implementation now supports all four model types. The Type C model adds denoising to the single-trial model with the best HRF per voxel (Type B): noise regressors are derived from the time courses of voxels without stimulus-related signal (noise pool), and their number is selected by cross-validation. The Type D model adds fractional ridge regression, which stabilizes the betas of trials that overlap in time; the amount of shrinkage (fraction) is selected for each voxel by cross-validation. The results are the same as those of the original Python implementation GLMsingle, including fits for all model types, is also available via Python and JavaScript scripting. For details, see sub-chapter 'GLMsingle' in chapter 'Statistical Data Analysis' of the User Guide.
Direct Mapping of Meshes to Sphere and Flat MapA folded cortex mesh can now be mapped to a sphere in one step, and a cut mesh can be flattened in one step - without inflation, unfolding and distortion correction iterations. The direct mapping functions have been added to the 'Mesh Morphing' dialog and the new to-sphere mapping function also to the 'Cortex-Based Alignment' dialog. A sphere created with Direct Sphere Map and a flat map created with Direct Flat Map are saved with "_SPHERE" or "_FLAT" in its name. For (manually) mesh cutting prior to flattening, the inflation step is still useful. The direct mapping requires a topologically correct mesh as input. To assess and ensure this, a new 'mesh topology check and repair' tool has been added that calculates important topological measures such as the Euler number and also is able to correct issues, including small bridges that might not have been corrected by the standard bridge removel tool. The previous stepwise morphing procedures remain available, both in an unchanged and an enhanced version adding triangle area as an additional constraint for distortion correction, and routines checking fold-overs to avoid "mesh explosions". The new direct mapping tools and additional functionality is also available via the Python and JavaScript scripting API, including the functions map_geometry_to_sphere() and flatten_geometry(). For more details, see topic 'Direct Mapping of a Mesh to a Flat Map or Sphere' in the new 'Mesh Morphing' chapter of the User Guide.
Python Bundled with BrainVoyagerThis is the first release that bundles a prepared Python environment directly with BrainVoyager (in this release 3.12). The installer puts the bundled Python in a standard app support folder that you can see for your platform in the 'Select Python' dialog (before using Python). Making sure a valid Python environment is available enables all Python-dependent functionality of BrainVoyager out of the box without the need to first create a Python enivronment with the correct PySide6 and TensorFlow setup. For users, this ensures availability of BV Python scripting, DNN segmentation and other functionality right after installation. It is, however, still possible to use a custom Python environment. For details, see topic 'Installing and Enabling Python' in the 'General Information' chapter of the User Guide.


 

Enhancements


 

Mesh Topology Check and RepairA mesh can only be morphed to a sphere or flattened without fold-overs if it is topologically equivalent to a sphere. The new topology check reports the number of separate parts, border loops, non-manifold edges, pinch vertices (two sheets of the surface touching in a single vertex) and handles (e.g. caused by bridges in the segmentation) of a mesh, and whether it is a topological sphere (or, after cutting, a topological disc). The report is written to the Log pane when a mesh is morphed to a sphere and at the beginning of a direct sphere or flat mapping. The new Repair Topology button in the Mesh Morphing dialog shows the report and repairs most defects, including small handles (larger handles should be removed in the segmentation by using the bridge removal tool before the mesh is reconstructed. In Python, the check, the repair and the removal of handles are available as check_topology(), repair_topology() and remove_handles() of mesh objects. For moe details, see topic 'Mesh Topology Check and Repair' in the 'Mesh Morphing' chapter of the User Guide.
Automatic Cuts for FlatteningBefore a cortex hemisphere can be flattened, it need to be cut, typically by removing a large non-cortex region on its medial side plus additional cuts going from this hole outwards. The automatic cut of previous versions places these cuts with generic points in Talairach space, which only works for brains in (or close to) that space. The cut is now determined from the mesh itself, so that position, size and tilt of the brain do not matter. It hus not only works in MNI space but also in native space. The previous method remains available for compatibility. It is also still possible to define the calcarine cut manually, if one wants to follow along the V1 horizontal meridian as measured with a retinotopic (pRF) mapping experiment. Automatic cutting is now also available via scripting via the mesh object function auto_cut(folded_mesh="", cut_length="C", grow_hole_down=35.0, follow_calcarine_sulcus=True). For more details, see topic 'Automatic Mesh Cutting' in the 'Mesh Morphing' chapter of the User Guide.
Occipital Disc for Retinotopic MapsTo view retinotopic (e.g. pRF) maps, the sphere of a hemisphere can now be projected onto a disc centred on the occipital pole (inspired by the occipital pole map projection of 'neuropythy'). The occipital pole is found in the linked folded mesh, so that no standard space is needed; alternatively the center can be a selected vertex or a fixed direction on the sphere, which gives the same place on all spheres aligned with cortex-based alignment. The projection can be orthographic (as neuropythy), equal-area or equidistant, and its distortion can be minimized with the direct flat mapping. Surface maps of the hemisphere can be shown on the disc directly. The disc is shown from the front with low shininess and light intensity, so that the colours of the maps are seen well; the light intensity of the 3D viewer can now also be set in the Mesh Transparency and Shading Options panel. The disc is created with the new Occipital Disc button in the Retinotopy Tool field of the Surface Maps dialog or in the Mesh Morphing dialog, or in Python with the mesh object function project_sphere_to_occipital_disc(). For polar angle, eccentricity and pRF size maps, new overlay LUTs with the colours of neuropythy can be selected (angle_neuropythy_*.olt, eccentricity_neuropythy_*.olt, prfsize_neuropythy_10deg.olt). For more details, see topic 'Occipital Disc' in the 'Mesh Morphing' chapter of the User Guide.
Cortex-Based AlignmentThe non-linear alignment of curvature maps on the sphere has been improved and extended. Steps that would flip a triangle (fold it over) or collapse it are reduced or withheld. Repeated runs with the same input now produce identical aligned spheres and sphere-to-sphere mapping files. Before, vertex positions differed slightly between runs (up to about 0.1 mm in a test) when more than one compute thread was used. For each aligned sphere, the Log pane now shows the number of flipped triangles, the mean change of the triangle areas and the mean and maximum vertex movement relative to the standard sphere (including the rotation of a rigid alignment). At the end of an alignment of the group list (to a target sphere or to the group average), a summary of all spheres is printed, together with the correlation of the curvature maps between the subjects before and after the alignment. For the alignment to a selected target sphere, the correlation of the other subject curvature maps with the maps of the target. Furthermore, cortex-based alignment can now be run completely from Python and JavaScript. The previous approach remains available. For more details of the changes, see the updated 'Cortex-Based Alignment' chapter.
Back Side of Flat and Cut MeshesThe back side of flat maps, occipital discs and cut meshes is now shown in a homogeneous colour (dark gray by default), so that it is clear when such a mesh is seen from behind; previously the back side was not drawn, and these meshes disappeared when rotated. The back side display is turned on automatically for flat meshes and meshes with cut vertices, also after automatic cutting, direct flat mapping and occipital disc projection, and it can be turned on or off and its colour chosen in the Mesh Transparency and Shading Options panel. In Python, the mesh object has the new property show_back_side and the function set_back_side_color(r, g, b).
Spatial TransformationsCubic B-spline interpolation has been added as a new interpolation method for spatial transformations of anatomical data (VMR, V16) and volume maps (Thévenaz et al., 2000); it replaces the previous cubic spline option. It preserves image detail much better than trilinear interpolation and at a similar quality as sinc and Lanczos interpolation with less ringing at sharp intensity boundaries. The latter reduces "fringes" of small non-zero values around brains with sharp borders to a zero background (e.g. when transforming volumes after brain extraction). It is now the default in the spatial transformation dialogs (except for Talairach transformation and VTC creation). It is also the default in the new script commands: apply_trf_to_vmr(), apply_trf_to_vmp() and apply_trf_to_voi() of VMR documents (JavaScript: ApplyTRFToVMR(), ApplyTRFToVMP(), ApplyTRFToVOI()). These methods take the name of a TRF file and save the result as a new VMR, VMP or VOI file; the calling document is not changed. The transformation can be applied forward or backward, e.g. to bring maps or VOIs from MNI space back into the native space of a participant. An optional target VMR provides the dimensions of the target space, which is recommended if they differ from those of the calling VMR. For VMRs and maps, the interpolation method can be selected (nearest neighbor, trilinear, cubic B-spline, sinc, Lanczos); for VMRs, the 16-bit data (V16) is transformed with the same settings if available. Volume maps transformed to MNI space are now saved in the standard MNI bounding box (the one used when creating VTC files in MNI space) instead of the bounding box of their non-zero values, so that the transformed maps of different subjects have the same dimensions and can be used directly in subsequent group analyses. For this purpose, the 'Spatial Transformation Of VMPs' dialog has a new Reference space for target option (preselected as 'MNI' for MNI transformation files), and apply_trf_to_vmp() / ApplyTRFToVMP() have a corresponding optional reference_space parameter. Transformed maps of a VMR located in the 'anat' folder of a BIDS tree are saved in the corresponding 'func' folder. Details are described in the Python Developer Guide.
Intensity Inhomogeneity Correction: Residual Non-Brain TissueAfter brain extraction, thin pieces of non-brain tissue (dura, skull, fat, vessels) could remain attached to the outer surface of the cortex, e.g. along the superior convexity. The intensity inhomogeneity correction (Volumes > Inhomogeneity Correction, V16 Tools) now removes such tissue in a final step if it lies outside the cerebrospinal fluid gap at the brain boundary. The removed voxels are set to zero in both the VMR and the V16 data, and the brain mask file ([name]_BrainMask.vmr) is updated accordingly. The step works with any voxel size and makes no changes if the result is implausible (e.g. for very noisy data). It is turned on by default and can be turned off with the new option Remove residual extracerebral tissue at brain boundary to obtain the results of previous versions. In Python, use the optional parameter remove_extracerebral_tissue of correct_intensity_inhomogeneities_ext(); in JavaScript, CorrectIntensityInhomogeneities() has the optional parameter. The additional option Also remove attached non-brain pieces (stronger), turned off by default, attempts to remove in a second step also non-brain pieces that are still attached to the brain, e.g. bright dura, fat and vessels lying on the cortex, sinus walls and tissue at the skull base; tissue within 4 mm of white matter is never removed. Since this step may also remove sub-cortical structures such as the pituitary gland, it is advised to check the results. In Python, use the optional parameter remove_attached_nonbrain_tissue; in JavaScript, use the second optional parameter of CorrectIntensityInhomogeneities().
Volume Renderer: Multiple Slice CutsThe real-time volume renderer (Volumes > Real-Time Volume Rendering) no longer depends on OpenGL. It uses the native graphics interface (via Qt Quick 3D) of each platform (Metal on macOS, Direct3D on Windows). Slicing support has been enhanced and now supports up to four cut planes (previously only 1) in a similar way as the mesh 3D viewer: a transversal (TRA), a sagittal (SAG) and a coronal (COR) plane, plus an oblique plane (OBL) with adjustable azimuth and elevation. Each plane has its own slice position and a Flip option that selects the side that is removed. Together, the enabled planes are combined "opening" the volume: two planes remove a wedge, three planes a corner (octant), as in the mesh slicer. The cuts can be applied to the statistical maps and now also work in isosurface and maximum intensity projection mode.
Volume Renderer: Current Data of the VMR DocumentWhen the volume renderer is opened, it uses the data of the active VMR document in memory - the anatomical volume, the statistical maps (VMPs) and the volumes-of-interest (VOIs) - instead of reading the linked files as in previous versions. Data that have been changed (not yet saved) are therefore shown as in BrainVoyager. The renderer starts with the first map shown in BrainVoyager and the VOIs shown on the VMR.
Volume Renderer: Setting the Cross of the VMR DocumentThe volume rendering can now be related to the orthographic slice views of the VMR document: clicking on the rendering while holding down the Ctrl key (Cmd key on macOS) sets the cross of the VMR document to the location that is seen at the clicked position, i.e. the location where the viewing ray stops (alpha blending: first visible point of the anatomy or of a map, also on slice cuts; isosurface: the surface; maximum intensity projection: the point with the maximum intensity). When the mouse is moved with the key and the left mouse button held down, the cross follows the mouse along the rendering. This works for the VMR document from which the volume renderer has been opened, as long as that document is open and no other anatomy has been loaded into the renderer.
Volume Renderer: Movie ToolThe volume renderer has a new Movie dialog (context menu of the rendering: Movie..) to create smooth animations between two states of the renderer. The current state is stored with the Set buttons as Start and as End state; a state contains the viewpoint (rotation, translation, distance), the absorption level, the LUT range and the positions of the slice cuts (a cut is animated if it is enabled in both states). The stored values are shown when hovering over Start and End. Play shows the animation in the renderer; Save Movie renders it with the specified duration and frame rate and saves it as MP4 movie, as WebP animation (as other movies of BrainVoyager, e.g. for web pages and BV notebooks) or as numbered PNG frames; with Half size, the frames have half the width and height of the rendering (about a quarter of the file size; on high-resolution displays the size seen on screen). Options: Ease in/out (slow start and end of the movement instead of constant speed), Back and forth (from the start to the end state and back), Loop (repeats the animation when playing until the option is switched off or Stop is pressed) and 360° turn (adds a full turn around the vertical axis of the volume; an end state is then not needed, and together with Loop this results in an endless rotation).
Volume Renderer: Maps OnlyThe new option Hide anatomy (maps only, not cut) in the Volume Maps (VMPs) panel hides the anatomical volume and renders the statistical maps completely, also when slice cuts are active. This allows to quickly show the full 3D extent of activated regions.
Volume Renderer: Upper Value of the VMR LUT RangeIntensities above the upper value of the LUT range are now excluded from the rendering, as intensities below the lower value already were (alpha blending and maximum intensity projection mode). In previous BV versions, the upper value only changed the color range. The new behavior allows, for example, to remove bright skin and fat tissue, or white matter, from the rendering.
Diffusion Data: Splitting Multi-Shell VDWsA VDW file with more than one shell (b value) can now be split into single-shell VDW files with the new Split Shells button on the Gradients tab of the VDW Properties dialog. Volumes with b values up to 50 s/mm² are treated as b0 volumes (as in FSL); the other b values are sorted and grouped into shells, where a gap of more than 80 s/mm² between neighboring b values starts a new shell (as in MRtrix). This tolerates the slightly varying b values reported by scanners (e.g. 995, 1000 and 1005 for a b = 1000 shell, or 5 for b0 volumes). Each new VDW file contains all b0 volumes and the volumes of one shell in the original order, keeps the header of the original file (except the number of volumes and the gradient table) and is named by the rounded b value of its shell, e.g. sub-01_dwi_b1000_SLICES.vdw. Matching .grb, .bval and .bvec files are saved next to each file. The function is also available for scripts (Python: bv.split_vdw_into_shells(), JavaScript: BrainVoyager.SplitVDWIntoShells()).
PySide6 Python CodingPySide6 is used as the basis to enable Python scripting in BrainVoyager. In previous versions two features were implicitly turned on that enable the use of 'snake_case' (instead of 'camelCase') for the PySide6 API, and a pythonique access of properties, i.e. 'obj.property' instead of getter function 'obj.property()' and setter function 'obj.setProperty()'. Due to some issues with custom PySide6 code when using these features, BrainVoyager no longer enables the 'true_property' and 'snake_case' features automatically. Script writers now can control themselves which of these features they want to use. Scripts and notebooks that use property syntax or snake case names must import the features themselves. Adding, for example, the line ' from __feature__ import true_property, snake_case' would enable both features as was the case implicitly in preivous versions. For BrainVoyager Python code, the 'snake_case' property is not needed since BV's API is defined directly using snake case. However, to use pythonique properties, the 'true_property' feature needs to be enabled, which is recommended since it makes code easier to read. Therefore files created in the Python Developer IDE ('New' icon or 'File > New') will now automatically get the line 'from __feature__ import true_property' so that BV code can be written as before. All bundled Python scripts and BV notebooks have also been updated with an appropriate 'feature' line as needed to keep the example code the same as before.
Furthermore note that all editor files, the console and notebooks share one Python environment (i.e., they know about the same modules and variables). A once enabled feature stays thus active when writing multiple files. If one wants to write code in a new file with another PySide6 feature setting, and without restarting BrainVoyager, one can use the new File > Reset Python Environment command in the Python IDE, which turns all enabled features off again and also clears user variables. For more details, see topic The PySide6 feature Module in the Python Developer Guide.
Scripting: New Methods and Alphabetical IndexThis release comes with many new Python and JavaScript methods and attributes, among them methods for the new features described in these release notes. In addition, many existing Python methods are now fully documented; the new and newly documented methods are summarized in the section 'New in BrainVoyager 25.0' on the 'Overview' page of the 'Scripting API' chapter of the Python Developer Guide. To make it easier to find a method or attribute among the growing number of commands, the Python Developer Guide now contains an Alphabetical Index of Methods and Attributes (after the 'Overview' page). It lists all Python methods and attributes in alphabetical order, independent of the object they belong to (application, project, workflow, document, mesh scene, mesh), and clicking a name jumps directly to its description.
API Help in the Python EditorAs in BV notebooks, the Python editor (Python Development window) now shows help for BrainVoyager API methods: when the mouse rests over the name of a method in the code, e.g. open_document, its signature is shown as a tooltip, and the signature with the description of the parameters is shown in the new API Help panel at the bottom of the window. The panel is also updated when a method name is inserted with code completion. The panel can be shown or hidden with View > API Help Panel; with View > Auto-Show API Help Panel On Hover (on by default), it is shown automatically when the mouse rests over an API method.
Faster Voxelwise Event-Related Averaging MapsThe calculation of voxelwise event-related averaging maps (Analysis > Event-Related Averaging Map) is now much faster. The time course data of the functional (VTC) files is read in large blocks instead of separately for each voxel, and the voxels are averaged in parallel using multiple threads. Event-related averaging maps are now calculated 10-50 times faster than in previous versions producing the same values as before.
Trimming VTC Time CoursesThe VTC Properties dialog has a new Trim time course section on the General tab to remove a specified number of volumes at the begin or at the end of a VTC file, e.g. dummy volumes at the begin or noise volumes at the end of a run. This function was so far only available for FMR files (Trim STC in the FMR Properties Options dialog). The trimmed time course is saved as a new VTC file (proposed name: <name>_trimBegin<n>.vtc or <name>_trimEnd<n>.vtc), which is then linked to the VMR document instead of the original file; the original file is not changed. Volumes removed at the begin are added to the number of skipped volumes in the acquisition information of the VTC. Note that the linked protocol is not adjusted; if volumes are removed at the begin, the events of the protocol need to be shifted accordingly. The function is also available for scripts (Python: bv.trim_vtc(vtc_file, n_volumes, at_begin=False, output_file=""), JavaScript: BrainVoyager.TrimVTC()); these functions work directly on the VTC file (no open document needed) and return the name of the saved file.
Creating Documents from Single-Slice DICOM Files: Slices and VolumesFor functional and diffusion-weighted data stored as one slice per DICOM file (neither Siemens mosaic nor multi-frame DICOM files), the number of slices per volume and the number of volumes are now determined from the slice positions stored in the files of the series. This information is often missing or misleading in the file headers, e.g. GE scanners store the number of all images of the series instead of the number of slices per volume. The Create Document wizard now detects these values (and the order of the files, i.e. volume after volume or all time points of one slice after the other); they can still be changed. The script commands for creating functional and diffusion-weighted data from DICOM files with explicit parameters (Python, e.g. bv.create_vtc(), bv.create_vdw()) determine the numbers from the slice positions if 0 is passed for the number of slices or volumes. The commands requiring only a file of the series (e.g. bv.create_vtc_dicom(), bv.create_vdw_dicom()) already used the slice positions.
Recent Files and Opening VDW FilesVDW files can now be opened with File > Open; they are listed under Main Documents and as a separate file type. As for VTC files, a VDW is opened in a hosting VMR document. VTC and VDW files can now also be opened directly in the lists of recently opened files of the Files pane. Clicking a VTC or VDW file in slice space (e.g. <name>_SLICES.vtc) opens it in its own hosting VMR document; previously, clicking a VTC file always linked it to the active VMR document. Other VTC and VDW files are still linked to the active VMR document, or opened if no VMR document is active. The context menu of a VTC or VDW entry offers both Open VTC (Open VDW) and, if possible, Link VTC file to active VMR. Since the Files pane takes considerable horizontal space, it is now closed after a file has been opened, loaded or linked from one of its lists. The pane can be shown and hidden quickly with the new keyboard shortcut Ctrl+Alt+R (Cmd+Option+R on macOS). When hovering over a file in the lists of recently opened files, its folder is now shown as a tooltip, which helps to choose the right file when files with the same name are listed several times.
Transforming a Native VMR to Slices-VTC SpaceThe Options > Transform Native VMR To FMR-VTC Space function has been adapted to the Slices-VTC approach of BrainVoyager 25.0 and is now called Transform Native VMR to Slices-VTC Space. Instead of the original FMR file, the dialog now asks for the Slices-VTC (or Slices-VDW) file into whose space the native VMR is transformed, using the _IA.trf and _FA.trf files of the coregistration of the Slices-VTC with the VMR. The options to choose the rotation to sagittal orientation and the framing cube dimension have been removed, since Slices-VTCs always use the axial-to-sagittal rotation. The resulting VMR (<name of VMR>_IN_<name of Slices-VTC>.vmr) has the dimensions and voxel size of the Slices-VTC and can therefore be used as hosting VMR of the Slices-VTC; the applied transformation is saved next to it as _3D3D.trf file.
Auto-Saving Single-Study GLMsWhen a single-study GLM is computed with the Single Study General Linear Model dialog (Analysis > General Linear Model: Single Study), the resulting GLM is now saved automatically, as is done for multi-study GLMs. The GLM file is saved next to the automatically saved design matrix and gets the same name with the extension .glm (e.g. <name>_VTC_autosave.glm). The name of the saved file is shown in the Log pane.
Multi-Voxel Pattern Analysis (MVPA)The ROI-SVM tab of the Multi-Voxel Pattern Analysis dialog (Analysis > Multi-Voxel Pattern Analysis (MVPA)) has been extended. For multi-class training, the new Classes list shows all conditions of the loaded training runs; unticked conditions are left out, so that a subset of three or more conditions can be classified. The new Validation option offers None, Leave one run out and N-fold (trials) cross-validation of the training data; leave one run out uses the run of each trial, which is now stored with the created MVP files. The result is reported with the chance level, the accuracy for each left-out run and a confusion matrix, and the same scheme is used to search for the best C value. The permutation test (Options button, SVM Options dialog) uses the selected validation scheme, shuffles the labels within runs for leave one run out and now also reports a p-value, p = (nge + 1) / (n + 1), where n is the number of permutations and nge the number of permutations with an accuracy at least as high as with the correct labels. The Log pane lists every training and test trial with the predicted and expected class (number and name), followed by a confusion matrix. Class names are stored as <name>.classes.json file next to MVP and model files; they name the SVM weight maps (e.g. SVM Pref Weights, Class 2 (houses)), and test data whose classes are numbered differently are assigned to the classifier's classes by name. Weight maps of more than two classes (after training and after RFE) are shown with one colour range per class (red, green, blue, yellow, ...), each showing only the voxels that prefer the class, and all class maps are visible together. The Recursive Feature Elimination tab now also supports more than two classes: voxels are ranked by the combined weights of all class pairs, the trials of each class are distributed evenly over the folds (unequal numbers of trials per class are now possible), and the result contains one preference weight map per class (RFE SVM Pref Weights, Class n (name)). The SVM searchlight (Searchlight Mapping tab) now also supports more than two classes, and the conditions no longer need to be in the same order in all runs; the Log pane reports the classes and the chance level, and the default threshold of the accuracy map is set 15% above chance level (65% for two classes as before).


 

Deprecated


 

FMR and DMR File FormatThe FMR format for functional data is deprecated and will be removed in a future BrainVoyager version. FMR files can still be used in version 25 (e.g. by turning off the setting 'Open and create FMR/DMR data as VTC/VDW' in the 'Data' tab of the 'Settings' dialog); when an FMR document is opened or created as FMR, a note is shown in the 'Log' pane and its window title is marked with [FMR - deprecated]. Script functions creating FMR documents (e.g. create_fmr_dicom(), CreateFMRFromDICOM()) log a warning; please use the corresponding VTC functions (see above). The DMR format for diffusion-weighted data is deprecated in the same way: DMR documents used as such are marked with [DMR - deprecated] and a note is shown, and script functions creating DMR documents (e.g. create_dmr_dicom(), CreateDMRFromDICOM()) log a warning; please use the corresponding VDW functions. Note that all functional preprocessing, coregistration and normalization functions for FMR / DMR files are now available for VTC and VDW files.


 

Bug Fixes


 

Spatial VOI TransformationsTransforming VOIs in another space, e.g. from native to MNI, did not work in the previous version. This issue has been fixed.
Mean Intensity AdjustmentThe z-normalized volume intensity time course saved as <name>_MIA.sdm file by the mean intensity adjustment step could contain undefined values. This issue has been fixed; the corrected functional data were not affected.
Linking VDW FilesVDW files whose bounding box reaches the border of the hosting VMR (e.g. VDWs in slice space) could not be linked ("VDW box position does not fit in VMR file"). This issue has been fixed.
Data Analysis Manager - Across-Run Motion CorrectionMotion correction to another run was not performed if specified (to other run parameter in preprocessing workflow): all runs were only corrected within the run. This issue have been fixed.
Volume RendererBrainVoyager could crash when loading VMRs with unequal dimensions - this issue has been fixed. The program could crash when a VMP was loaded in the volume renderer while maps were already loaded. After loading another VMR with Load Anatomy, the window title still showed the previous file name. On Windows, switching between applications could change the window properties of the volume renderer. This has been fixed. The maximum intensity projection mode sampled only very few points along each ray, so the result looked like a transparent point cloud, and the intensities were mapped so that almost everything appeared white. These issues have been fixed. The mode now samples the whole ray and maps the maximum intensity using the LUT range (grey or gold LUT).
Scripts: Mesh Inflation after Sphere MorphingWhen the script function inflate_geometry() (Python) or InflateGeometry() (JavaScript) was called for a mesh of a document after the functions for morphing to a sphere or for distortion correction on the sphere had been used in the same document, the settings of the sphere morphing were still active: the vertices were projected on (or pulled towards) a sphere during inflation and the distortion correction force of the previous call was applied. This issue has been fixed.
Centering of Sphere MeshesBefore and after distortion correction and in later steps of cortex-based alignment, a mesh on a sphere is moved so that the sphere is centered on the mesh center. The mean position of the vertices was used as center of the sphere, which is only correct if the vertices are distributed evenly; for a morphed hemisphere the sphere ended up about 1 - 2 units off the mesh center (at a radius of about 80 units). For meshes whose vertices lie exactly on a sphere, the center of the sphere fitted to the vertices is now used.
Crash Reports (macOS, Linux)When BrainVoyager crashed, it exited without leaving a crash report of the operating system. The operating system now creates a crash report, which helps to find the cause of a crash.
Cortex-Based AlignmentSeveral issues have been fixed: BrainVoyager could crash when a function of the Cortex-Based Alignment dialog was used after another function of the dialog had replaced the loaded meshes (e.g. calculating curvature after averaging curvature or shape of a group); BrainVoyager closed without message when a group-aligned sphere could not be loaded during group alignment (the alignment now stops with an error message); the progress dialog stayed open when group alignment stopped early; alignment of each entry to a target sphere did not work at ultra-high resolution (a sphere of high resolution was created); the rigid alignment could skip the last step of a search range; and the average sphere map files saved during group alignment are now named AveragePMP_LH-... and AveragePMP_RH-..., so that the files of the two hemispheres of a group no longer overwrite each other if saved to the same folder. In scripts, create_average_folded_group_mesh() now also finds the folded meshes of high and ultra-high resolution. When surface maps were shown on a mesh while sphere maps with a different number of maps were in memory (e.g. the averaged curvature maps of a group after an alignment), the message "Unequal number of standard and sphere maps" appeared at each update of the display and stopped scripts; the surface maps are now shown as they are.
Diffusion NIfTI Import: .bvec / .bval FilesWhen diffusion-weighted NIfTI files not created by BrainVoyager (e.g. by dcm2niix) were opened, the gradient directions of the accompanying .bvec file were not used, so that the data had b values but no valid gradient directions. The gradient table is now read from the .bvec and .bval files if the JSON sidecar file does not contain it (or if there is no JSON file), and the directions are converted from the voxel axes of the NIfTI file to scanner coordinates (GRB data). A gradient table stored in the JSON file by BrainVoyager is still used first.
VOI Value Extraction at Functional ResolutionWhen mean VOI values were extracted from a multi-subject VMP for an ANCOVA table (Extract Values button with the Extract values from multi-subject VMP option in the ANCOVA tab of the VOI Analysis Options dialog), the VOI voxels were assigned to map voxels by rounding instead of truncating the converted coordinates. For maps with a resolution 2 times lower than the VMR in each dimension (2x2x2), the VOI was thereby shifted by half a map voxel along each axis, so that values of neighboring map voxels entered the VOI mean; the extracted values differed notably from those of the VOIs with map values table in the VOI Functions tab, especially for small VOIs. The same assignment was used for VOI beta plots, VOI event-related averaging plots from event-related averaging maps, and for ROI time courses of VTC data (regions selected in the VMR and mesh patches projected into the VMR). This issue has been fixed for all cases. The values extracted for an ANCOVA table are now identical to the values of the VOIs with map values table if the Trilinear Interpolation option for maps is turned off; with trilinear interpolation, small differences remain since the table uses the interpolated map values. The ANCOVA table (and the saved .atd file) now also shows the subject names of the maps instead of generic names. For data with resolution 3, the assignment of VOI and ROI voxels to functional voxels has been aligned with the way VTC files are created (a functional voxel of resolution 3 is centered on the middle of its 3 x 3 x 3 anatomical voxels); extracted VOI and ROI values may therefore differ slightly from earlier versions (shift of one anatomical voxel, i.e. one third of a functional voxel). Results for data with resolution 1 are not affected. For data with resolution 2, the same half-voxel issue (0.5 mm in a 1 mm VMR) has also been fixed in other functions that sample functional data at anatomical positions. Results of these functions for data with resolution 2 may therefore differ slightly from earlier versions; surface maps and mesh time courses now correspond exactly to the map values shown in the VMR at the sampled positions.
Linking VDW Files: File SelectionThe Link VTC dialog (Link VTC button in the Active Document Actions panel, Analysis > Link Volume Time Course (VTC) File) and the Link VTC item of the context menu of a document window's title only offered VTC files. VDW files can now be selected and linked as well; the context menu item reads Link VDW... when a VDW is linked.
Fiber Tracking: Tensor LookupDuring fiber tracking, the tensor at a position was taken from a voxel that was half a voxel off for about half of all positions (the position was truncated instead of using the nearest tensor voxel). Tracked fibers may therefore differ slightly from earlier versions.
Spatial Transformation of V16 Data: Sinc InterpolationWhen a spatial transformation (e.g. Scale in the 3D Volume Tools dialog) was applied with sinc interpolation to the 16-bit data (V16) of a VMR and GPU interpolation was turned off in the Settings dialog, the interpolated values were limited to the 8-bit range of the VMR (maximum 225), so that all brain voxels of the transformed V16 data got the same value. The full 16-bit value range is now preserved. The transformed VMR (8-bit) data were not affected but when contrast / brightness was recalculated, a grey brain would be shown in the VMR View because intensities are mapped from the 16-bit data if available. The GPU-based interpolation was not affected.
Coregistration with Anatomical NIfTI Files Not Acquired SagittallyWhen an anatomical NIfTI file is opened, the data is reoriented to BrainVoyager's sagittal layout, but the slice positions stored in the VMR header (taken from the JSON sidecar file written by BrainVoyager) still described the slices of the original orientation. For anatomical data not acquired sagittally (e.g. axial or coronal slices), the header-based initial alignment of functional or diffusion data to such a VMR was therefore wrong (typically rotated by 90 degrees). The slice positions are now derived from the NIfTI matrix for the volume as stored in the VMR, also for files without BrainVoyager information in the JSON file (e.g. created with dcm2niix) and for files in 'aligned' space. The initial alignment thereby also remains correct after the VMR has been transformed to iso-voxels, which was not the case for anatomical files from dcm2niix, and a VMR saved again as NIfTI file gets a matrix matching the stored volume. VMR files created from such NIfTI files with earlier BV versions need to be created again by re-opening the NIfTI file.
Diffusion Tensors for Anatomies Not Acquired SagittallyWhen diffusion-weighted data were transformed into the space of a VMR created from non-sagittal DICOM files (e.g. axial slices) that had been transformed to sagittal orientation, the resulting VDW files did not take the reorientation into account for the gradient directions. While the data were placed correctly, the tensors and fiber directions appeared therefore mis-oriented (e.g. left-right fibers of the corpus callosum appeared as anterior-posterior fibers). The direction table of the VDW file now includes the rotation of the transformation to sagittal orientation, as already done by the header-based initial alignment. VMRs created from NIfTI files were not affected. VDW and DDT files created in VMR space from such data with earlier versions need to be created again.
Converting VOIs to ROIs and SLICES VOIs with a SLICES VTCThe 'Convert' function in the 'Convert VOIs to ROIs and Slices VOIs' field of the 'Transformations' tab of the 'VOI Analysis Options' dialog accepted a SLICES VTC as target file but read it as an FMR file, which resulted in the message "Can not read FMR file - unexpected tokens encountered" followed by a crash. The ROI and SLICES VOI files are now created correctly from a SLICES VTC, using the same slice geometry as the coregistration of the SLICES VTC. If the target file can not be read, a message is shown instead of a crash.
Voxel Size after Transforming an MNI VMR Back to Native SpaceWhen an MNI transformation file was applied backward to transform an MNI VMR back to native space, the resulting VMR received wrong voxel sizes (e.g. 1.04 x 1.07 x 1.18 mm instead of 1 mm), both with the Python command 'apply_trf_to_vmr()' and in the 'Spatial Transformation' dialog of the '3D Volume Tools' (with the default option 'Adjust target voxel resolution for rotation and scale'). The voxel size calculation used the wrong direction of the transformation matrix; this has been fixed. The same issue resulted in wrong voxel sizes when applying a transformation file with scaling forward, e.g. when the TRF file saved by the 'Scale' function (1.0 mm to 0.5 mm) was applied again to the 1.0 mm VMR, the resulting VMR got a voxel size of 2.0 mm instead of 0.5 mm. For MNI transformations the voxel size is no longer adjusted, since their scales describe the size of the brain, not of the voxels; the option is therefore off by default for MNI transformation files. If a target VMR is specified in the 'apply_trf_to_vmr()' command, the resulting VMR receives the voxel size of the target VMR.
Saving Cluster-Parcel Overlap TablesWhen regions-of-interest (VOIs) were used as input for File > Atlases > Atlas-Based Identification of Regions-of-Interest, saving the cluster-parcel table as a .cpo.json file in the Cluster Overlap With Atlas Parcels dialog crashed BrainVoyager. The file now contains the mean positions of the regions in this case (and the peak voxels of the clusters when a volume map is used as input). Loading a saved .cpo.json file could also crash; this has been fixed as well.
Log Pane: Missing LinesWhen a function wrote several lines to the 'Log' pane in quick succession, lines could be lost, e.g. during mesh morphing and cortex-based alignment. This issue has been fixed, also for the session log file.
MVPA: Multi-Class ClassificationMulti-class SVM training and testing in the Multi-Voxel Pattern Analysis dialog could give wrong results when the conditions did not occur in the same order in all runs: the classes were numbered separately in each run in the order of the run's trials, so the same class number could stand for different conditions. In addition, the predicted class was taken from the internal class order of the SVM library, which follows the first occurrence of the classes in the training data, and the same applied to the order of the preference weight maps and the logged b values. Both issues have been fixed; one class list is now used for all runs. With synthetic test data whose conditions came in a different order in each run, the test accuracy changes from about 10% to the expected 77.5%.
Recursive Feature EliminationThe final set of voxels of the recursive feature elimination (RFE) is merged over the first-level folds and should contain the voxels with the largest weights. Instead, the voxels with the smallest weights of the merged set were kept, so that the saved RFE map contained mainly uninformative voxels. This issue has been fixed. The accuracy per elimination level shown in the plot was not affected.
Plot Axis LabelsIn line plots, e.g. the RFE generalization plot and the permutation test result of the Multi-Voxel Pattern Analysis dialog, the axis labels and the frame were drawn in black on the black background and were therefore not visible. They are now shown in light grey.