Created
August 12, 2020 16:28
-
-
Save thesamovar/6b8a1c65b19cb95cdbf21ffb7ff5372b to your computer and use it in GitHub Desktop.
Membrane time constant distribution with Allen SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
from allensdk.core.cell_types_cache import CellTypesCache | |
ctc = CellTypesCache() | |
ephys = ctc.get_ephys_features(dataframe=True) | |
time_constants = ephys.tau.as_matrix() | |
plt.hist(time_constants, bins=np.linspace(0, 100, 40)); | |
plt.xlabel(r'Membrane time constant (ms)') | |
plt.yticks([]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment