spikeAnalysis_utils.construct_artefact_free_edf_signal(sig_dirpath, interest_csv_filepath, sep=';', out_dirpath=[])¶From a csv file containing the periods of interest (free of artefacts), construct an EDF file without the artefact periods. The output files are then synchronized with the SpykingCircus spike times.
| Parameters: |
|
|---|
spikeAnalysis_utils.createuniquedir(dirpath)¶Create a unique directory from a path. If …/…/dir_name already exists, …/…/dir_name_2 is returned.
| Parameters: |
|
|---|---|
| Returns: |
|
spikeAnalysis_utils.find_original_time(x_target, filename, keep_start, keep_end)¶From the Spyking-Circus spike time, get the original time in the original EEG file. This EEG file was first cut
to remove artefacts. Start end end time of artefact-free periods are stored in arguments keep_start and
keep_end. Multiples files may have been used to do the spike-sorting, thus filename contains the filename
for each artefact-free period.
| Parameters: |
|
|---|---|
| Returns: |
|