edgeofpy 0.2.0__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: edgeofpy
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Tools for brain criticality estimation, especially for M/EEG
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -41,12 +41,27 @@ Description-Content-Type: text/x-rst
41
41
  EDGE OF PY
42
42
  ==========
43
43
 
44
+ .. image:: https://img.shields.io/pypi/v/edgeofpy.svg
45
+ :target: https://pypi.org/project/edgeofpy/
46
+ :alt: PyPI version
47
+
48
+ .. image:: https://readthedocs.org/projects/edgeofpy/badge/?version=latest
49
+ :target: https://edgeofpy.readthedocs.io/en/latest/
50
+ :alt: Documentation status
51
+
52
+ .. image:: https://github.com/jnobyrne/edgeofpy/actions/workflows/tests.yml/badge.svg
53
+ :target: https://github.com/jnobyrne/edgeofpy/actions/workflows/tests.yml
54
+ :alt: Tests
55
+
44
56
  Package for assessing the distance to criticality in brain dynamics.
45
57
 
58
+ **Documentation:** https://edgeofpy.readthedocs.io
59
+
46
60
  Features
47
61
  --------
48
62
  - Avalanche criticality measures
49
- - Avalanche detection
63
+ - Avalanche detection, from M/EEG signals or spike times, with a
64
+ data-driven (Gaussian-fit) event threshold
50
65
  - Avalanche distribution plotting
51
66
  - Power-law fitting (via `powerlaw <https://github.com/jeffalstott/powerlaw>`_)
52
67
  - Deviation from criticality coefficient (DCC)
@@ -55,9 +70,12 @@ Features
55
70
  - Branching ratios
56
71
  - Susceptibility
57
72
  - Fano factor
73
+ - Phase-randomized surrogates
58
74
 
59
75
  - Edge of chaos measures
60
76
  - 0-1 chaos test
77
+
78
+ - Distance to instability
61
79
  - Lambda max (Dahmen et al., 2019)
62
80
 
63
81
  - Edge of synchrony measures
@@ -85,7 +103,8 @@ Install edgeofpy by running:
85
103
 
86
104
  Documentation
87
105
  -------------
88
- Coming soon.
106
+ The documentation, at https://edgeofpy.readthedocs.io, includes a quick
107
+ start, a user guide, worked examples and the API reference.
89
108
 
90
109
  Requirements
91
110
  ------------
@@ -4,12 +4,27 @@
4
4
  EDGE OF PY
5
5
  ==========
6
6
 
7
+ .. image:: https://img.shields.io/pypi/v/edgeofpy.svg
8
+ :target: https://pypi.org/project/edgeofpy/
9
+ :alt: PyPI version
10
+
11
+ .. image:: https://readthedocs.org/projects/edgeofpy/badge/?version=latest
12
+ :target: https://edgeofpy.readthedocs.io/en/latest/
13
+ :alt: Documentation status
14
+
15
+ .. image:: https://github.com/jnobyrne/edgeofpy/actions/workflows/tests.yml/badge.svg
16
+ :target: https://github.com/jnobyrne/edgeofpy/actions/workflows/tests.yml
17
+ :alt: Tests
18
+
7
19
  Package for assessing the distance to criticality in brain dynamics.
8
20
 
21
+ **Documentation:** https://edgeofpy.readthedocs.io
22
+
9
23
  Features
10
24
  --------
11
25
  - Avalanche criticality measures
12
- - Avalanche detection
26
+ - Avalanche detection, from M/EEG signals or spike times, with a
27
+ data-driven (Gaussian-fit) event threshold
13
28
  - Avalanche distribution plotting
14
29
  - Power-law fitting (via `powerlaw <https://github.com/jeffalstott/powerlaw>`_)
15
30
  - Deviation from criticality coefficient (DCC)
@@ -18,9 +33,12 @@ Features
18
33
  - Branching ratios
19
34
  - Susceptibility
20
35
  - Fano factor
36
+ - Phase-randomized surrogates
21
37
 
22
38
  - Edge of chaos measures
23
39
  - 0-1 chaos test
40
+
41
+ - Distance to instability
24
42
  - Lambda max (Dahmen et al., 2019)
