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
from brian2 import * | |
from brian2.utils.stringtools import get_identifiers | |
def collect_NeuronGroup(group): | |
""" | |
Collector function to extract necessary information from NeuronGroup | |
and represent them in dictionary format | |
""" | |
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
% Reproducing code/results of MatNWB Extracellular Electrophisiology | |
% Tutorial [https://www.youtube.com/watch?v=W8t4_quIl1k] | |
% Create NWB object and add general information | |
nwb = NwbFile(... | |
'session_description', 'this is my first mouse experiment',... | |
'identifier', 'MouseDay1',... | |
'session_start_time', datetime(2021, 07, 05, 1, 24, 33),... | |
'general_experimenter', 'Vigneswaran',... | |
'general_institution', 'IITM',... |
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
% Replicating PyNWB version of converting Steinmetz et. al dataset to | |
% NWB format in MatNWB. Source: https://github.com/SteinmetzLab/dataToNWB | |
% add subject information | |
subject = types.core.Subject('age', '77', ... | |
'genotype', 'tetO-G6s x CaMK-tTA', ... | |
'sex', 'F', ... | |
'species', 'Mus musculus', ... | |
'description', 'strain: C57Bl6/J'); |