Access Stimulus Data for Visual Coding Experiments

Hello! A massive thank you to everyone involved in making these tools and datasets publicly available - they’re an amazing resource!

I was wondering if it’s possible to get access to the raw stimulus frames used in the NeuroPixels Visual Coding experiments? Specifically natural movies one and three, although the other stimuli (or a link to code used to generate them) would be fantastic too. I looked through both the technical whitepaper and the AllenSDK documentation, but didn’t find any reference to accessing the raw stimulus data itself.

Apologies if I’ve missed something obvious, or if this question has been asked before.

Thank you,

Hi Max! Once you’ve set up a cache object, you can get the movie stimulus frames as follows:

movie = cache.get_natural_movie_template(1) # 1 or 3

For the natural scenes, it’s similar:

scene = cache.get_natural_scene_template(0) # 0 - 117

It’s true that these functions are not obvious from the documentation – we’ll work on getting that fixed.

To generate the other stimuli, we either used PsychoPy’s GratingStim or DotStim classes.

1 Like