Package overview

gphys-package

Analyse electrophysiology data acquired by Neuromatic / Igor Pro

Read/plot ephys data

PlotRasterFromSweeps() plot(<spiketimes>)

Make a raster plot from a set of Nclamp sweeps recording odour responses

PlotOdourResponseFromSpikes()

Boxplot of spikes within a window (optionally less a baseline)

CollectSpikesFromSweeps()

Read in Igor Pro exported text file of Nclamp spike times

AddLinesToRasterPlot()

Add eg voltage traces to existing spike raster plot

MakeAverageWaves()

Make average (analogue) waves that match a spiketimes object

IgorWavesForSpikes()

Find the Igor waves matching a set of spikes (even if shuffled)

Summarising responses

OdourResponseFromSpikes()

Produce table of spiking responses (optionally subtracting baseline)

lifetime_sparseness()

Calculate lifetime sparseness according to Olsen et al. 2008

Odour delivery information

read.odd()

Read in the ODD text file describing odour presentation sequence

fix.odd()

Fix the odour labels in an odd config

Spike trains

as.repeatedTrain()

Generic function to convert spikes to STAR as.repeatedTrain objects

spiketimes()

Make spiketimes object (spike times + stimulus info) from list of dataframes

split(<spiketimes>)

Split a spiketimes object with multiple repeats into list with one entry per repeat

merge(<spiketimes>)

Merge two spiketimes lists with different ODD configs

divide()

Divide spiketimes object with multiple repeats into list with one entry per repeat

is.spiketimes()

Test if object is of class spiketimes

subset(<spiketimes>)

Subset spiketimes object to contain only sweeps for an odour subset

`[`(<spiketimes>)

Extract one or more spiketimes objects as a new spiketimes list

`+`(<spiketimes>)

Combine multiple compatible spiketimes series (to plot as single raster)

Time series helper functions/methods

smooth_decimate()

Boxcar smooth and decimate a time series

scale(<ts>)

Rescale the y values of a (multi-)time series (ts) object

mean(<mts>)

Take the mean of all the columns in a multi-time series (mts) object

tsp.nclamppxp()

Get time series properties for an Nclamp pxp file

tsp.psth()

Find start, end and frequency of a STAR psth object Checks that it is regularly sampled

PSTH helper functions/methods

These help interact with STAR package smoothed peristimulus time histogram objects

smpsth()

Generate smooth PSTHs for a set of spike trains

`[`(<mpsth>)

Extract one or more psth objects to make a new mpsth list

as.ts(<mpsth>)

Convert a multi-psth list into a (multi) time series object

as.ts(<psth>)

Convert a STAR psth into a (multi) time series object

as.mpsth()

Convert a list of STAR psth objects into an mpsth object

plot(<mpsth>)

Plot PSTHs for multiple neurons (or multiple stimuli)

Miscellaneous utility functions

finder_colour()

Query the colour label of a file in the MacOS X Finder

finder_colour_fast()

Query the colour label of a file in the MacOS X Finder

set_finder_colour()

Set the colour label of a file in the MacOS X Finder See http://stackoverflow.com/questions/2435580/tagging-files-with-colors-in-os-x-finder-from-shell-scripts