Reviewing trials with contact sheet

Hello,

I was discussing with Niloofar about reviewing cleaned data to mark bad trials. I suggested that if it was possible, perhaps a quick way to do this would be with a contact sheet of butterfly plots of each trial with the same scale. I tried, but I failed. I understand the data needs to be in the same file (we can't make a contact sheet from the separate epoch files), right? For concatenated imported data or raw data, it refuses to go beyond the displayed time. Whether the trial duration is selected in the record panel or zoomed in the figure, the contact sheet will only move the time cursor and not actually show the time series for the corresponding time window. So it just shows the same data over and over.

Is there a way to make this work? Otherwise, what would be the recommended approach for rapidly reviewing pre-processed data? Is there another option than one trial at a time?

Thanks!

Rewriting the time series figure to work with multiple files would be complicated. The structure of the code should be completely reorganized.

I added a cheap version of this: select multiple files in the database explorer, right-click on one of them > Time series > MEG. This opens all the figures sequentially and removes the borders of the figures so that the graphs are not too small with lots of files.
Does it work the way you would expect?

Thanks François.

I was only thinking of contact sheet, which is a "snapshot" type of function, it's not interactive right? So I didn't think you'd need to modify the figures.

Your version gets slow with many trials, which is exactly when this would become more useful. And they all stack vertically instead of a grid. So not sure I'd use it, but Niloofar didn't complain. So good enough for now. Something to file way down the wish list... :slight_smile:

Then you need to write a new function similar to view_contactsheet.m, but that takes multiple files in input, instead of scrolling through time.
I won't work on it. If you do, think about adding a paragraph to document it somewhere in the introduction tutorials.