Skip to content

Commit a17185e

Browse files
committed
Update readme and version
1 parent 9056516 commit a17185e

2 files changed

Lines changed: 47 additions & 10 deletions

File tree

README.md

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,76 @@
11
# Evoked Response Detection
2-
A python package and docker application for the automatic detection of evoked responses in CCEP data
2+
A python package and docker application for the automatic detection of evoked responses in SPES/CCEP data
33

44
## Usage
55

6+
### Docker
7+
68
To launch an instance of the container and analyse data in BIDS format, type:
79

810
```
9-
$ docker run multimodalneuro/n1detect bids_dir output_dir [--participant_label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]]
11+
$ docker run multimodalneuro/n1detect <bids_dir> <output_dir> [--participant_label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]]
1012
```
1113
For example, to run an analysis, type:
1214

1315
```
1416
$ docker run -ti --rm \
15-
-v /path/to/local/bids/input/dataset/:/data \
17+
-v /path/to/local/bids_input/dataset/:/data \
1618
-v /path/to/local/output/:/output \
1719
multimodalneuro/n1detect /data /output --participant_label 01 --skip_bids_validator
1820
```
1921

22+
23+
### Python
24+
25+
1. First install ERdetect, in the command-line run:
26+
```
27+
pip install erdetect
28+
```
29+
30+
2a. Run directly in a python script:
31+
```
32+
import erdetect
33+
erdetect.process('/path/to/bids_input/dataset/', '/path/to/output/')
34+
```
35+
36+
2b. Run from a windows/mac/unix commandline:
37+
```
38+
python -m erdetect <bids_dir> <output_dir>/ [--participant_label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]]
39+
```
40+
41+
2042
## Configure detection
2143
To adjust the preprocessing, evoked response detection and visualization settings, a JSON file can be passed using the ```--config_filepath [JSON_FILEPATH]``` parameter.
2244
An example JSON of the standard settings has the following content:
2345
```
2446
{
47+
"preprocess": {
48+
"high_pass": false,
49+
"line_noise_removal": "off",
50+
"early_re_referencing": {
51+
"enabled": false,
52+
"method": "CAR",
53+
"stim_excl_epoch": [-1.0, 2.0]
54+
}
55+
},
56+
2557
"trials": {
26-
"trial_epoch": [-1.0, 3.0],
58+
"trial_epoch": [-1.0, 2.0],
2759
"out_of_bounds_handling": "first_last_only",
28-
"baseline_epoch": [-1.0, -0.1],
60+
"baseline_epoch": [-0.5, -0.02],
2961
"baseline_norm": "median",
3062
"concat_bidirectional_pairs": true,
3163
"minimum_stimpair_trials": 5
3264
},
3365
3466
"channels": {
35-
"types": ["ECOG", "SEEG", "DBS"]
67+
"measured_types": ["ECOG", "SEEG", "DBS"],
68+
"stim_types": ["ECOG", "SEEG", "DBS"]
3669
},
3770
3871
"detection": {
72+
"negative": true,
73+
"positive": false,
3974
"peak_search_epoch": [ 0, 0.5],
4075
"response_search_epoch": [ 0.009, 0.09],
4176
"method": "std_base",
@@ -46,15 +81,17 @@ An example JSON of the standard settings has the following content:
4681
},
4782
4883
"visualization": {
84+
"negative": true,
85+
"positive": false,
4986
"x_axis_epoch": [-0.2, 1],
5087
"blank_stim_epoch": [-0.015, 0.0025],
51-
"generate_electrode_images": false,
52-
"generate_stimpair_images": false,
88+
"generate_electrode_images": true,
89+
"generate_stimpair_images": true,
5390
"generate_matrix_images": true
5491
}
5592
}
5693
```
57-
For more information the settings...
94+
5895

5996
## Acknowledgements
6097

erdetect/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.1"
1+
__version__ = "1.0.2"

0 commit comments

Comments
 (0)