singlecell_input_mapperevoked_PSTH_from_spike_times

evoked_PSTH_from_spike_times

Create PSTHs from spike times.

Attention

This module is specific to the data gathering process and file formats used by the Oberlaender lab in Bonn. If you are in the process of adapting this module to your own data, please focus on the output format of each method, rather than trying to apply these blindly to your files.

Functions

create_average_celltype_PSTH_from_clusters(cellTypeFolder, outFileName)

Loads cluster recording files and writes out the average ongoing activity for a given cell type.

create_evoked_PSTH(spikeTimesName, cellType, ongoingRate, outFileName)

Reads in spike times and creates a PSTH for evoked activity for each whisker.

load_spike_times(spikeTimesName)

Reads in .cluster files containing spike time recordings

load_cluster_trials(fname)

Reads in a cluster file and returns a dictionary with the spike times for each trial.

scan_directory(path, fnames, suffix)

Recursively scans a directory for files with a specific suffix.