Complete API#

Reference to the complete Syncopy API

syncopy Package#


Print message once: do not spam message n times during all n worker imports.


definetrial(obj[, trialdefinition, pre, ...])

(Re-)define trials of a Syncopy data object

selectdata(data[, trials, channel, ...])

Create a new Syncopy object from a selection

show(data[, squeeze])

Show (partial) contents of Syncopy object


Create a copy of the entire Syncopy object data on disk

load_ft_raw(filename[, list_only, ...])

Imports raw time-series data from Field Trip into potentially multiple AnalogData objects, one for each structure found within the MAT-file.

load_tdt(data_path[, start_code, end_code, ...])

Imports TDT time series data and meta-information into a single AnalogData object.

load_nwb(filename[, memuse, container])

Read contents of NWB files

cleanup([older_than, interactive])

Delete old files in temporary Syncopy folder


Clear Syncopy objects from memory

load(filename[, tag, dataclass, checksum, ...])

Load Syncopy data object(s) from disk

save(out[, container, tag, filename, overwrite])

Save Syncopy data object to disk


Parse input arguments of obj and return dictionary

freqanalysis(data[, method, output, ...])

Perform (time-)frequency analysis of Syncopy AnalogData objects

connectivityanalysis(data[, method, ...])

Perform connectivity analysis of Syncopy SpectralData OR directly AnalogData objects

spike_psth(data[, binsize, output, latency, ...])

Peristimulus time histogram

timelockanalysis(data[, latency, ...])

Average, variance and covariance for AnalogData objects across trials.

mean(spy_data, dim[, keeptrials, parallel, ...])

Calculates the average along arbitrary dimensions of a Syncopy data object spy_data.

std(spy_data, dim[, keeptrials, parallel, ...])

Calculates the standard deviation along arbitrary dimensions of a Syncopy data object spy_data.

var(spy_data, dim[, keeptrials, parallel, ...])

Calculates the variance along arbitrary dimensions of a Syncopy data object spy_data.

median(spy_data, dim[, keeptrials, ...])

Calculates the median along arbitrary dimensions of a Syncopy data object spy_data.

itc(spec_data[, select])

Calculates the inter trial coherence for a SpectralData spec_data object, the input spectrum needs to be complex.

singlepanelplot(data, **show_kwargs)

Plot Syncopy data in a single panel

multipanelplot(data, **show_kwargs)

Plot Syncopy data in multiple panels

preprocessing(data[, filter_class, ...])

Preprocessing of time continuous raw data with IIR and FIR filters

resampledata(data[, resamplefs, method, ...])

Performs resampling or downsampling of AnalogData objects, representing uniformly sampled time series data.


AnalogData([data, filename, ...])

Multi-channel, uniformly-sampled, analog (real float) data

SpectralData([data, filename, ...])

Multi-channel, real or complex spectral data

CrossSpectralData([data, filename, ...])

Multi-channel real or complex spectral connectivity data

TimeLockData([data, filename, ...])

Multi-channel, uniformly-sampled, time-locked data.

SpikeData([data, filename, trialdefinition, ...])

Spike times of multi- and/or single units

EventData([data, filename, trialdefinition, ...])

Timestamps and integer codes of experimental events

TrialIndexer(data_object, idx_list)

StructDict(*args, **kwargs)

Child-class of dict for emulating MATLAB structs

Class Inheritance Diagram#

Inheritance diagram of syncopy.datatype.continuous_data.AnalogData, syncopy.datatype.continuous_data.SpectralData, syncopy.datatype.continuous_data.CrossSpectralData, syncopy.datatype.continuous_data.TimeLockData, syncopy.datatype.discrete_data.SpikeData, syncopy.datatype.discrete_data.EventData, syncopy.datatype.util.TrialIndexer,