Neuropixels Visual Coding Drifting Grating Phase Information

Hi,

I am doing some work that requires me to know exactly what a particular stimulus appears like on screen. For the static gratings, the phase information is included in the pandas dataframe returned by calling

individualSession.get_stimulus_table()

which allows me to use the method

brainObservatoryMonitor.grating_to_screen(kwargs)

to create a representation of the static grating.

However, the drifting gratings and the ‘gabor’ stimuli only show the values [3644.933333333, 3644.933333333] for each row in the stimulus table, which is not informative to me for understanding what the phase of the grating is in in time. Please let me know how I could find this information.

For the drifting gratings and Gabors, we did not explicitly specify the phase when generating the stimuli, so it must be using the PsychoPy defaults.

According to the GratingStim documentation, the phase of a drifting grating is determined by two values, the phase in x and the phase in y. I believe those are the two numbers you’re getting out of the stimulus table.

I am not entirely sure what units those values represent, but I can do some more digging if it would be helpful.

Hi Josh,

It would be very helpful if I could know what those default values and their units are if possible.

Thanks,
Nick

I think the main issue is that grating_to_screen was only intended to produce static images, so it can’t handle dynamic stimuli like drifting gratings.

We did take some screen captures of the Gabor and drifting gratings on the experimental rigs. Here are the images for the Gabor stimulus: Dropbox

Would these be sufficient for your needs, or do you need to be able to re-generate the stimulus yourself?

Hi Josh,

I’ve actually modified grating to screen to create dynamic stimuli, however I need to at least know the starting phase of the grating in order for that to be accurate. I can infer what comes after that from the temporal frequency and frame rate. If you have screenshots from every possible permutation of location, angle, and grating phase, that would be ok, however I don’t think that’s available.

Here is what we captured for drifting gratings: Dropbox

It should include every combination of temporal frequency and direction that was used. We did not vary the starting phase of the drifting gratings (only the static gratings), so hopefully this gives you the information you need.