ddalab 2.5.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.
Files changed (94) hide show
  1. ddalab-2.5.0/LICENSE +21 -0
  2. ddalab-2.5.0/PKG-INFO +46 -0
  3. ddalab-2.5.0/README.md +26 -0
  4. ddalab-2.5.0/dda-rs/Cargo.lock +1305 -0
  5. ddalab-2.5.0/dda-rs/Cargo.toml +66 -0
  6. ddalab-2.5.0/dda-rs/LICENSE +21 -0
  7. ddalab-2.5.0/dda-rs/README.md +132 -0
  8. ddalab-2.5.0/dda-rs/src/bin/ddalab/main.rs +3 -0
  9. ddalab-2.5.0/dda-rs/src/blocks.rs +320 -0
  10. ddalab-2.5.0/dda-rs/src/ccd_stats.rs +592 -0
  11. ddalab-2.5.0/dda-rs/src/cli/args.rs +423 -0
  12. ddalab-2.5.0/dda-rs/src/cli/commands/batch.rs +505 -0
  13. ddalab-2.5.0/dda-rs/src/cli/commands/info.rs +95 -0
  14. ddalab-2.5.0/dda-rs/src/cli/commands/inspect.rs +86 -0
  15. ddalab-2.5.0/dda-rs/src/cli/commands/mod.rs +21 -0
  16. ddalab-2.5.0/dda-rs/src/cli/commands/run.rs +591 -0
  17. ddalab-2.5.0/dda-rs/src/cli/commands/samples.rs +79 -0
  18. ddalab-2.5.0/dda-rs/src/cli/commands/validate.rs +104 -0
  19. ddalab-2.5.0/dda-rs/src/cli/commands/variants.rs +56 -0
  20. ddalab-2.5.0/dda-rs/src/cli/dda_params.rs +659 -0
  21. ddalab-2.5.0/dda-rs/src/cli/exit_codes.rs +4 -0
  22. ddalab-2.5.0/dda-rs/src/cli/mod.rs +169 -0
  23. ddalab-2.5.0/dda-rs/src/cli/output.rs +37 -0
  24. ddalab-2.5.0/dda-rs/src/document.rs +733 -0
  25. ddalab-2.5.0/dda-rs/src/engine/dataset.rs +75 -0
  26. ddalab-2.5.0/dda-rs/src/engine/gpu.rs +427 -0
  27. ddalab-2.5.0/dda-rs/src/engine/model.rs +157 -0
  28. ddalab-2.5.0/dda-rs/src/engine/regression_batch.rs +280 -0
  29. ddalab-2.5.0/dda-rs/src/engine/solver.rs +1002 -0
  30. ddalab-2.5.0/dda-rs/src/engine/tests.rs +740 -0
  31. ddalab-2.5.0/dda-rs/src/engine/variant_config.rs +542 -0
  32. ddalab-2.5.0/dda-rs/src/engine/window.rs +249 -0
  33. ddalab-2.5.0/dda-rs/src/engine.rs +2014 -0
  34. ddalab-2.5.0/dda-rs/src/error.rs +27 -0
  35. ddalab-2.5.0/dda-rs/src/input_io.rs +90 -0
  36. ddalab-2.5.0/dda-rs/src/io/ascii.rs +390 -0
  37. ddalab-2.5.0/dda-rs/src/io/bids.rs +196 -0
  38. ddalab-2.5.0/dda-rs/src/io/brainvision.rs +425 -0
  39. ddalab-2.5.0/dda-rs/src/io/edf.rs +539 -0
  40. ddalab-2.5.0/dda-rs/src/io/eeglab.rs +267 -0
  41. ddalab-2.5.0/dda-rs/src/io/mat.rs +469 -0
  42. ddalab-2.5.0/dda-rs/src/io/mod.rs +74 -0
  43. ddalab-2.5.0/dda-rs/src/io/recording.rs +116 -0
  44. ddalab-2.5.0/dda-rs/src/io/source.rs +318 -0
  45. ddalab-2.5.0/dda-rs/src/lib.rs +38 -0
  46. ddalab-2.5.0/dda-rs/src/mmap_utils.rs +13 -0
  47. ddalab-2.5.0/dda-rs/src/network_motifs.rs +268 -0
  48. ddalab-2.5.0/dda-rs/src/profiling.rs +107 -0
  49. ddalab-2.5.0/dda-rs/src/tiles.rs +324 -0
  50. ddalab-2.5.0/dda-rs/src/types.rs +254 -0
  51. ddalab-2.5.0/dda-rs/src/variants.rs +359 -0
  52. ddalab-2.5.0/dda-rs/tests/blocks.rs +660 -0
  53. ddalab-2.5.0/dda-rs/tests/ccd_stats.rs +142 -0
  54. ddalab-2.5.0/dda-rs/tests/cli_integration.rs +1188 -0
  55. ddalab-2.5.0/dda-rs/tests/cli_library.rs +21 -0
  56. ddalab-2.5.0/dda-rs/tests/conditional_cd.rs +520 -0
  57. ddalab-2.5.0/dda-rs/tests/document.rs +744 -0
  58. ddalab-2.5.0/dda-rs/tests/fixture_files.rs +18 -0
  59. ddalab-2.5.0/dda-rs/tests/fixtures/fixture.bdf +0 -0
  60. ddalab-2.5.0/dda-rs/tests/fixtures/fixture.csv +501 -0
  61. ddalab-2.5.0/dda-rs/tests/fixtures/fixture.edf +0 -0
  62. ddalab-2.5.0/dda-rs/tests/fixtures/fixture.eeg +0 -0
  63. ddalab-2.5.0/dda-rs/tests/fixtures/fixture.vhdr +19 -0
  64. ddalab-2.5.0/dda-rs/tests/fixtures/fixture.vmrk +6 -0
  65. ddalab-2.5.0/dda-rs/tests/fixtures/fixture_eeglab.fdt +0 -0
  66. ddalab-2.5.0/dda-rs/tests/fixtures/fixture_eeglab.set +0 -0
  67. ddalab-2.5.0/dda-rs/tests/fixtures/fixture_eeglab_inline.set +0 -0
  68. ddalab-2.5.0/dda-rs/tests/fixtures/fixture_truncated.edf +0 -0
  69. ddalab-2.5.0/dda-rs/tests/fixtures/make_eeglab.py +50 -0
  70. ddalab-2.5.0/dda-rs/tests/fixtures/result_reference.json +96 -0
  71. ddalab-2.5.0/dda-rs/tests/io_ascii.rs +267 -0
  72. ddalab-2.5.0/dda-rs/tests/io_ascii_memory.rs +71 -0
  73. ddalab-2.5.0/dda-rs/tests/io_bids.rs +348 -0
  74. ddalab-2.5.0/dda-rs/tests/io_brainvision.rs +517 -0
  75. ddalab-2.5.0/dda-rs/tests/io_edf.rs +477 -0
  76. ddalab-2.5.0/dda-rs/tests/io_eeglab.rs +147 -0
  77. ddalab-2.5.0/dda-rs/tests/io_matrix.rs +36 -0
  78. ddalab-2.5.0/dda-rs/tests/io_source.rs +227 -0
  79. ddalab-2.5.0/dda-rs/tests/pnas_revision_pass3_equivalence.rs +137 -0
  80. ddalab-2.5.0/dda-rs/tests/support/mod.rs +431 -0
  81. ddalab-2.5.0/dda-rs/tests/tiles.rs +318 -0
  82. ddalab-2.5.0/ddalab-py/.gitignore +5 -0
  83. ddalab-2.5.0/ddalab-py/Cargo.lock +1285 -0
  84. ddalab-2.5.0/ddalab-py/Cargo.toml +26 -0
  85. ddalab-2.5.0/ddalab-py/LICENSE +21 -0
  86. ddalab-2.5.0/ddalab-py/README.md +26 -0
  87. ddalab-2.5.0/ddalab-py/src/lib.rs +199 -0
  88. ddalab-2.5.0/ddalab-py/tests/test_api.py +166 -0
  89. ddalab-2.5.0/ddalab-py/tests/test_cli.py +26 -0
  90. ddalab-2.5.0/pyproject.toml +36 -0
  91. ddalab-2.5.0/python/ddalab/__init__.py +212 -0
  92. ddalab-2.5.0/python/ddalab/__main__.py +3 -0
  93. ddalab-2.5.0/python/ddalab/_cli.py +12 -0
  94. ddalab-2.5.0/python/ddalab/py.typed +0 -0
