We have formatted our data into a fieldtrip format which includes an 80 row matrix of data.
Our markers include those denoting the starts of trials('T') , start of accelerometer('D') and many more. We have a total of 216 markers. These are essential for us to do the next step of epoching in brainstorm.
HOWEVER, we were unable to determine how to add the markers into brainstorm. Originally, we stored the markers + Data in the fieldtrip format as shown below:
ft_data = [];
ft_data.fsample = s_SampRate; % Sampling rate scalar
ft_data.label = cll_AllChNames; % All channel names combined
ft_data.trial = { m_AllData }; % 1x1 cell: channels x time
nSamples = size(m_AllData, 2);
ft_data.time = { (0:nSamples-1) / s_SampRate }; % Time vector in seconds
%%Storing the Markers below
num_events = length(combined_idx_sorted);
for i = 1:num_events
ft_data.cfg.event(i).type = combined_names_sorted{i}; % Trigger label
ft_data.cfg.event(i).sample = combined_idx_sorted(i); % Trigger sample index
ft_data.cfg.event(i).value = combined_names_sorted{i}; % Duplicate trigger label
end
%Save .mat for exportation to brainstorm
save('File_Name.mat', 'ft_data', '-v7.3');
This format allowed us to see the data and all the channels.
However there was no option in brainstorm to simply access the markers from this fieldtrip structure.
Is there a way by which brainstorm can read this fieldtrip structure to not only extract the data but ALSO the markers?
OR
Do we have to store the markers as a separate file and import it after importing our data?
If so what is the standard way to format the markers so they can be read by brainstorm?
Please advise.