-
Notifications
You must be signed in to change notification settings - Fork 0
/
data_processing_annotations.py
50 lines (43 loc) · 1.08 KB
/
data_processing_annotations.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"""Annotate artefacts in data."""
import os
import sys
from pathlib import Path
cd_path = Path(__file__).absolute().parent.parent
sys.path.append(os.path.join(cd_path, "coherence"))
from coh_preprocess_data import preprocessing
from coh_view_data import annotate_data
FOLDERPATH_DATA = "Path_to\\Data"
FOLDERPATH_PREPROCESSING = "Path_to\\Project\\Preprocessing"
DATASET = "BIDS_01_Berlin_Neurophys" # var
ANALYSIS = "for_annotations"
SETTINGS = "annotation"
SUBJECT = "EL006" # var
SESSION = "EcogLfpMedOff01" # var
TASK = "Rest" # var
ACQUISITION = "StimOff" # var
RUN = "1" # var
SHOW_ANNOTATIONS = True
if __name__ == "__main__":
preprocessed = preprocessing(
FOLDERPATH_DATA,
FOLDERPATH_PREPROCESSING,
DATASET,
ANALYSIS,
SETTINGS,
SUBJECT,
SESSION,
TASK,
ACQUISITION,
RUN,
)
annotate_data(
preprocessed,
FOLDERPATH_PREPROCESSING,
DATASET,
SUBJECT,
SESSION,
TASK,
ACQUISITION,
RUN,
load_annotations=SHOW_ANNOTATIONS,
)