___________________________________________________________________________________________________
-------------------------------------- APPENDIX: source code --------------------------------------
The classification of epileptogenic tissue after electrical stimulation using machine learning
Zuzana Formánková [203660]
___________________________________________________________________________________________________
---------------------------------------------------------------------------------------------------
This repository contains the source code for my thesis. The code is organized into the following structure:

FOLDERS:
>>processing
This folder contains scripts for processing the data with detected biomarkers, preparing it for statistical analysis.

	>>original_data_filtering: Script for filtering out unused data segments from the original dataset.

	>>rest_process_func: Script for selecting a 30-minute window and removing stimuli from the rest iEEG data

	>>rest_process_main: This script is the main entry point for handling files and passing them to the rest_process_func function.

	>>stim_process_func: Script for selecting 1-second segments and removing stimuli from the stimulated data.

	>>stim_process_main: This script is the main entry point for handling files and passing them to the stim_process_func functions.

	>>stim_process_events: Script for processing high-frequency oscillations (HFOs) and spike files.

>>analysis
This folder contains scripts for performing statistical analysis of the biomarkers between different data segments.

	>>rest_analysis: This script performs statistical analysis of the biomarkers between rest iEEG (intracranial electroencephalography) and stimulated iEEG.

	>>stim_analysis: This script performs statistical analysis of the biomarkers between segments before and after the applied stimuli.

>>ml_models
This folder contains scripts for implementing machine learning models.

	>>logistic_regression: This script contains scripts for implementing the logistic regression model.

	>>random_forest: This script contains scripts for implementing the random forest model.

	>>SVM: This script contains scripts for implementing the Support Vector Machine (SVM) model.

	>>Ml_results: This script creates graph of overall performance and presenting the results of the machine learning models.

Feel free to explore the code and adapt it to your specific needs. If you require access to the data necessary to try out the code, please reach out to me or my supervisor. 
We will be happy to provide you with the required data and assist you further.