Loader class for rBCBG results (in respective files)¶
- class analyseur.rbcbg.loader.CommonLoader(full_filepath=' ')[source]¶
This is the parent class for
LoadRates- Instantiated with the full file path
sets atrributes: full_filepath, filename
Contains instance method
get_region_name()
- class analyseur.rbcbg.loader.LoadRates(full_filepath=' ')[source]¶
Loads the csv file containing firing rates for all the neurons in a particular nucleus and returns the firing rates (average across all channels) and associated time in seconds by calling
get_mean_rates().Methods
Argument
no arguments (access instantiated attribute)
no arguments (access instantiated attribute)
no arguments (access instantiated attribute)
no arguments (access instantiated attribute)
no arguments (access instantiated attribute)
Use Cases¶
1. Pre-requisites¶
1.1. Import Modules and Instantiate¶
from analyseur.rbcbg.loader import LoadRates loadFR = LoadRates("GPiSNr_model_9_percent_0.csv")
2. Cases¶
2.1. Load file and get the firing rates¶
t_sec, rates_Hz = loadFR.get_rates() t_sec, rates_Hz = loadFR.get_mean_rates()
2.2. Extract the nucleus name¶
nuc = loadFR.extract_nucleus_name()
2.3. Extract the model ID¶
modelID = loadFR.extract_modelID()
2.4. Extract the disinhibition percentage¶
pc = loadFR.extract_percentage()
- extract_nucleus_name()[source]¶
Extracts <nucleus> name from <nucleus>_model_<ID>_percent_<value>.csv