<?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=Sam_epi</id>
	<title>Sam epi - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://megcore.nih.gov/index.php?action=history&amp;feed=atom&amp;title=Sam_epi"/>
	<link rel="alternate" type="text/html" href="https://megcore.nih.gov/index.php?title=Sam_epi&amp;action=history"/>
	<updated>2026-04-07T12:16:04Z</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=Sam_epi&amp;diff=3960&amp;oldid=prev</id>
		<title>Nugenta: /* Description */</title>
		<link rel="alternate" type="text/html" href="https://megcore.nih.gov/index.php?title=Sam_epi&amp;diff=3960&amp;oldid=prev"/>
		<updated>2019-03-12T15:46:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Description&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:46, 12 March 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The sam_epi routine is a program designed for detecting&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; sub-threshold&lt;/del&gt; epileptiform activity in the brain. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;It&lt;/del&gt; evaluates each voxel &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;time&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;series&lt;/del&gt; to determine kurtosis. The recommended pipeline is to run sam_cov, sam_wts, and then sam_epi. The utility [[NIFTIPeak|NIFTIPeak]] can then be used to identify voxels with peak or excess kurtosis values. These voxel locations can then be used as targets for a secondary run of sam_cov with a wide bandwidth&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;an sam_wts&lt;/del&gt;. Finally, DataEditor can be used to generate the virtual sensor time series for the targets, and the epileptologist can investigate the time series &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mark&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;spikes. Individual&lt;/del&gt; spikes&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; can then be modeled with dipole fits&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The sam_epi routine is a program designed for detecting epileptiform activity in the brain&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; in a semi-automated fashion, to prevent the necessity for the epileptologist to view each MEG channel time series individually&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sam_epi&lt;/ins&gt; evaluates&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; the time series of&lt;/ins&gt; each voxel &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;in&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the brain&lt;/ins&gt; to determine kurtosis. The recommended pipeline is to run sam_cov, sam_wts, and then sam_epi&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, using an initial bandwidth in the range 20-70Hz&lt;/ins&gt;. The utility [[NIFTIPeak|NIFTIPeak]] can then be used to identify voxels with peak or excess kurtosis values. These voxel locations can then be used as targets for a secondary run of sam_cov&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; and sam_wts&lt;/ins&gt; with a wide bandwidth &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(1-150Hz)&lt;/ins&gt;. Finally, DataEditor can be used to generate the virtual sensor time series for the targets, and the epileptologist can investigate the time series &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;to&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;examine&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;individual&lt;/ins&gt; spikes.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note that datasets must be continuous, and not epoched into trials.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note that datasets must be continuous, and not epoched into trials.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage==&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nugenta</name></author>
	</entry>
	<entry>
		<id>https://megcore.nih.gov/index.php?title=Sam_epi&amp;diff=3958&amp;oldid=prev</id>
		<title>Nugenta at 15:13, 12 March 2019</title>
		<link rel="alternate" type="text/html" href="https://megcore.nih.gov/index.php?title=Sam_epi&amp;diff=3958&amp;oldid=prev"/>
		<updated>2019-03-12T15:13:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:13, 12 March 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Description==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The sam_epi routine is a program designed for detecting sub-threshold epileptiform activity in the brain. It evaluates each voxel time series to determine kurtosis. The recommended pipeline is to run sam_cov, sam_wts, and then sam_epi. The utility [[NIFTIPeak|NIFTIPeak]] can then be used to identify voxels with peak or excess kurtosis values. These voxel locations can then be used as targets for a secondary run of sam_wts. &lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The sam_epi routine is a program designed for detecting sub-threshold epileptiform activity in the brain. It evaluates each voxel time series to determine kurtosis. The recommended pipeline is to run sam_cov, sam_wts, and then sam_epi. The utility [[NIFTIPeak|NIFTIPeak]] can then be used to identify voxels with peak or excess kurtosis values. These voxel locations can then be used as targets for a secondary run of&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; sam_cov with a wide bandwidth, an&lt;/ins&gt; sam_wts&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Finally, DataEditor can be used to generate the virtual sensor time series for the targets, and the epileptologist can investigate the time series and mark spikes. Individual spikes can then be modeled with dipole fits&lt;/ins&gt;. &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note that datasets must be continuous, and not epoched into trials. &lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note that datasets must be continuous, and not epoched into trials. &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nugenta</name></author>
	</entry>
	<entry>
		<id>https://megcore.nih.gov/index.php?title=Sam_epi&amp;diff=3957&amp;oldid=prev</id>
		<title>Nugenta: Created page with &quot; Return to Source Localization - SAM  ==Description==  The sam_epi routine is a program designed for detecting sub-threshold epileptiform activi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://megcore.nih.gov/index.php?title=Sam_epi&amp;diff=3957&amp;oldid=prev"/>
		<updated>2019-03-08T22:04:09Z</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==  The sam_epi routine is a program designed for detecting sub-threshold epileptiform activi...&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;
The sam_epi routine is a program designed for detecting sub-threshold epileptiform activity in the brain. It evaluates each voxel time series to determine kurtosis. The recommended pipeline is to run sam_cov, sam_wts, and then sam_epi. The utility [[NIFTIPeak|NIFTIPeak]] can then be used to identify voxels with peak or excess kurtosis values. These voxel locations can then be used as targets for a secondary run of sam_wts. &lt;br /&gt;
&lt;br /&gt;
Note that datasets must be continuous, and not epoched into trials. &lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&lt;br /&gt;
  sam_epi -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 designates the dataset name (with or without the .ds suffix), and -m designates the parameter file name.&lt;br /&gt;
&lt;br /&gt;
Other options:&lt;br /&gt;
&lt;br /&gt;
  -v  Verbose mode, without this flag sam_wts works silently except for error messages&lt;br /&gt;
  -h  Show help&lt;br /&gt;
&lt;br /&gt;
Required Parameters:&lt;br /&gt;
&lt;br /&gt;
  CovBand: Bandpass for the covariance matrices (and directory for weights files)&lt;br /&gt;
  ImageBand: Bandpass for the image&lt;br /&gt;
  ImageMetric: Must be KURTOSIS&lt;br /&gt;
  TimeInt: designates the duration for the boxcar integration&lt;br /&gt;
  CovType: Must be GLOBAL&lt;br /&gt;
&lt;br /&gt;
Optional Parameters:&lt;br /&gt;
&lt;br /&gt;
  FilterType: choose the applied filter, IIR vs. FFT &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 name used for naming MRI files&lt;br /&gt;
&lt;br /&gt;
==Output Files==&lt;br /&gt;
&lt;br /&gt;
Creates a single 3D NIFTI format image of kurtosis (g2). Output file will be named using the PrefixLength parameter.&lt;/div&gt;</summary>
		<author><name>Nugenta</name></author>
	</entry>
</feed>