ddalab-2.5.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 DDALAB Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
ddalab-2.5.0/PKG-INFO ADDED
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.4
2
+ Name: ddalab
3
+ Version: 2.5.0
4
+ Classifier: Development Status :: 5 - Production/Stable
5
+ Classifier: Intended Audience :: Science/Research
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Programming Language :: Rust
8
+ Classifier: Topic :: Scientific/Engineering
9
+ Requires-Dist: numpy>=1.22
10
+ License-File: LICENSE
11
+ Summary: Delay differential analysis of neurophysiological recordings: the ddalab command line and Python library
12
+ Keywords: dda,delay-differential,eeg,ieeg,time-series
13
+ License-Expression: MIT
14
+ Requires-Python: >=3.9
15
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
16
+ Project-URL: Homepage, https://sdraeger.github.io/DDALAB/
17
+ Project-URL: Issues, https://github.com/sdraeger/DDALAB/issues
18
+ Project-URL: Repository, https://github.com/sdraeger/DDALAB
19
+
20
+ # ddalab
21
+
22
+ Delay differential analysis (DDA) of EEG, iEEG and other multichannel recordings, from
23
+ [DDALAB](https://github.com/sdraeger/DDALAB). One install gives the `ddalab` command line and the `ddalab` Python library,
24
+ which share one Rust engine.
25
+
26
+ ```sh
27
+ pip install ddalab # or: uv tool install ddalab, pipx install ddalab
28
+ uvx ddalab run --file recording.edf
29
+ ```
30
+
31
+ ```python
32
+ import ddalab
33
+
34
+ result = ddalab.run("sub-01_eeg.edf", variants=["ST", "CT"], wl=200, ws=100)
35
+ result.variants["ST"].q # NumPy array, (channels, windows)
36
+ result.window_centers # seconds
37
+ result.save("result.json") # the document `ddalab run -o result.json` writes
38
+
39
+ recording = ddalab.read("sub-01_eeg.edf") # data (channels, samples) in SI units, sfreq, ch_names, events
40
+ ddalab.run(recording.data, sfreq=recording.sfreq, ch_names=recording.ch_names)
41
+ ddalab.run(raw) # an MNE Raw
42
+ ```
43
+
44
+ Parameters left out take the defaults of `ddalab run`; `ddalab run --help` describes each one. See the
45
+ [DDALAB README](https://github.com/sdraeger/DDALAB#readme) for the web app and the formats.
46
+
ddalab-2.5.0/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # ddalab
2
+
3
+ Delay differential analysis (DDA) of EEG, iEEG and other multichannel recordings, from
4
+ [DDALAB](https://github.com/sdraeger/DDALAB). One install gives the `ddalab` command line and the `ddalab` Python library,
5
+ which share one Rust engine.
6
+
7
+ ```sh
8
+ pip install ddalab # or: uv tool install ddalab, pipx install ddalab
9
+ uvx ddalab run --file recording.edf
10
+ ```
11
+
12
+ ```python
13
+ import ddalab
14
+
15
+ result = ddalab.run("sub-01_eeg.edf", variants=["ST", "CT"], wl=200, ws=100)
16
+ result.variants["ST"].q # NumPy array, (channels, windows)
17
+ result.window_centers # seconds
18
+ result.save("result.json") # the document `ddalab run -o result.json` writes
19
+
20
+ recording = ddalab.read("sub-01_eeg.edf") # data (channels, samples) in SI units, sfreq, ch_names, events
21
+ ddalab.run(recording.data, sfreq=recording.sfreq, ch_names=recording.ch_names)
22
+ ddalab.run(raw) # an MNE Raw
23
+ ```
24
+
25
+ Parameters left out take the defaults of `ddalab run`; `ddalab run --help` describes each one. See the
26
+ [DDALAB README](https://github.com/sdraeger/DDALAB#readme) for the web app and the formats.