Skip to content

Instantly share code, notes, and snippets.

@thesamovar
Created August 12, 2020 16:28
Show Gist options
  • Save thesamovar/6b8a1c65b19cb95cdbf21ffb7ff5372b to your computer and use it in GitHub Desktop.
Save thesamovar/6b8a1c65b19cb95cdbf21ffb7ff5372b to your computer and use it in GitHub Desktop.
Membrane time constant distribution with Allen SDK
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