dorahermes / ccep Goto Github PK
View Code? Open in Web Editor NEWccep analyses
License: GNU General Public License v3.0
ccep analyses
License: GNU General Public License v3.0
In the master_prepocessCCEP at least the following two issues need to be resolved.
Changing the data of bad channels to NaNs of deleting those channels from data. Most of them are not included in the data, only the channels that are marked as bad by visual inspection in MicroMed in the data
The removal of channel specific artifacts (changing to NaNs). Sometimes multiple channels have the same artifact onset, but a different offset, so this needs to be considered in the code.
Some scripts present in the folder script of the ccep directory are not necessary anymore, since all the code needed for each atlas (Destrieux, DKT, Benson and Wang) had been merged into one script (master_lookup_allfouratlases.m).
ccep/scripts/ccep_detectER_clean.m
Line 53 in 801641e
Currently, it analyses all peaks in all significant CCEPs, including the channels that are stimulated. Both peak find methods need a loop that only runs through channels that are not stimulated
ccep/scripts/master_preprocessCCEP.m
Line 65 in 801641e
cc_events now also contains e.g. artifacts, and also e.g. electrical_stimulation_site_num_1 and num_2 do not exist anymore, therefore code does not run properly anymore
@GiulioCastegnaro
Because in your analysis F01-F02 stimulation is not considered the same as F02-F01, while in my analysis it does, I think it is nice to add this option as a variable argument in the function for preprocessing. You and Dora made some slight changes for this in another script, so maybe you can add it into this function (I did a pull request for this function).
I think there are multiple ways to create a variable parameter/argument for a function. Including parse (but I don't know how this works), or 'switch nargin with case 2 and 3', but I think it might be best to use something like, but @dorahermes might have a better suggestion:
function [database] = ccep_load_database(database, top_path, varargin)
if isempty(varargin{1} OR varargin{1} == 'biphasic'
STEPS FOR ANALYSIS WITH AVERAGING ALL
elseif varargin{1} == 'monophasic'
STEPS FOR ANALYSIS WITH MONOPHASIC AVERAGING
I left some space in the function to put this into.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.