release_notes.rst 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. *************
  2. Release Notes
  3. *************
  4. Elephant 0.9.0 release notes
  5. ============================
  6. This release is titled to accompany the [2nd Elephant User Workshop](https://www.humanbrainproject.eu/en/education/participatecollaborate/infrastructure-events-trainings/2nd-elephant-user-workshop/)
  7. Viziphant
  8. ---------
  9. Meet Viziphant, the visualization of Elephant analysis methods, at https://viziphant.readthedocs.io/en/latest/. This package provides support to easily plot and visualize the output of Elephant functions in a few lines of code.
  10. Provenance tracking
  11. -------------------
  12. Provenance is becoming a separate direction in Elephant. Many things are still to come, and we started with annotating `time_histogram`, `instantaneous_rate` and `cross_correlation_histogram` outputs to carry the information about the parameters these functions used. This allowed Viziphant, the visualization of Elephant analyses, to look for the `.annotations` dictionary of the output of these function to "understand" how the object has been generated and label the plot axes accordingly.
  13. New functionality and features
  14. ------------------------------
  15. * Time-domain pairwise and conditional pairwise Granger causality measures (https://github.com/NeuralEnsemble/elephant/pull/332, https://github.com/NeuralEnsemble/elephant/pull/359)
  16. * Spike contrast function that measures the synchrony of spike trains (https://github.com/NeuralEnsemble/elephant/pull/354; thanks to @Broxy7 for bringing this in Elephant).
  17. * Revised local variability LvR (https://github.com/NeuralEnsemble/elephant/pull/346) as an alternative to the LV measure.
  18. * Three surrogate methods: Trial-shifting, Bin Shuffling, ISI dithering (https://github.com/NeuralEnsemble/elephant/pull/343).
  19. * Added a new function to generate spike trains: `inhomogeneous_gamma_process` (https://github.com/NeuralEnsemble/elephant/pull/339).
  20. * The output of `instantaneous_rate` function is now a 2D matrix of shape `(time, len(spiketrains))` (https://github.com/NeuralEnsemble/elephant/issues/363). Not only can the users assess the averaged instantaneous rate (`rates.mean(axis=1)`) but also explore how much the instantaneous rate deviates from trial to trial (`rates.std(axis=1)`) (originally asked in https://github.com/NeuralEnsemble/elephant/issues/363).
  21. Python 3 only
  22. -------------
  23. * Python 2.7 and 3.5 support is dropped. You can still however enjoy the features of Elephant v0.9.0 with Python 2.7 or 3.5 by installing Elephant from [this](https://github.com/NeuralEnsemble/elephant/tree/295c6bd7fea196cf9665a78649fafedab5840cfa) commit `pip install git+https://github.com/NeuralEnsemble/elephant@295c6bd7fea196cf9665a78649fafedab5840cfa#egg=elephant[extras]`
  24. * Added Python 3.9 support.
  25. Optimization
  26. ------------
  27. * You have been asking for direct numpy support for years. Added `_t_start`, `_t_stop`, and `_bin_size` attributes of BinnedSpikeTrain are guaranteed to be of the same units and hence are unitless (https://github.com/NeuralEnsemble/elephant/pull/378). It doesn't mean though that you need to care about units on your own: `t_start`, `t_stop`, and `bin_size` properties are still quantities with units. The `.rescale()` method of a BinnedSpikeTrain rescales the internal units to new ones in-place. The following Elephant functions are optimized with unitless BinnedSpikeTrain:
  28. - cross_correlation_histogram
  29. - bin_shuffling (one of the surrogate methods)
  30. - spike_train_timescale
  31. * X4 faster binning and overall BinnedSpikeTrain object creation (https://github.com/NeuralEnsemble/elephant/pull/368).
  32. * `instantaneous_rate` function is vectorized to work with a list of spike train trials rather than computing them in a loop (previously, `for spiketrain in spiketrains; do compute instantaneous_rate(spiketrain); done`), which brought X25 speedup (https://github.com/NeuralEnsemble/elephant/pull/362; thanks to @gyyang for the idea and original implementation).
  33. * Memory-efficient `zscore` function (https://github.com/NeuralEnsemble/elephant/pull/372).
  34. * Don't sort the input array in ISI function (https://github.com/NeuralEnsemble/elephant/pull/371), which reduces function algorithmic time complexity from `O(N logN)` to linear `O(N)`. Now, when the input time array is not sorted, a warning is shown.
  35. * Vectorized Current Source Density `generate_lfp` function (https://github.com/NeuralEnsemble/elephant/pull/358).
  36. Breaking changes
  37. ----------------
  38. * mpi4py package is removed from the extra requirements to allow `pip install elephant[extras]` on machines without MPI installed system-wide. Refer to [MPI support](https://elephant.readthedocs.io/en/latest/install.html#mpi-support) installation page in elephant.
  39. * BinnedSpikeTrain (https://github.com/NeuralEnsemble/elephant/pull/368, https://github.com/NeuralEnsemble/elephant/pull/377):
  40. - previously, when t_start/stop, if set manually, was outside of the shared time interval, only the shared [t_start_shared=max(t_start), t_stop_shared=min(t_stop)] interval was implicitly considered without any warnings. Now an error is thrown with a description on how to fix it.
  41. - removed `lst_input`, `input_spiketrains`, `matrix_columns`, `matrix_rows` (in favor of the new attribute - `shape`), `tolerance`, `is_spiketrain`, `is_binned` attributes from BinnedSpikeTrain class. Part of them are confusing (e.g., `is_binned` was just the opposite of `is_spiketrain`, but one can erroneously think that it's data is clipped to 0 and 1), and part of them - `lst_input`, `input_spiketrains` input data - should not have been saved as attributes of an object in the first place because the input spike trains are not used after the sparse matrix is created.
  42. - now the users can directly access `.sparse_matrix` attribute of BinnedSpikeTrain to do efficient (yet unsafe in general) operations. For this reason, `to_sparse_array()` function, which does not make a copy, as one could think of, is deprecated.
  43. * `instantaneous_rate` function (https://github.com/NeuralEnsemble/elephant/pull/362):
  44. - in case of multiple input spike trains, the output of the instantaneous rate function is (always) a 2D matrix of shape `(time, len(spiketrains))` instead of a pseudo 1D array (previous behavior) of shape `(time, 1)` that contained the instantaneous rate summed across input spike trains;
  45. - in case of multiple input spike trains, the user needs to manually provide the input kernel instead of `auto`, which is set by default, for the reason that it's currently not clear how to estimate the common kernel for a set of spike trains. If you have an idea how to do this, we`d appreciate if you let us know by [getting in touch with us](https://elephant.readthedocs.io/en/latest/get_in_touch.html).
  46. Other changes
  47. -------------
  48. * `waveform_snr` function now directly takes a 2D or 3D waveforms matrix rather than a spike train (deprecated behavior).
  49. * Added a warning in fanofactor function when the input spiketrains vary in their durations (https://github.com/NeuralEnsemble/elephant/pull/341).
  50. * SPADE: New way to count patterns for multiple testing (https://github.com/NeuralEnsemble/elephant/pull/347)
  51. * GPFA renamed 'xsm' -> 'latent_variable' and 'xorth' -> 'latent_variable_orth'
  52. Bug fixes
  53. ---------
  54. * Instantaneous rate arrays were not centered at the origin for spike trains that are symmetric at t=0 with `center_kernel=True` option (https://github.com/NeuralEnsemble/elephant/pull/362).
  55. * The number of discarded spikes that fall into the last bin of a BinnedSpikeTrain object was incorrectly calculated (https://github.com/NeuralEnsemble/elephant/pull/368).
  56. * Fixed index selection in `spike_triggered_phase` (https://github.com/NeuralEnsemble/elephant/pull/382)
  57. * Fixed surrogates bugs:
  58. - `joint-ISI` and `shuffle ISI` output spike trains were not sorted in time (https://github.com/NeuralEnsemble/elephant/pull/364);
  59. - surrogates get arbitrary sampling_rate (https://github.com/NeuralEnsemble/elephant/pull/353), which relates to the provenance tracking issue;
  60. Elephant 0.8.0 release notes
  61. ============================
  62. New features
  63. ------------
  64. * The `parallel` module is a new experimental module (https://github.com/NeuralEnsemble/elephant/pull/307) to run python functions concurrently. Supports native (pythonic) ProcessPollExecutor and MPI. Not limited to Elephant functional.
  65. * Added an optional `refractory_period` argument, set to None by default, to `dither_spikes` function (https://github.com/NeuralEnsemble/elephant/pull/297).
  66. * Added `cdf` and `icdf` functions in Kernel class to correctly estimate the median index, needed for `instantaneous_rate` function in statistics.py (https://github.com/NeuralEnsemble/elephant/pull/313).
  67. * Added an optional `center_kernel` argument, set to True by default (to behave as in Elephant <0.8.0 versions) to `instantaneous_rate` function in statistics.py (https://github.com/NeuralEnsemble/elephant/pull/313).
  68. New tutorials
  69. -------------
  70. * Analysis of Sequences of Synchronous EvenTs (ASSET) tutorial: https://elephant.readthedocs.io/en/latest/tutorials/asset.html
  71. * Parallel module tutorial: https://elephant.readthedocs.io/en/latest/tutorials/parallel.html
  72. Optimization
  73. ------------
  74. * Optimized ASSET runtime by a factor of 10 and more (https://github.com/NeuralEnsemble/elephant/pull/259, https://github.com/NeuralEnsemble/elephant/pull/333).
  75. Python 2.7 and 3.5 deprecation
  76. ------------------------------
  77. Python 2.7 and 3.5 are deprecated and will not be maintained by the end of 2020. Switch to Python 3.6+.
  78. Breaking changes
  79. ----------------
  80. * Naming convention changes (`binsize` -> `bin_size`, etc.) in almost all Elephant functions (https://github.com/NeuralEnsemble/elephant/pull/316).
  81. Elephant 0.7.0 release notes
  82. ============================
  83. Breaking changes
  84. ----------------
  85. * [gpfa] GPFA dimensionality reduction method is rewritten in easy-to-use scikit-learn class style format (https://github.com/NeuralEnsemble/elephant/pull/287):
  86. .. code-block:: python
  87. gpfa = GPFA(bin_size=20*pq.ms, x_dim=8)
  88. results = gpfa.fit_transform(spiketrains, returned_data=['xorth', 'xsm'])
  89. New tutorials
  90. -------------
  91. * GPFA dimensionality reduction method: https://elephant.readthedocs.io/en/latest/tutorials/gpfa.html
  92. * Unitary Event Analysis of coordinated spiking activity: https://elephant.readthedocs.io/en/latest/tutorials/unitary_event_analysis.html
  93. * (Introductory) statistics module: https://elephant.readthedocs.io/en/latest/tutorials/statistics.html
  94. Deprecations
  95. ------------
  96. * **Python 2.7 support will be dropped on Dec 31, 2020.** Please switch to Python 3.6, 3.7, or 3.8.
  97. * [spike train generation] `homogeneous_poisson_process_with_refr_period()`, introduced in v0.6.4, is deprecated and will be deleted in v0.8.0. Use `homogeneous_poisson_process(refractory_period=...)` instead.
  98. * [pandas bridge] pandas\_bridge module is deprecated and will be deleted in v0.8.0.
  99. New features
  100. ------------
  101. * New documentation style, guidelines, tutorials, and more (https://github.com/NeuralEnsemble/elephant/pull/294).
  102. * Python 3.8 support (https://github.com/NeuralEnsemble/elephant/pull/282).
  103. * [spike train generation] Added `refractory_period` flag in `homogeneous_poisson_process()` (https://github.com/NeuralEnsemble/elephant/pull/292) and `inhomogeneous_poisson_process()` (https://github.com/NeuralEnsemble/elephant/pull/295) functions. The default is `refractory_period=None`, meaning no refractoriness.
  104. * [spike train correlation] `cross_correlation_histogram()` supports different t_start and t_stop of input spiketrains.
  105. * [waveform features] `waveform_width()` function extracts the width (trough-to-peak TTP) of a waveform (https://github.com/NeuralEnsemble/elephant/pull/279).
  106. * [signal processing] Added `scaleopt` flag in `pairwise_cross_correlation()` to mimic the behavior of Matlab's `xcorr()` function (https://github.com/NeuralEnsemble/elephant/pull/277). The default is `scaleopt=unbiased` to be consistent with the previous versions of Elephant.
  107. * [spike train surrogates] Joint-ISI dithering method via `JointISI` class (https://github.com/NeuralEnsemble/elephant/pull/275).
  108. Bug fixes
  109. ---------
  110. * [spike train correlation] Fix CCH Border Correction (https://github.com/NeuralEnsemble/elephant/pull/298). Now, the border correction in `cross_correlation_histogram()` correctly reflects the number of bins used for the calculation at each lag. The correction factor is now unity at full overlap.
  111. * [phase analysis] `spike_triggered_phase()` incorrect behavior when the spike train and the analog signal had different time units (https://github.com/NeuralEnsemble/elephant/pull/270).
  112. Performance
  113. -----------
  114. * [spade] SPADE x7 speedup (https://github.com/NeuralEnsemble/elephant/pull/280, https://github.com/NeuralEnsemble/elephant/pull/285, https://github.com/NeuralEnsemble/elephant/pull/286). Moreover, SPADE is now able to handle all surrogate types that are available in Elephant, as well as more types of statistical corrections.
  115. * [conversion] Fast & memory-efficient `covariance()` and Pearson `corrcoef()` (https://github.com/NeuralEnsemble/elephant/pull/274). Added flag `fast=True` by default in both functions.
  116. * [conversion] Use fast fftconvolve instead of np.correlate in `cross_correlation_histogram()` (https://github.com/NeuralEnsemble/elephant/pull/273).
  117. Elephant 0.6.4 release notes
  118. ============================
  119. This release has been made for the "1st Elephant User Workshop" (https://www.humanbrainproject.eu/en/education/participatecollaborate/infrastructure-events-trainings/1st-elephant-user-workshop-accelerate-structured-and-reproducibl).
  120. Main features
  121. -------------
  122. * neo v0.8.0 compatible
  123. New modules
  124. -----------
  125. * GPFA - Gaussian-process factor analysis - dimensionality reduction method for neural trajectory visualization (https://github.com/NeuralEnsemble/elephant/pull/233). _Note: the API could change in the future._
  126. Bug fixes
  127. ---------
  128. * [signal processing] Keep `array_annotations` in the output of signal processing functions (https://github.com/NeuralEnsemble/elephant/pull/258).
  129. * [SPADE] Fixed the calculation of the duration of a pattern in the output (https://github.com/NeuralEnsemble/elephant/pull/254).
  130. * [statistics] Fixed automatic kernel selection yields incorrect values (https://github.com/NeuralEnsemble/elephant/pull/246).
  131. Improvements
  132. ------------
  133. * Vectorized `spike_time_tiling_coefficient()` function - got rid of a double for-loop (https://github.com/NeuralEnsemble/elephant/pull/244)
  134. * Reduced the number of warnings during the tests (https://github.com/NeuralEnsemble/elephant/pull/238).
  135. * Removed unused debug code in `spade/fast_fca.py` (https://github.com/NeuralEnsemble/elephant/pull/249).
  136. * Improved doc string of `covariance()` and `corrcoef()` (https://github.com/NeuralEnsemble/elephant/pull/260).
  137. Elephant 0.6.3 release notes
  138. ============================
  139. July 22nd 2019
  140. The release v0.6.3 is mostly about improving maintenance.
  141. New functions
  142. -------------
  143. * `waveform_features` module
  144. * Waveform signal-to-noise ratio (https://github.com/NeuralEnsemble/elephant/pull/219).
  145. * Added support for Butterworth `sosfiltfilt` - numerically stable (in particular, higher order) filtering (https://github.com/NeuralEnsemble/elephant/pull/234).
  146. Bug fixes
  147. ---------
  148. * Fixed neo version typo in requirements file (https://github.com/NeuralEnsemble/elephant/pull/218)
  149. * Fixed broken docs (https://github.com/NeuralEnsemble/elephant/pull/230, https://github.com/NeuralEnsemble/elephant/pull/232)
  150. * Fixed issue with 32-bit arch (https://github.com/NeuralEnsemble/elephant/pull/229)
  151. Other changes
  152. -------------
  153. * Added issue templates (https://github.com/NeuralEnsemble/elephant/pull/226)
  154. * Single VERSION file (https://github.com/NeuralEnsemble/elephant/pull/231)
  155. Elephant 0.6.2 release notes
  156. ============================
  157. April 23rd 2019
  158. New functions
  159. -------------
  160. * `signal_processing` module
  161. * New functions to calculate the area under a time series and the derivative of a time series.
  162. Other changes
  163. -------------
  164. * Added support to initialize binned spike train representations with a matrix
  165. * Multiple bug fixes
  166. Elephant 0.6.1 release notes
  167. ============================
  168. April 1st 2019
  169. New functions
  170. -------------
  171. * `signal_processing` module
  172. * New function to calculate the cross-correlation function for analog signals.
  173. * `spade` module
  174. * Spatio-temporal spike pattern detection now includes the option to assess significance also based on time-lags of patterns, in addition to patterns size and frequency (referred to as 3D pattern spectrum).
  175. Other changes
  176. -------------
  177. * This release fixes a number of compatibility issues in relation to API breaking changes in the Neo library.
  178. * Fixed error in STTC calculation (spike time tiling coefficient)
  179. * Minor bug fixes
  180. Elephant 0.6.0 release notes
  181. ============================
  182. October 12th 2018
  183. New functions
  184. -------------
  185. * `cell_assembly_detection` module
  186. * New function to detect higher-order correlation structures such as patterns in parallel spike trains based on Russo et al, 2017.
  187. * **wavelet_transform()** function in `signal_prosessing.py` module
  188. * Function for computing wavelet transform of a given time series based on Le van Quyen et al. (2001)
  189. Other changes
  190. -------------
  191. * Switched to multiple `requirements.txt` files which are directly read into the `setup.py`
  192. * `instantaneous_rate()` accepts now list of spiketrains
  193. * Minor bug fixes
  194. Elephant 0.5.0 release notes
  195. ============================
  196. April 4nd 2018
  197. New functions
  198. -------------
  199. * `change_point_detection` module:
  200. * New function to detect changes in the firing rate
  201. * `spike_train_correlation` module:
  202. * New function to calculate the spike time tiling coefficient
  203. * `phase_analysis` module:
  204. * New function to extract spike-triggered phases of an AnalogSignal
  205. * `unitary_event_analysis` module:
  206. * Added new unit test to the UE function to verify the method based on data of a recent [Re]Science publication
  207. Other changes
  208. -------------
  209. * Minor bug fixes
  210. Elephant 0.4.3 release notes
  211. ============================
  212. March 2nd 2018
  213. Other changes
  214. -------------
  215. * Bug fixes in `spade` module:
  216. * Fixed an incompatibility with the latest version of an external library
  217. Elephant 0.4.2 release notes
  218. ============================
  219. March 1st 2018
  220. New functions
  221. -------------
  222. * `spike_train_generation` module:
  223. * **inhomogeneous_poisson()** function
  224. * Modules for Spatio Temporal Pattern Detection (SPADE) `spade_src`:
  225. * Module SPADE: `spade.py`
  226. * Module `statistics.py`:
  227. * Added CV2 (coefficient of variation for non-stationary time series)
  228. * Module `spike_train_correlation.py`:
  229. * Added normalization in **cross-correlation histogram()** (CCH)
  230. Other changes
  231. -------------
  232. * Adapted the `setup.py` to automatically install the spade modules including the compiled `C` files `fim.so`
  233. * Included testing environment for MPI in `travis.yml`
  234. * Changed function arguments in `current_source_density.py` to `neo.AnalogSignal` instead list of `neo.AnalogSignal` objects
  235. * Fixes to travis and setup configuration files
  236. * Fixed bug in ISI function `isi()`, `statistics.py` module
  237. * Fixed bug in `dither_spikes()`, `spike_train_surrogates.py`
  238. * Minor bug fixes
  239. Elephant 0.4.1 release notes
  240. ============================
  241. March 23rd 2017
  242. Other changes
  243. -------------
  244. * Fix in `setup.py` to correctly import the current source density module
  245. Elephant 0.4.0 release notes
  246. ============================
  247. March 22nd 2017
  248. New functions
  249. -------------
  250. * `spike_train_generation` module:
  251. * peak detection: **peak_detection()**
  252. * Modules for Current Source Density: `current_source_density_src`
  253. * Module Current Source Density: `KCSD.py`
  254. * Module for Inverse Current Source Density: `icsd.py`
  255. API changes
  256. -----------
  257. * Interoperability between Neo 0.5.0 and Elephant
  258. * Elephant has adapted its functions to the changes in Neo 0.5.0,
  259. most of the functionality behaves as before
  260. * See Neo documentation for recent changes: http://neo.readthedocs.io/en/latest/whatisnew.html
  261. Other changes
  262. -------------
  263. * Fixes to travis and setup configuration files.
  264. * Minor bug fixes.
  265. * Added module `six` for Python 2.7 backwards compatibility
  266. Elephant 0.3.0 release notes
  267. ============================
  268. April 12st 2016
  269. New functions
  270. -------------
  271. * `spike_train_correlation` module:
  272. * cross correlation histogram: **cross_correlation_histogram()**
  273. * `spike_train_generation` module:
  274. * single interaction process (SIP): **single_interaction_process()**
  275. * compound Poisson process (CPP): **compound_poisson_process()**
  276. * `signal_processing` module:
  277. * analytic signal: **hilbert()**
  278. * `sta` module:
  279. * spike field coherence: **spike_field_coherence()**
  280. * Module to represent kernels: `kernels` module
  281. * Spike train metrics / dissimilarity / synchrony measures: `spike_train_dissimilarity` module
  282. * Unitary Event (UE) analysis: `unitary_event_analysis` module
  283. * Analysis of Sequences of Synchronous EvenTs (ASSET): `asset` module
  284. API changes
  285. -----------
  286. * Function **instantaneous_rate()** now uses kernels as objects defined in the `kernels` module. The previous implementation of the function using the `make_kernel()` function is deprecated, but still temporarily available as `oldfct_instantaneous_rate()`.
  287. Other changes
  288. -------------
  289. * Fixes to travis and readthedocs configuration files.
  290. Elephant 0.2.1 release notes
  291. ============================
  292. February 18th 2016
  293. Other changes
  294. -------------
  295. Minor bug fixes.
  296. Elephant 0.2.0 release notes
  297. ============================
  298. September 22nd 2015
  299. New functions
  300. -------------
  301. * Added covariance function **covariance()** in the `spike_train_correlation` module
  302. * Added complexity pdf **complexity_pdf()** in the `statistics` module
  303. * Added spike train extraction from analog signals via threshold detection the in `spike_train_generation` module
  304. * Added **coherence()** function for analog signals in the `spectral` module
  305. * Added **Cumulant Based Inference for higher-order of Correlation (CuBIC)** in the `cubic` module for correlation analysis of parallel recorded spike trains
  306. API changes
  307. -----------
  308. * **Optimized kernel bandwidth** in `rate_estimation` function: Calculates the optimized kernel width when the paramter kernel width is specified as `auto`
  309. Other changes
  310. -------------
  311. * **Optimized creation of sparse matrices**: The creation speed of the sparse matrix inside the `BinnedSpikeTrain` class is optimized
  312. * Added **Izhikevich neuron simulator** in the `make_spike_extraction_test_data` module
  313. * Minor improvements to the test and continous integration infrastructure