Hello,
During today's workshop, it was mentioned that it's possible to use brainstorm to extract information from raw cnt files if they're from Neuroscan (information like subject ID, date of creation, etc.). What functions are used to do this? Can we choose which headers to extract using these functions?
Is it also possible to do this with EEProbe cnt files?
Thank you in advance!
1 Like
Hi,
These are the functions related to read Neuroscan .eeg
, .avg
and .cnt
files (including the headers).
https://github.com/brainstorm-tools/brainstorm3/search?q=neuroscan_read_header
The EEprobe continuous data (also .cnt
) is different from the Neuroscan .cnt
format. You can find functions to read EEProbe files in Matlab in: https://robertoostenveld.nl/eeprobe/
Best,
Raymundo
1 Like
ANT EEProbe files are also natively supported in Brainstorm:
function [sFile, ChannelMat] = in_fopen_ant(DataFile)
% IN_FOPEN_ANT: Open an ANT EEProbe .cnt/.avr file (continuous recordings).
%
% USAGE: [sFile, ChannelMat] = in_fopen_ant(DataFile)
% @=============================================================================
% This function is part of the Brainstorm software:
% https://neuroimage.usc.edu/brainstorm
%
% Copyright (c)2000-2020 University of Southern California & McGill University
% This software is distributed under the terms of the GNU General Public License
% as published by the Free Software Foundation. Further details on the GPLv3
% license can be found at http://www.gnu.org/copyleft/gpl.html.
%
% FOR RESEARCH PURPOSES ONLY. THE SOFTWARE IS PROVIDED "AS IS," AND THE
% UNIVERSITY OF SOUTHERN CALIFORNIA AND ITS COLLABORATORS DO NOT MAKE ANY
% WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
% MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, NOR DO THEY ASSUME ANY
% LIABILITY OR RESPONSIBILITY FOR THE USE OF THIS SOFTWARE.
%
This file has been truncated. show original
function F = in_fread_ant(sFile, SamplesBounds)
% IN_FREAD_ANT: Read a block of recordings from a ANT EEProbe .cnt/.avr file
%
% USAGE: F = in_fread_ant(sFile, SamplesBounds) : Read all channels
% @=============================================================================
% This function is part of the Brainstorm software:
% https://neuroimage.usc.edu/brainstorm
%
% Copyright (c)2000-2020 University of Southern California & McGill University
% This software is distributed under the terms of the GNU General Public License
% as published by the Free Software Foundation. Further details on the GPLv3
% license can be found at http://www.gnu.org/copyleft/gpl.html.
%
% FOR RESEARCH PURPOSES ONLY. THE SOFTWARE IS PROVIDED "AS IS," AND THE
% UNIVERSITY OF SOUTHERN CALIFORNIA AND ITS COLLABORATORS DO NOT MAKE ANY
% WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
% MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, NOR DO THEY ASSUME ANY
% LIABILITY OR RESPONSIBILITY FOR THE USE OF THIS SOFTWARE.
%
This file has been truncated. show original
1 Like