Skip to content

Instantly share code, notes, and snippets.

View vigneswaran-chandrasekaran's full-sized avatar
🤾‍♀️
Ad Astra per Aspera

Vigneswaran Chandrasekaran vigneswaran-chandrasekaran

🤾‍♀️
Ad Astra per Aspera
View GitHub Profile
% 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');
@vigneswaran-chandrasekaran
vigneswaran-chandrasekaran / getting_started_matnwb.m
Created July 5, 2021 14:01
Getting started with MatNWB and reproducing Extracellular Electrophisiology Tutorial
% 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',...
@vigneswaran-chandrasekaran
vigneswaran-chandrasekaran / dict_neurongroup.py
Last active June 2, 2020 17:19
Collector function to get `NeuronGroup` and return dictionary form of all its entities
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
"""