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.
- ddalab-2.5.0/LICENSE +21 -0
- ddalab-2.5.0/PKG-INFO +46 -0
- ddalab-2.5.0/README.md +26 -0
- ddalab-2.5.0/dda-rs/Cargo.lock +1305 -0
- ddalab-2.5.0/dda-rs/Cargo.toml +66 -0
- ddalab-2.5.0/dda-rs/LICENSE +21 -0
- ddalab-2.5.0/dda-rs/README.md +132 -0
- ddalab-2.5.0/dda-rs/src/bin/ddalab/main.rs +3 -0
- ddalab-2.5.0/dda-rs/src/blocks.rs +320 -0
- ddalab-2.5.0/dda-rs/src/ccd_stats.rs +592 -0
- ddalab-2.5.0/dda-rs/src/cli/args.rs +423 -0
- ddalab-2.5.0/dda-rs/src/cli/commands/batch.rs +505 -0
- ddalab-2.5.0/dda-rs/src/cli/commands/info.rs +95 -0
- ddalab-2.5.0/dda-rs/src/cli/commands/inspect.rs +86 -0
- ddalab-2.5.0/dda-rs/src/cli/commands/mod.rs +21 -0
- ddalab-2.5.0/dda-rs/src/cli/commands/run.rs +591 -0
- ddalab-2.5.0/dda-rs/src/cli/commands/samples.rs +79 -0
- ddalab-2.5.0/dda-rs/src/cli/commands/validate.rs +104 -0
- ddalab-2.5.0/dda-rs/src/cli/commands/variants.rs +56 -0
- ddalab-2.5.0/dda-rs/src/cli/dda_params.rs +659 -0
- ddalab-2.5.0/dda-rs/src/cli/exit_codes.rs +4 -0
- ddalab-2.5.0/dda-rs/src/cli/mod.rs +169 -0
- ddalab-2.5.0/dda-rs/src/cli/output.rs +37 -0
- ddalab-2.5.0/dda-rs/src/document.rs +733 -0
- ddalab-2.5.0/dda-rs/src/engine/dataset.rs +75 -0
- ddalab-2.5.0/dda-rs/src/engine/gpu.rs +427 -0
- ddalab-2.5.0/dda-rs/src/engine/model.rs +157 -0
- ddalab-2.5.0/dda-rs/src/engine/regression_batch.rs +280 -0
- ddalab-2.5.0/dda-rs/src/engine/solver.rs +1002 -0
- ddalab-2.5.0/dda-rs/src/engine/tests.rs +740 -0
- ddalab-2.5.0/dda-rs/src/engine/variant_config.rs +542 -0
- ddalab-2.5.0/dda-rs/src/engine/window.rs +249 -0
- ddalab-2.5.0/dda-rs/src/engine.rs +2014 -0
- ddalab-2.5.0/dda-rs/src/error.rs +27 -0
- ddalab-2.5.0/dda-rs/src/input_io.rs +90 -0
- ddalab-2.5.0/dda-rs/src/io/ascii.rs +390 -0
- ddalab-2.5.0/dda-rs/src/io/bids.rs +196 -0
- ddalab-2.5.0/dda-rs/src/io/brainvision.rs +425 -0
- ddalab-2.5.0/dda-rs/src/io/edf.rs +539 -0
- ddalab-2.5.0/dda-rs/src/io/eeglab.rs +267 -0
- ddalab-2.5.0/dda-rs/src/io/mat.rs +469 -0
- ddalab-2.5.0/dda-rs/src/io/mod.rs +74 -0
- ddalab-2.5.0/dda-rs/src/io/recording.rs +116 -0
- ddalab-2.5.0/dda-rs/src/io/source.rs +318 -0
- ddalab-2.5.0/dda-rs/src/lib.rs +38 -0
- ddalab-2.5.0/dda-rs/src/mmap_utils.rs +13 -0
- ddalab-2.5.0/dda-rs/src/network_motifs.rs +268 -0
- ddalab-2.5.0/dda-rs/src/profiling.rs +107 -0
- ddalab-2.5.0/dda-rs/src/tiles.rs +324 -0
- ddalab-2.5.0/dda-rs/src/types.rs +254 -0
- ddalab-2.5.0/dda-rs/src/variants.rs +359 -0
- ddalab-2.5.0/dda-rs/tests/blocks.rs +660 -0
- ddalab-2.5.0/dda-rs/tests/ccd_stats.rs +142 -0
- ddalab-2.5.0/dda-rs/tests/cli_integration.rs +1188 -0
- ddalab-2.5.0/dda-rs/tests/cli_library.rs +21 -0
- ddalab-2.5.0/dda-rs/tests/conditional_cd.rs +520 -0
- ddalab-2.5.0/dda-rs/tests/document.rs +744 -0
- ddalab-2.5.0/dda-rs/tests/fixture_files.rs +18 -0
- ddalab-2.5.0/dda-rs/tests/fixtures/fixture.bdf +0 -0
- ddalab-2.5.0/dda-rs/tests/fixtures/fixture.csv +501 -0
- ddalab-2.5.0/dda-rs/tests/fixtures/fixture.edf +0 -0
- ddalab-2.5.0/dda-rs/tests/fixtures/fixture.eeg +0 -0
- ddalab-2.5.0/dda-rs/tests/fixtures/fixture.vhdr +19 -0
- ddalab-2.5.0/dda-rs/tests/fixtures/fixture.vmrk +6 -0
- ddalab-2.5.0/dda-rs/tests/fixtures/fixture_eeglab.fdt +0 -0
- ddalab-2.5.0/dda-rs/tests/fixtures/fixture_eeglab.set +0 -0
- ddalab-2.5.0/dda-rs/tests/fixtures/fixture_eeglab_inline.set +0 -0
- ddalab-2.5.0/dda-rs/tests/fixtures/fixture_truncated.edf +0 -0
- ddalab-2.5.0/dda-rs/tests/fixtures/make_eeglab.py +50 -0
- ddalab-2.5.0/dda-rs/tests/fixtures/result_reference.json +96 -0
- ddalab-2.5.0/dda-rs/tests/io_ascii.rs +267 -0
- ddalab-2.5.0/dda-rs/tests/io_ascii_memory.rs +71 -0
- ddalab-2.5.0/dda-rs/tests/io_bids.rs +348 -0
- ddalab-2.5.0/dda-rs/tests/io_brainvision.rs +517 -0
- ddalab-2.5.0/dda-rs/tests/io_edf.rs +477 -0
- ddalab-2.5.0/dda-rs/tests/io_eeglab.rs +147 -0
- ddalab-2.5.0/dda-rs/tests/io_matrix.rs +36 -0
- ddalab-2.5.0/dda-rs/tests/io_source.rs +227 -0
- ddalab-2.5.0/dda-rs/tests/pnas_revision_pass3_equivalence.rs +137 -0
- ddalab-2.5.0/dda-rs/tests/support/mod.rs +431 -0
- ddalab-2.5.0/dda-rs/tests/tiles.rs +318 -0
- ddalab-2.5.0/ddalab-py/.gitignore +5 -0
- ddalab-2.5.0/ddalab-py/Cargo.lock +1285 -0
- ddalab-2.5.0/ddalab-py/Cargo.toml +26 -0
- ddalab-2.5.0/ddalab-py/LICENSE +21 -0
- ddalab-2.5.0/ddalab-py/README.md +26 -0
- ddalab-2.5.0/ddalab-py/src/lib.rs +199 -0
- ddalab-2.5.0/ddalab-py/tests/test_api.py +166 -0
- ddalab-2.5.0/ddalab-py/tests/test_cli.py +26 -0
- ddalab-2.5.0/pyproject.toml +36 -0
- ddalab-2.5.0/python/ddalab/__init__.py +212 -0
- ddalab-2.5.0/python/ddalab/__main__.py +3 -0
- ddalab-2.5.0/python/ddalab/_cli.py +12 -0
- 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.
|