<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://megcore.nih.gov/index.php?action=history&amp;feed=atom&amp;title=Mut_img</id>
	<title>Mut img - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://megcore.nih.gov/index.php?action=history&amp;feed=atom&amp;title=Mut_img"/>
	<link rel="alternate" type="text/html" href="https://megcore.nih.gov/index.php?title=Mut_img&amp;action=history"/>
	<updated>2026-04-07T13:29:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://megcore.nih.gov/index.php?title=Mut_img&amp;diff=3963&amp;oldid=prev</id>
		<title>Nugenta: Created page with &quot; Return to Source Localization - SAM  ==Description==  This is an experimental program for calculating mutual information between all voxels in...&quot;</title>
		<link rel="alternate" type="text/html" href="https://megcore.nih.gov/index.php?title=Mut_img&amp;diff=3963&amp;oldid=prev"/>
		<updated>2019-03-12T20:26:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Source_Localization_-_SAM&quot; title=&quot;Source Localization - SAM&quot;&gt; Return to Source Localization - SAM&lt;/a&gt;  ==Description==  This is an experimental program for calculating mutual information between all voxels in...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Source Localization - SAM | Return to Source Localization - SAM]]&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
This is an experimental program for calculating mutual information between all voxels in an image, based upon rank vector entropy. First, this program will calculate a symbolic state time series, similar to that initially calculated by [[sam_entropy | sam_entropy]]. The program requires that the user specify the embedding dimension, which must be 4 or 5. Unlike [[sam_entropy | sam_entropy]], however, an ADVANCE parameter can be specified, which governs the number of time samples that the window is advanced in each encoding step. In [[sam_entropy|sam_entropy]], the window is always advanced by one step. Similar to [[sam_entropy|sam_entropy]], the lag between samples in the window is calculated from the sampling rate and the maximum frequency. A surrogate state time series is also created. Following creation of the symbolic state time series, the mutual information between each voxel and all other voxels is calculated. Mutual information is also calculated for the surrogate data. Any value for mutual information is set to zero if it lies below three times the surrogate mutual information. &lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&lt;br /&gt;
  mut_img  -r &amp;lt;dataset_name&amp;gt; -m &amp;lt;parameter_file_name&amp;gt; [options]&lt;br /&gt;
&lt;br /&gt;
The -r flag is followed by the dataset name (with or without the .ds suffix). The -m flag is followed by the parameter file name (with or without .param). &lt;br /&gt;
&lt;br /&gt;
Other options:&lt;br /&gt;
  &lt;br /&gt;
  -b  read in a previously calculated mutual information matrix&lt;br /&gt;
  -v  verbose mode&lt;br /&gt;
&lt;br /&gt;
Note that the -b flag is only useful if for some reason you already have the binary file that gives the mutual information matrix for every voxel with every other voxel, but you do not have this reshaped into a NIFTI format image. &lt;br /&gt;
&lt;br /&gt;
Required Parameters:&lt;br /&gt;
&lt;br /&gt;
  ImageMetric: Must be MutualInformation with ADVANCE and DIMS set.&lt;br /&gt;
  NumMarkers: Must be zero&lt;br /&gt;
  CovBand: Bandpass for covariance matrix, also specifies subdirectory for weights&lt;br /&gt;
  ImageBand: designates the bandpass for imaging the power&lt;br /&gt;
  CovType: must be GLOBAL&lt;br /&gt;
  FilterType: Type of filter (FFT vs. IIR) used for bandpass&lt;br /&gt;
&lt;br /&gt;
Optional Parameters:&lt;br /&gt;
&lt;br /&gt;
  ImageFormat: Designates whether the weights are in +orig or +tlrc space&lt;br /&gt;
  ImageDirectory: Directory where the output images are written, default is the SAM directory&lt;br /&gt;
  PrefixLength: Number of characters in the MEG dataset used for naming MRI and output files.&lt;br /&gt;
&lt;br /&gt;
==Output Files==&lt;br /&gt;
&lt;br /&gt;
For each voxel in the image, the maximum mutual information calculated for that voxel is output in a maxima.txt file in the SAM directory of the dataset. In addition, the entire mutual information matrix (which is a square matrix with dimension equal to the total number of non-zero voxels) is written as a binary file, appended Connections.bin. Finally, a 3D+time NIFTI format image is written, with the time dimension encoding each non-zero voxel. Thus, each sub-brick in the image (to use AFNI-speak) will be the mutual information with a single seed voxel. This will thus be an extremely large image. Don&amp;#039;t say we didn&amp;#039;t warn you.&lt;/div&gt;</summary>
		<author><name>Nugenta</name></author>
	</entry>
</feed>