Skip to content

qualified-self/data-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Qualified Self data analysis tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages