Teaching and Learning with NWB Datasets#

Neuroscience data is big, complex, and often locked behind the doors of individual laboratories. However, with the help of formats such as Neurodata Without Borders, these datasets now have a more standard format and can easily be shared with researchers and learners alike. This online, interactive textbook is designed to empower you to join this effort.

Neurodata Without Borders#

For many, many years in neuroscience, the landscape of file formats has been the wild west. Everyone either uses a format dictated either by their lab or by the equipment they’re using. This poses a huge challenge to data sharing: if you want to collaborate with the lab next door and share data with them, one of the first questions is, “what format is your data in?” While static images taken from a microscope and standard biology lab procedures like western blots are fairly straightforward to share, physiology and behavior data types are much more diverse.

That’s where Neurodata Without Borders (NWB) comes in. NWB is a consortium of researchers who are aiming to standardize neuroscience data on an international scale. The use of this standard dataset format will make sharing and contributing to open source projects easier, ultimately accelerating discovery.

NWB has pioneered a data format called Neurodata Without Borders: Neurophysiology (NWB:N). NWB:N is a standard to share, store, and build analysis tools for neuroscience data. It is built on HDF5 (hierarchical data format), which was designed for large data storage and multi-language accessibility. In other words, it’s good at doing exactly what we need it to do.

Standardized data for education#

A standardized and accessible data format like NWB also opens possibilities for more easily integrating these cutting-edge datasets into the classroom. This online textbook aims to provide interactive and self-guided resources for educators, students, and self-guided learners who would like to use open neuroscience datasets for research and/or teaching. Within, you’ll find tutorials in the form of interactive Python notebooks that will enable you to wrangle and analyze NWB datasets. At the end of each chapter, there are problem sets so that you can test and extend your skills.

Along the way, we’ll point you towards the prolific and tremendous documentation that the NWB team has already put together for you, for whenever you’re ready to learn more.

Read more about the need for data standardization in neuroscience and the NWB format:


Using this book#

This book is designed for educators, students, and self-guided learners who would like to work with NWB datasets. It expects that you have some knowledge of Python, though Data Science in Python will give you a refresher on the most pertinent information, if you need it. Throughout the book, you’ll also find many recommendations for places to learn more.

We recommend interacting with the content provided here via the Dandihub by using the rocket icon in the top right corner. Alternatively, you can launch any of these notebooks in either Google Colab. There’s much more information in Using this Book about how to set up your coding environment and interact with this textbook.

Content outline#

The introduction will set you up for success with options for interacting with these materials and some technical environment setup.

Data Science in Python reviews some of the packages, data structures, and coding skills that we’ll use throughout the rest of the book. You are welcome to skip this chapter if you’re very comfortable in Python.

The lessons themselves are organized into two groups: one that interacts with “native NWB” format using the pyNWB package, and a second that interacts with the Allen Institute for Brain Science data via the allenSDK. Each of these lessons are self-contained and can be completed out of order, depending on which type of data you’re most interested in working with.

There is a final, growing group of lessons called Greatest Hits in which users can re-create figures from published scientific papers using their NWB-formatted data.


About the nwb4edu project#

Authors#

This book was authored and edited by Ashley Juavinett. It was originally constructed and drafted by Victor Magdaleno. Thanks also to Tommy Lee for his careful copyediting of the book.

Contribute#

We are actively looking for individuals who would like to contribute a lesson plan here! In particular, we are interested in building out lesson plans to re-create figures from exciting neuroscience papers. If you have an idea or would like to get involved, please email Ashley Juavinett ajuavine(at)ucsd(dot)edu.

Support#

Kavli Logo

This work is supported by a Kavli Foundation Seed Grant meant to increase the access to Neurodata Without Borders datasets.


Kavli Logo

Many thanks to the NWB team, especially Ben Dichter, for their feedback and input.

License#

This work is distributed under a CC-BY-SA-4.0 license. You are free to use and adapt these resources, but if you generate a derivative of these resources, they should be distributed with a similar license.