25
43
 
26
44
  - Edge of synchrony measures
@@ -48,7 +66,8 @@ Install edgeofpy by running:
48
66
 
49
67
  Documentation
50
68
  -------------
51
- Coming soon.
69
+ The documentation, at https://edgeofpy.readthedocs.io, includes a quick
70
+ start, a user guide, worked examples and the API reference.
52
71
 
53
72
  Requirements
54
73
  ------------
@@ -4,6 +4,7 @@ dynamics."""
4
4
  from importlib.metadata import version, PackageNotFoundError
5
5
 
6
6
  from edgeofpy.avalanche import (detect_avalanches,
7
+ plot_gaussian_threshold,
7
8
  plot_pdf,
8
9
  plot_cdf,
9
10
  fit_powerlaw,
@@ -12,7 +13,6 @@ from edgeofpy.avalanche import (detect_avalanches,
12
13
  estimate_dcc,
13
14
  shape_collapse_error,
14
15
  dcc_collapse,
15
- dcc_collapse_2,
16
16
  fit_shape_collapse,
17
17
  plot_shape_collapse,
18
18
  avl_repertoire,
@@ -24,10 +24,10 @@ from edgeofpy.avalanche import (detect_avalanches,
24
24
  )
25
25
  from edgeofpy.chaos import (z1_chaos_test,
26
26
  chaos_pipeline,
27
- lambda_max,
28
27
  minmaxsig,
29
28
  schreiber_denoise,
30
29
  )
30
+ from edgeofpy.stability import lambda_max
31
31
  from edgeofpy.synchrony import (pcf,
32
32
  pli,
33
33
  ple,
@@ -50,7 +50,10 @@ from edgeofpy.ising import (fit_pmem,
50
50
  )
51
51
  from edgeofpy import models # noqa: F401 (submodule: eop.models.<name>)
52
52
  from edgeofpy.utils import (binarized_events,
53
+ gaussian_threshold,
54
+ phase_randomize,
53
55
  time_bin_events,
56
+ bin_spikes,
54
57
  lattice_search,
55
58
  )
56
59
 
@@ -61,15 +64,16 @@ except PackageNotFoundError: # not installed, e.g. run from a source checkout
61
64
 
62
65
  __all__ = [
63
66
  # avalanche
64
- 'detect_avalanches', 'plot_pdf', 'plot_cdf', 'fit_powerlaw',
67
+ 'detect_avalanches', 'plot_gaussian_threshold', 'plot_pdf', 'plot_cdf', 'fit_powerlaw',
65
68
  'fit_third_exponent', 'dcc', 'estimate_dcc', 'shape_collapse_error',
66
- 'dcc_collapse', 'dcc_collapse_2', 'fit_shape_collapse',
69
+ 'dcc_collapse', 'fit_shape_collapse',
67
70
  'plot_shape_collapse', 'avl_repertoire',
68
71
  'avl_pattern_dissimilarity', 'avl_branching_ratio', 'branching_ratio',
69
72
  'susceptibility', 'fano_factor',
70
73
  # chaos
71
- 'z1_chaos_test', 'chaos_pipeline', 'lambda_max', 'minmaxsig',
72
- 'schreiber_denoise',
74
+ 'z1_chaos_test', 'chaos_pipeline', 'minmaxsig', 'schreiber_denoise',
75
+ # stability
76
+ 'lambda_max',
73
77
  # synchrony
74
78
  'pcf', 'pli', 'ple', 'complex_phase_relationship', 'phase_locking',
75
79
  'phase_lock_interval', 'global_lability', 'detect_phase_avls',
@@ -78,5 +82,6 @@ __all__ = [
78
82
  'fit_pmem', 'fit_beta', 'sk_diagram', 'metropolis', 'plot_sk',
79
83
  'ht_diagram', 'ising_energy', 'heat_capacity', 'energy_landscape_2d',
80
84
  # utils
81
- 'binarized_events', 'time_bin_events', 'lattice_search',
85
+ 'binarized_events', 'gaussian_threshold', 'phase_randomize',
86
+ 'time_bin_events', 'bin_spikes', 'lattice_search',
82
87
  ]