Accessing the Allen Cell Types Database on the web

Before we go behind the scenes, we’ll look at a few cells on the Allen Institute's online interface to get a feel for what the data looks like.

  1. Go to http://celltypes.brain-map.org/. Read through “About Electrophysiology” and “About Morphology” to answer questions 1 and 2 in the Data Notebook.

  2. Scroll down to “Download Single Cell Data and Models” and the section “Morphology and Electrophysiology” and click on Electrophysiology Page. This page shows us all of the electrophysiology data for one sample cell.

  3. On the top, you’ll see a Mouse Line, Brain Area, and Layer where this cell comes from. Note them in Table 1.

  4. The Mouse Line tells us the Cre-driver line that was used — in other words, the cells that they targeted had that gene, and therefore they also expressed Cre-recombinase. Go to https://www.ncbi.nlm.nih.gov/gene/ and search for the name of this gene (without -Cre) to answer question 3. This page also gives us some key details about the cell. Note the cell's resting membrane potential in Table 1.

  5. Click through the stimulus sweeps (the colored boxes) to find the first one that elicited an action potential. Record the minimum stimulus amplitude required to elicit an action potential in this cell in Table 1. Note: You should notice that this value is either very close or identical to the rheobase of the cell, as reported on the table on the top. As a reminder, the rheobase is defined as the minimum current needed to elicit an action potential. When the current is below the rheobase, an action potential will never occur regardless of how long the stimulation is.

  6. Click through to a stimulus sweep with a higher current injection. Does the cell adapt to the stimulus? In other words, does the space between spikes increase? Is there a metric here that would help quantify this? Record that metric in Table 1.

  7. Use the dropdown menu on the left to change the stimulus type to “Short square.” Look at how the current injection trace changes -- now, it's a shorter pulse. Record the minimum current needed to elicit an action potential at this stimulus, and answer question 4.

    • Wondering what these 'square' pulses mean? Square simply describes the shape of the stimulus, and it's a common way to inject current into cells. There are more details on the stimuli the Allen used here.

  8. Use the dropdown menu on the left to change the stimulus type to “Noise.” Take a look at the current injection trace to get an idea of what this stimulus looks like. Note the differences between the cell’s response to this stimulus versus the square wave pulses. Answer question 5.

  9. Click on View Morphology on the right, to check out the morphology of this cell. Take note of the distribution of the axon and the dendrites. Close this window.

  10. Click on Cell Feature Search on the top right corner. Here, you can look through other cells in this dataset. Find a cell from human tissue that is in the same Layer and has the same Dendrite Type as the first cell you looked at. Use the data on that page to fill out Table 1.


As you can probably appreciate at this point, pulling all of this data off of the website manually is rather tedious. If we work directly with the dataset, we can get all of these metrics and more. So, let's do that by moving learning about the basics of coding and Jupyter Notebooks in Step 3.

Cell Types Lesson Roadmap

Understand how the data was collected.

Access the Allen Cell Types Database on their website. In this part, you can use the web interface to look at raw electrophysiology recordings and biocytin fills from mouse and human cells.


Learn about the basics of coding & using Jupyter notebooks. If you'd like to learn a bit of Python, this is a great chance to do so!

Analyze data through the Allen Software Development Kit (SDK)