Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.07 KB

File metadata and controls

31 lines (25 loc) · 1.07 KB

Data analysis tools

Dependencies

Python libraries:

  • numpy
  • scipy
  • pyedflib
  • biosppy

Example

Step 1 : Extract a set of channels from a pre-aligned BDF file to generate one file per channel

python preprocess_experiment.py myconfigfile.json -i input_folder -o output_folder

This will generate files for the different signals described in myconfigfile.json and put them in output_folder. Name format: output_folder/data_<label>_<channel>.<format>

Step 2 : Perform cluster phase analysis on files.

python generate_cluster_phase.py myconfigfile.json -i output_folder -o output_folder

This will take the files generated by "preprocess_experiment.py" and perform cluster phase analysis on them and generate data for them. Name format: output_folder/data_<label>_<channel>_cluster_<starttime>-<endtime>.<format>

Step 3 : Generate plots from cluster phase files.

python plot_cluster_phase.py myconfigfile.json -i output_folder -o output_folder -P pdf

This will take the files generated by "generate_cluster_phase.py" and produce PDF graphics out of them.