sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
c0859a57e20c695cdb1c4440b7917eb3f5fec65f1b57f01586acfefbe2abfc4b | MATLAB | 21,891 | 539 | function c = mcheck(waveforms,varargin)
% c = mcheck(waveforms,varargin) this function performs a quality check on a set of sorted waveforms
%
% MANDATORY INPUT
% waveforms a matrix whose rows are events and whose columns are ticks (or vice versa -
% mcheck.m assumes that the longer dimension represen... |
2ad2358cfe3db6a18078ae30a28637665d19c7e17d9734d0a4434f462bfa9bff | MATLAB | 21,905 | 595 | function [marker, hypnogram] = hypnogramStats(cfg, MuseStruct, force)
% HYPNOGRAMSTATS creates statistics based on hypnogram and markers in MuseStruct
%
% use as
% [MuseStruct, marker, hypnogram] = hypnogramStats(cfg, MuseStruct, force)
% This file is part of EpiCode, see
% http://www.github.com/stephenwhitmarsh/Ep... |
9c31ff6fdb2f9e5406ee0d15c57e6b69a0fb9dee83835232802ad453a56d4a98 | MATLAB | 21,975 | 477 | function analyseVF(MuseStruct)
addpath /Users/stephen.whitmarsh/WhitmarshEpilepsy/
addpath /Users/stephen.whitmarsh/fieldtrip/
ft_defaults
%% load or create MuseStruct
if isempty(MuseStruct)
if exist('MuseStruct.mat','file')
load('MuseStruct.mat','MuseStruct');
else
patient_directory =... |
fd6b3cded1ad957529791bcd35dcf56592e3c8936c3ebce3c92eab4f9845aa20 | MATLAB | 22,073 | 611 | % =========================================================================
% Title: Electrophysiology Regression & Longitudinal Modeling
%
% Author: Gabriele Mancini
% Date: 2025-12-10
%
% Description:
% End-to-end analysis pipeline for electrophysiology-based regression and
% longitudinal modeling. The script loads... |
91913516ad96e9ff6a13e2155fd54ea07fdec292fd017a79f7402646c51b6d7a | MATLAB | 22,108 | 651 | % Code to analyze triple-labeled PIEZO molecules from Abberior Instruments 3D MINFLUX localizations
% Written by Eric Mulhall
% cluster_data.m and dependencies originally written by Pape, J.K., et al: https://doi.org/10.1073/pnas.2009364117
% Instructions:
% First, export valid final localizations from the MINFLU... |
2252a2af7101e8d0b0ab8d39ff5e13aa782d4941d6aaf4b3dab18fa11514bc8b | MATLAB | 22,116 | 640 | function [] = mc_undist(ddir)
%% Read parameters from files
fid = fopen('./prod.par','rb');
% catch problems with old par files
seq=0;
fftscale=1.5e9;
TE = 19;
TR = 2000;
tslc=25;
marl= 0;
marr= 0;
mart= 0;
marb= 0;
marct= 0;
marcb= 0;
%
sLine=fgets(fid);
count=0;
while (sLine>-1)
sLine=fgets(fid);
eq=find... |
ecfbe6f7cf4c5acd042408644a7e6cb7ac13f83d97d2ae77fc7f5c877086f18b | MATLAB | 22,118 | 640 | function [] = mc_undist(ddir)
%% Read parameters from files
fid = fopen('./prod.par','rb');
% catch problems with old par files
seq=0;
fftscale=1.5e9;
TE = 19;
TR = 2000;
tslc=25;
marl= 0;
marr= 0;
mart= 0;
marb= 0;
marct= 0;
marcb= 0;
%
sLine=fgets(fid);
count=0;
while (sLine>-1)
sLine=fgets(fid);
eq=find... |
85fab5a063c041f94de68aea176c10906c1d1b975dd899d8742441106fe73e9f | MATLAB | 22,320 | 570 | function plotWindowedData(cfg, MuseStruct, markername, varargin)
% PLOTWINDOWEFDATA plots windowed data from different data types a common
% axis.
%
% use as
% plotWindowedData(cfg, data1, data2, data3);
%
% required fields:
% data can be any of the following in any order:
% SpikeTrials
% SpikeSt... |
b78d3b1fef8d08131eb42a2d16bb3987996ada3413d8d94ceeba7f155bf34ae0 | MATLAB | 22,374 | 593 | %% FNC analysis for Brain Communications (rs-fMRI)
% This script reproduces all functional network connectivity (FNC) analyses:
% 1) Compute subject-level FNC (Fisher Z)
% 2) Edge-wise LME: FNC ~ Age + Sex + Group*Time + (1|Subject)
% 3) FDR-BH Correction
% 4) Post-hoc t-tests (Pat_vs_Con, T0_vs_T1)
% 5) Cog... |
13f006a873bbca9c4b89c8592ab59cdfff866a7929ef3b34398815b03e89b9fd | MATLAB | 22,639 | 670 | %% ==================== Figure 5 ====================
clear; close all; clc;
% Load data
load('data5_locust_PN85.mat');
%% Fig 5a, b: k-NN Classifier for each ITI spont activity time bin (Rate with stat at the end of the script)
close all; clc;
odorName = {'app'; 'bza';'cit';'ger';'hex';'iaa';'oct'};
% ==... |
e06a5fe65b3727728c991745fb9eff18f87cb0155b4afa21e1f68494768f1eee | MATLAB | 22,666 | 562 | function [dictionary_end] = learn_dictionary_spmd(varargin)
% function [dictionary_end] = learn_dictionary_spmd(varargin)
%
% This function learns a dictionary optimal for sparse coding according to
% the unsupervised, statistical method from Olshausen & Field 1996:
%
% for num_iterations
% x = argmin ||y-Ax||^2 ... |
461f444b8b8d739bd27fe52ad2686c379500bdcad50b06505e024e2079e4baa6 | MATLAB | 23,319 | 489 | function dtx_spikes_grandaverage
%% set parameters
if ispc
addpath (genpath('\\lexport\iss01.charpier\analyses\lgi1\Git-Paul\EpiCode\development'));
addpath \\lexport\iss01.charpier\analyses\lgi1\Git-Paul\fieldtrip;
ft_defaults
addpath (genpath('\\lexport\iss01.charpier\analyses\lgi1\Git-Paul\EpiCode\s... |
8a90154104ac1f0dd3d5d8341bcb69a97c939a91fd4def4cb555b88b5803cf4c | MATLAB | 23,538 | 735 | function [] = mc_undist_dante(edir)
dd=dir([edir '*_msk*.nii']);
path_mask=[edir dd(1).name];
V_mask=spm_vol(path_mask);
mask=spm_read_vols(V_mask);
mask_smooth=smooth3(mask,'box',7);
mask_smooth=mask_smooth/max(mask_smooth(:));
pos=strfind(path_mask,'_');
dd2=dir([edir '*_run*.nii']);
path_epi=[edir dd2(1... |
af16063af8aa7da985eeefe8857f74e9d3deb3f72f34c6ad3708a145141e7601 | MATLAB | 23,578 | 537 | function [particles_no_tot, exp_abs_tot, coloc_tot, ratio_tot, pear_tot, MCC_tot] = summarise_SAP(results_folder, repeat_folders, biom_set_folder, categories, cat_disp, biom_1, biom_2,coloc)
%% Create summary plot of results biomarker
% @author: speressotti
%% Folders
% figures
fig_folder = strjoin(fullfile(... |
54c0f7bf018b531f329bb5c743df98c0f486c72ed8031cef0a66bf8bdfdb2d43 | MATLAB | 23,635 | 633 | clear%%
% Abstraction project (at 7T), generic code.
% theo.morfoisse@gmail.com
% Central presentation;
% Task : detect a star, 10 stars for 72 stimuli.
% Response time: RT is computed upon star presentation.
% Edited for IBC at 3T scanner, 18th May 2022
% combined test and scanner version
% himanshu.aggarwal@inr... |
548d1a93ad2c9bab468cd7316a3ac5d4e9c2e7e4b54d6716cb8ef278c178e9e1 | MATLAB | 23,651 | 659 | function outpict = imstacker(varargin)
% PICTSTACK = IMSTACKER(PICTARRAY,{OPTIONS})
% Build a single image from a cell array of images. This can be achieved by
% concatenation on dim 1, 2, or 4. Images do not need to be of same geometry or
% datatype; they may also differ in the number of channels (includi... |
4c83c9c96e64e3161058b13cf8951abc13f47082468e005875f3a2c2a88b948f | MATLAB | 23,655 | 751 | function out = zoom(varargin)
%ZOOM Zoom in and out on a 2-D plot.
% ZOOM with no arguments toggles the zoom state.
% ZOOM(FACTOR) zooms the current axis by FACTOR.
% Note that this does not affect the zoom state.
% ZOOM ON turns zoom on for the current figure.
% ZOOM XON or ZOOM YON turns zoom on... |
f2f6851254b7f34c3fa3308cb1aade3e61c6b57a30f74b129484467c59e2094f | MATLAB | 23,819 | 875 | function kimg = imshow2(varargin)
% IMSHOW2(IMAGE, {OPTIONS})
% This is a convenience tool to serve as a replacement for IMSHOW.
% This is intended primarily as a viewer, and not for use as a GUI
% image display component, as it occupies mouse and key event callbacks.
% This function does not require IP T... |
f452b4196c40459b1cbcf9e28fc670f58dd12e12d67bec144a70b3d6248ba10f | MATLAB | 23,829 | 475 |
function [stats] = spikeratestats(cfg,SpikeRaw,SpikeTrials,force)
fname = fullfile(cfg.datasavedir,[cfg.prefix,'all_data_spikedata_stats.mat']);
if exist(fname,'file') && force == false
load(fname,'stats');
else
temp = dir(fullfile(cfg.datasavedir,[cfg.prefix,'all_data_',cfg.circus.channe... |
97db1b1d244677f1c3aa1bb4a6762718b05a58eaf6890f548e7bb7bb211ac670 | MATLAB | 24,124 | 737 | function [] = mc_undist_dante_fast(edir)
dd=dir([edir '*_msk*.nii']);
path_mask=[edir dd(1).name];
V_mask=spm_vol(path_mask);
mask = spm_read_vols(V_mask);
mask_smooth=smooth3(mask,'box',7);
mask_smooth=mask_smooth/max(mask_smooth(:));
dd2=dir([edir '*_epi*.nii']);
path_epi=[edir dd2(1).name];
V_epi=spm_vol(path_... |
522d14cd9572116629cbe5131828c9496bfed057e413c72334a3204ca2532505 | MATLAB | 24,303 | 741 | function [] = mc_undist_dante(edir)
dd=dir([edir '*_msk*.nii']);
path_mask=[edir dd(1).name];
V_mask=spm_vol(path_mask);
mask=spm_read_vols(V_mask);
mask_smooth=smooth3(mask,'box',7);
mask_smooth=mask_smooth/max(mask_smooth(:));
dd2=dir([edir '*_epi*.nii']);
path_epi=[edir dd2(1).name];
V_epi=spm_vol(path_epi);
xdi... |
6102200cc4007c7e7e90fb83136e383ee2adfa32bb74cf167a066d73dbfe99f0 | MATLAB | 24,364 | 751 | %% BFP: BrainSuite fMRI Pipeline
% authors: Anand A. Joshi & Soyoung Choi
% University of Southern California
% bainsuite.org/bfp
%
% This pipeline takes fMRI and anatomical data and processes them using a series
% of scripts from BrainSuite, FSL and AFNI. The functional processing script is
% based on batch_process. s... |
553dd4fcf8798905f9138d03dfff4e50b92657471d6fb7633796300280925e4c | MATLAB | 24,369 | 644 | classdef SynapseAPI < handle
% Available SynapseAPI methods:
% --------------------------------------------------------
% Legend:
% b = bool, s = string, c = cell, i = int, f = float,
% d = double, t = struct
% --------------------------------------------------------
% return value function call
% --... |
4f10f2c8ad311d71677e887429d4af5efdf441451f5ea5d2cfe56d32c4e30915 | MATLAB | 24,421 | 551 | function [clusterindx, LFP_cluster] = clusterLFP(cfg, MuseStruct, force_clustering)
% Neccecary fields:
% cfg.cluster.name
cfg.cluster.dbscan = ft_getopt(cfg.cluster, 'dbscan', 'no');
cfg.cluster.kmeans = ft_getopt(cfg.cluster, 'kmeans', 'no');
cfg.cluster.kmedoids = ft_getopt(cfg.cluster, 'kmedoids', 'n... |
1eb2fc367869cf474c1c4c18b69082a44e2a0468ec04505d104fd1ece7a76179 | MATLAB | 24,464 | 431 | function natsortfiles_test()
% Test function for NATSORTFILES.
%
% (c) 2014-2024 Stephen Cobeldick
%
% See also NATSORTFILES TESTFUN_NSX ARBSORT_TEST NATSORT_TEST NATSORTROWS_TEST
fnh = @natsortfiles;
chk = testfun_nsx(fnh);
%
c2s = @(c)struct('name',cellstr(c));
rmf = @(s)rmfield(s,setdiff(fieldnames(s),'n... |
6618b5f0f65712a58a9e745cfaa80f4ef88793e9be2bccaa18002ffe80216e9c | MATLAB | 24,721 | 573 | function [total_cells_table,cells_table,stats] = get_BrdU_figures_new2(save_path,area)
% Find mat files for final results dataset
files = dir(fullfile(save_path,'*.mat'));
ind = contains({files.name}','FinalDataset'); % Use only the combined dataset for all slices
files = files(ind);
% Load dataset
final_... |
5d398a830a097e0feb6184303a7cc712395e59fc9f68576b2367621ee2f62423 | MATLAB | 24,729 | 894 | function varargout = spm_prf_analyse(mode,varargin)
% Runs a PRF analysis
%
% Examples and default settings
%
% -------------------------------------------------------------------------
% Specify an analysis:
%
% PRF = spm_prf_analysis('specify', SPM, xY, U, options);
%
% Where:
%
% SPM - filename of the subject's SPM.... |
10ccf64c70d0aa2be6e7219fe60069d8258a03ce652b9c41b4f901eef2a30efd | MATLAB | 24,953 | 534 | function [clusterindx] = findPattern2D(cfg, MuseStruct, force_clustering)
fname = fullfile(cfg.datasavedir,[cfg.prefix,'clusterindx.mat']);
if exist(fname,'file') && force_clustering == false
fprintf('*******************************\n');
fprintf('** Loading results alignment **\n');
fprintf('**************... |
b0c25e8415183d95d5eaaa272aef1efdcbeec899fef580362b319dfaa904805e | MATLAB | 25,112 | 768 | function [] = mc_undist_wouter2(edir)
dd=dir([edir '*_msk*.nii']);
path_mask=[edir dd(1).name];
V_mask=spm_vol(path_mask);
mask=spm_read_vols(V_mask);
mask_smooth=smooth3(mask,'box',7);
mask_smooth=mask_smooth/max(mask_smooth(:));
% % pos=strfind(path_mask,'_');
dd2=dir([edir '*_epi*.nii']);
path_epi=[edir... |
4c8b12f77c83d6c6b30fdf85b9de0e13854e9b5e918bf1c60a80fdd0a13982d3 | MATLAB | 25,124 | 798 | function output_dir = run_matlab_benchmarks(varargin)
% RUN_MATLAB_BENCHMARKS Run shared-contract benchmarks for MATLAB and MEX backends.
%
% Example:
% run_matlab_benchmarks('FixtureIds', {'copnorm_medium_f64'}, 'ThreadCounts', [1 4 8]);
%
% To benchmark a future C++ MEX implementation with different entrypoint name... |
c861f3e648a42fe12f3fa54872c2f829aa137f8c039f4026c51393fa7ec5bf3a | MATLAB | 25,204 | 575 | function CBIG_SPGrad_RSFC_gradients(fMRI_files1, fMRI_files2, censor_files, lh_ind_surf_file, ...
rh_ind_surf_file, mesh, medial_mask, sub_FC, sub_verts, outputdir)
% CBIG_SPGrad_RSFC_gradients(fMRI_files1, fMRI_files2, censor_files, lh_ind_surf_file, ...
% rh_ind_surf_file, mesh, medial_mask, sub_FC, sub_verts, o... |
1272e8d116ca8242de231455489da1d9d269821b68dbde57e2c65533d1849a8f | MATLAB | 25,410 | 476 | function [LFP] = readLFP(cfg, MuseStruct, force)
% READLFP reads data epoched according to markers from MuseStruct.
% Use as
% [LFP] = readLFP(cfg, MuseStruct, force)
%
% Will also mark overlap with hypnogram markers
% Optionally downsample to same samplerate if data contains multiple
% samplerates to allow combinat... |
d9da17fd285d9d2ba901167ff2b642a5cd079bd877854f3aca7dd23f62c66039 | MATLAB | 25,492 | 775 | function [] = mc_undist_wouter_dante(edir,runn)
%% Attention: script modified by natalie V1: 14.05.2012
% edir: give directory for files
% runn: give total number of runs, counts from 1st nii file in folder to
% last.
for xx11=runn % nat: added: loop trough runs
dd=dir([edir '*_msk*.nii']);
path_mask=[edir dd(1).n... |
8fbdb42ae61a6f6e346c8d0de2d6ca39dcf9feb64e94b8740ca87b769f97d430 | MATLAB | 25,565 | 775 | function [] = mc_undist_wouter_dante(edir,runn)
dd=dir([edir '*_msk*.nii']);
path_mask=[edir dd(1).name];
V_mask=spm_vol(path_mask);
mask=spm_read_vols(V_mask);
mask_smooth=smooth3(mask,'gauss',7);
mask_smooth=mask_smooth/max(mask_smooth(:));
% % pos=strfind(path_mask,'_');
dd2=dir([edir '*_run*.nii']);
%% Att... |
f4f59d8ccb6f13bbc27b62fa09671189bfcc20f1893c10153a922f3d2333472d | MATLAB | 25,764 | 485 | function plotOverviewDTXspikes(cfg,SpikeTrials_timelocked, SpikeTrials_windowed, SpikeStats_windowed, SpikeDensity_timelocked, LFP, TFR, SpikeWaveforms, SpikeWaveforms_stats, MuseStruct_concat, seizure_infos)
if isempty(LFP)
istimelocked = false;
event_name = "";
baseline_name = "Control";
nplots_1 ... |
1b3a56c21833fb6ed02a596e635af5dcee3d08ed6d012f3622bcebfd646f9e24 | MATLAB | 25,960 | 813 | %% BFP: BrainSuite fMRI Pipeline
% authors: Anand A. Joshi & Soyoung Choi
% University of Southern California
% bainsuite.org/bfp
%
% This pipeline takes fMRI and anatomical data and processes them using a series
% of scripts from BrainSuite, FSL and AFNI. The functional processing script is
% based on batch_process. s... |
6e179b5507de36190b798d934932a5bd148fd9192415e30549f2cfb212c09832 | MATLAB | 26,041 | 794 | function [] = mc_undist_wouter_dante_natalie(edir,runn,dd2)
%% Attention: script modified by natalie V1: 14.05.2012
% edir: give directory for files
% runn: give total number of runs, counts from 1st nii file in folder to
% last.
for xx11=runn % nat: added: loop trough runs
dd=dir([edir '*_msk*.nii']);
path_mask=[... |
856d6df9e7e75b0ace996fc6bb97340f16612376f9cc5049657c4846a63c5e25 | MATLAB | 26,042 | 627 | %
% BDP BrainSuite Diffusion Pipeline
%
% Copyright (C) 2019 The Regents of the University of California and
% the University of Southern California
%
% Created by Chitresh Bhushan, Divya Varadarajan, Justin P. Haldar, Anand A. Joshi,
% David W. Shattuck, and Richard M. Leahy
%
% This program is free sof... |
ffecb5d81b627bbf25c1a1a024f3e50d1f65f383c04b00cc06fa2b916a8dde2d | MATLAB | 26,086 | 797 | function [] = mc_undist_wouter_dante_natalie(edir,runn)
%% Attention: script modified by natalie V1: 14.05.2012
% edir: give directory for files
% runn: give total number of runs, counts from 1st nii file in folder to
% last.
for xx11=runn % nat: added: loop trough runs
dd=dir([edir '*_msk.nii']);
path_mask=[edir ... |
83b01e455a353292be606fb6f268d31ab71f03e3c06678c0e901619f374fcfeb | MATLAB | 26,488 | 643 | %% homeostatic adaptation impacts KC odor responses in numerical simulation
prompt = "Do you to generate MB models automatically? Y/N [N]: ";
txt = input(prompt,"s");
if upper(txt)=='Y'
ModelGenerationOnly_Philippe; % does the job for now
end
%make these global to simplify use of local function (yeah, bad style..... |
17531b8974d3fe9efaf4f338e4ec9f3078ffdd7381f8b076fc0a39689ee479a1 | MATLAB | 26,620 | 624 | function [FFT_micro_trials,TFR_micro_trials,TFR_macro_trials,stat_TFR_micro, corrs] = plotLFP(cfg,dat_micro,dat_macro,force)
fname = fullfile(cfg.datasavedir,[cfg.prefix,'_TFR_LFP.mat']);
if exist(fname,'file') && force == false
fprintf('****************************************\n');
fprintf('*** Loading precom... |
d14d5955bc9401659c53254c991bee62128b91ef6885b3eb5b438ce88f88b21a | MATLAB | 26,807 | 644 | function [FFT_micro_trials,TFR_micro_trials,TFR_macro_trials,stat_TFR_micro, corrs] = plotLFP(cfg, dat_micro, dat_macro, force)
% PLOTLFP creates statistics based on hypnogram and markers in MuseStruct
%
% use as
% [t] = plotHypnogram(config, MuseStruct)
% This file is part of EpiCode, see
% http://www.... |
add294a4d53d87cf0f230ceecbc48266244db40ba1280a4765c14ed6e3b382b6 | MATLAB | 27,235 | 818 | %% Calcium imaging analysis
%%
clc;
close all;
clear all;
%% setup
% setup folders
analysis_folder = '/Users/sofiaperessotti/Docs/calcium_elena/analyses/';
results_folder = fullfile(analysis_folder,'/results');
if ~exist(results_folder)
mkdir(results_folder)
end
% load functions
func_folder = '/Users/sofiaperes... |
d7049d6b992b1d3527469edd114d5b4b76aa0e52c1c6ffd74dab538f52cbcbd6 | MATLAB | 27,642 | 645 | function [clusterindx, trialindx, LFP_cluster] = clusterLFP(cfg, MuseStruct, force_clustering)
% Neccecary fields:
% cfg.cluster.name
cfg.visible = ft_getopt(cfg, 'visible', 'on');
cfg.cluster.dbscan = ft_getopt(cfg.cluster, 'dbscan', 'no');
cfg.cluster.kmeans = ft_getopt(cfg.cluster, 'kmeans', '... |
52a25e385066af2212f48d68b12e815dd92fad11596f140d20323e80628822e7 | MATLAB | 27,770 | 554 | function PET_plot_overview_units(cfg,SpikeTrials, SpikeStats, SpikeDensity, LFP, TFR, FFT, SpikeWaveforms, SpikeWaveforms_stats, MuseStruct_concat)
% artefactlist if optional, and is a structure of 2 datetime arrays of the
% same size :
% artefacts_list.starttime
% artefacts_list.endtime
event_name = 'IED';
basel... |
c01e52dd6e82ea4a82f46551614e42439f45bcbb2e0bbb7d974bd5f47bb1d9e2 | MATLAB | 27,787 | 691 | function varargout = gbfp(varargin)
% GBFP MATLAB code for gbfp.fig
% GBFP, by itself, creates a new GBFP or raises the existing
% singleton*.
%
% H = GBFP returns the handle to a new GBFP or the handle to
% the existing singleton*.
%
% GBFP('CALLBACK',hObject,eventData,handles,...) calls the l... |
5f1ed55b7d51af9c0e2aac14b4eb586f7217ce91510053405c152e9a22675e15 | MATLAB | 27,858 | 606 | function [config] = dtx_eeganesth_setparams(config)
disp('setting parameters for eeg of sedated rats');
if ismac
error('Platform not supported')
elseif isunix
rootpath_analysis = '/network/lustre/iss01/charpier/analyses/lgi1/DTX-EEG_ANESTH/';
rootpath_data = '/network/lustre/iss01/epimicro/rodents... |
f70b6820f3d5c37ade0726fb55d315d8046382f9c4ffd06147769d02c0a8b082 | MATLAB | 28,064 | 810 | classdef ConsoleProgressBar < handle
%ConsoleProgressBar Console progress bar for long-running operations
%
% Description:
% This class creates a console progress bar (status bar)
% for long-running operations.
%
% It is possible to measure the elapsed and remained time of prog... |
24d67535558a47162d7e2428c4f72bd00e43691f299d8e0269d762bc6d90437f | MATLAB | 28,224 | 563 |
function [stats, stats_bar, sdf_orig_out, sdf_bar_out] = spikeratestats(cfg,SpikeRaw,SpikeTrials,force)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% function [stats, stats_bar, sdf_orig_out, sdf_bar_out] = spikeratestats(cfg,SpikeRaw,SpikeTrials,force)
%
% Creates spike stats and f... |
3cba437b954cda6c80860ec50004ff805e755b3692040251702f8e30d0673777 | MATLAB | 28,303 | 575 | function [SpikeRaw, SpikeTrials, SpikeStats] = readSpykingCircus_allmarkers_alldata(cfg,MuseStruct,force)
fname = fullfile(cfg.datasavedir,[cfg.prefix,'all_data_spikedata_concatinated.mat']);
if exist(fname,'file') && force == false
load(fname,'SpikeRaw','SpikeTrials', 'SpikeStats');
else
%% use spik... |
e8f722abde7e16e630f2759ef49e0069c0d1124d57854e4bfec9cab297ede7a5 | MATLAB | 28,540 | 669 | function [FaceNormal, FaceArea, FaceCenter, VertexNormal, VertexArea, SuspectFace, NumFacesEachVertex, Duplicated_Faces, Not_Twice_Faces] = tessellation_stats(FV,VERBOSE);
%TESSELLATION_STATS - Calculate statistics of the tesselation and hunt for suspicious faces and vertices
% function [FaceNormal, FaceArea, FaceCen... |
3931bf80e36aaa28ee3344b61d4aec89a08fee95d13a22d201f60fe0bbc3ea6c | MATLAB | 28,890 | 801 | function ft_write_data(filename, dat, varargin)
% FT_WRITE_DATA exports electrophysiological data such as EEG to a file.
%
% Use as
% ft_write_data(filename, dat, ...)
%
% The specified filename can contain the filename extension. If it has no filename
% extension not, it will be added automatically.
%
% Additional ... |
a31456ec26b02a5b0277ee2e2771c4273b575c752dd86daeb3339b7afb1be1da | MATLAB | 29,109 | 642 | function [stats] = spikeratestatsPSG(cfg, SpikeRaw, SpikeTrials, Hypnogram, force)
% SPIKERATESTATSEVENTS calculates and plots spike statistics
%
% use as
% spikeratestatsEvents(cfg,SpikeRaw,SpikeTrials,force,varargin)
% This file is part of EpiCode, see
% http://www.github.com/stephenwhitmarsh/EpiCode for document... |
7275018cb0d5999e2373dfea001687d845c7162552af5ab547cc7647e3ef2fcd | MATLAB | 29,565 | 895 | function [samples, stats, structArray] = matjags(dataStruct, jagsFilenm, initStructs , varargin)
% MATJAGS, a Matlab interface for JAGS
% Version 1.3.1. Tested on JAGS 3.3.0, Windows 64-bit version
%
% This code has been adapted from MATBUGS that was written by Kevin Murphy and Maryam Mahdaviani
%
% [samples, sta... |
89c34048e403fb93f3f7f6332a74cceaf837db0a6e15bf0ee2b067ac8429f9a7 | MATLAB | 29,725 | 907 | function [closest,d]=nt_proximity(coordinates,N)
%[closest,d]=nt_proximity(coordinates,N) - distance to neighboring channels
%
% closest: indices of closest channels
% d: table of distances from each channel (row) to other channels (column)
%
% coordinates: spatial coordinates of each channel
% N: consider only N n... |
6b744e4a79cb28b685d1706aa4d87a8c125338336d6ea4348a9acbd71d4a0756 | MATLAB | 29,738 | 636 | function analyseVF_macro(MuseStruct_micro,MuseStruct_macro)
addpath /network/lustre/iss01/charpier/stephen.whitmarsh/analysis/
addpath /network/lustre/iss01/charpier/stephen.whitmarsh/fieldtrip/
ft_defaults
%% load or create MuseStruct
if isempty(MuseStruct_micro)
if exist('MuseStruct_micro.mat','file')
... |
e473f7289188b2ebadca9c5e2841e9be261c4375cbd9cee659515c9fde231b8f | MATLAB | 29,887 | 1,158 | function outcolor = cpicktool(varargin)
% CPICKTOOL({REFPOINT}, {OPTION})
% opens a gui color picker capable of selection in various colorspaces.
% default color models are RGB, HSL, HSYp, LCHab, and LCHok.
%
% REFPOINT (optional) is an RGB triplet (3-element row vector [0 1])
% when specified, the col... |
f481c65825f8b51d44585aa703e0fb2b62f81dc63529e661c2dc0ba8232b5add | MATLAB | 30,045 | 735 | function natview_stimuli_checkerboard(input_frequency,stimulus_length,repetitions,gridSize,gridSpokes,eyeMode,scannerMode,monkeyMode)
%% PURPOSE: Uses Psychtoolbox to display flickering circular checkerboard.
% Checkerboard stimulus uses a block design with a period of rest
% followed by a period... |
1f8ef0454f1fe8e093ce988392501e4b2021764ccfdad6c541bf981f28419988 | MATLAB | 30,635 | 738 | function [config] = Figure_LFP_stages
%% load data
config = hspike_setparams;
for ipatient = 1:8
MuseStruct{ipatient} = readMuseMarkers(config{ipatient}, false);
config{ipatient}.LFP.name = {'template1','template2','template3','template4','template5','template6'};
% LFP{ipatient} = re... |
2ceb4a8d885d6559d628ba12cecba66cb89430ca299f8cafe72772f46658e111 | MATLAB | 31,136 | 891 | function varargout = inifile(varargin)
%INIFILE Creates, reads, or writes data from/to a standard ini (ascii)
% file. Such a file is organized into sections
% ([section name]), subsections(enclosed by {subsection name}),
% and keys (key=value). Empty lines and lines with the first non-empty
% ... |
4cbebfae356a8c715629762ba11db5ce1554a1ba1edf13096aeb2d20984f57d6 | MATLAB | 31,206 | 782 | function C = maxchroma(mode,varargin)
% MAXCHROMA(MODEL,{CHANNELS})
% returns the maximum chroma for color points to stay within sRGB gamut
% can be used for chroma normalization (HuSL/HSY) or truncation prior to conversion
%
% MODEL specifies the color model to use
% 'ypp' uses polar YPbPr
% ... |
53230a4b74f54079a622af22660e63ff0451de757fa7c6e1a0835b24239c6dc5 | MATLAB | 31,633 | 1,348 | % DEMOS USED IN WEB DOCUMENTATION
% most of these blocks are the same as what's in the html overview
% some of these may be configured for viewing on an inverted display
% if something looks inverted, just check the call to imshow() or imshow2()
% as i am likely the most common user of these files, i tend to leave the... |
ed4fdcb13f045ae3e05b92fc19e66eb6ae3b3238a29392aaf1584f99bb494adf | MATLAB | 32,186 | 893 | function varargout = inifile(varargin)
%INIFILE Creates, reads, or writes data from/to a standard ini (ascii)
% file. Such a file is organized into sections
% ([section name]), subsections(enclosed by {subsection name}),
% and keys (key=value). Empty lines and lines with the first non-empty
% ... |
ca863bf480b6090b3ffb725448aac2664566f6dc68b829207d54f3c6b4e3172e | MATLAB | 32,365 | 713 | classdef Violin < handle
% Violin creates violin plots for some data
% A violin plot is an easy to read substitute for a box plot
% that replaces the box shape with a kernel density estimate of
% the data, and optionally overlays the data points itself.
% It is also possible to provide ... |
65d0043e497d14ddb1f8573639ed8ef8769e96003fb62c87d3b18f95ab410227 | MATLAB | 32,419 | 564 | function [MuseStruct] = alignMuseMarkersPeaks(cfg, varargin)
% ALIGNMUSEMARKERS aligns MUSE markers according to morphological features
%
% Use as
% [MuseStruct] = alignMuseMarkers(cfg, MuseStruct, force)
%
% Results are saved in a 'timeshift' field for every marker event in MuseStruct
% Later functions can use thi... |
10e7f0a556e5cb1d791b86f50e95a1d2b35753021ab28badce28ed12588995b9 | MATLAB | 32,496 | 818 | function simulations_td(REDO, basedir)
% Simulation configs, file for handling of paths to toolboxes.
% ---------------------------------------------------------------------
% Copyright (C) 2023 Simon R. Steinkamp, Iyadh Chaker
% This program is free software: you can redistribute it and/or modify
%... |
e02cf29a5e17b2ba4de77e4a5e304d009deeff4ad6a3306f300220335b416295 | MATLAB | 32,664 | 812 | % DTX EEG video rodents analysis
%% Set parameters
if ispc
addpath \\lexport\iss01.charpier\analyses\lgi1\Git-Paul\fieldtrip;
addpath \\lexport\iss01.charpier\analyses\lgi1\Git-Paul\EpiCode\development
addpath (genpath('\\lexport\iss01.charpier\analyses\lgi1\Git-Paul\EpiCode\projects\dtx'));
addpath (g... |
12dd02cf6d6136c948cebadad486db82d53613c96ebe2b9693c9fc186213ffdf | MATLAB | 32,858 | 577 | function [MuseStruct] = alignMuseMarkersPeaks(cfg, varargin)
% ALIGNMUSEMARKERS aligns MUSE markers according to morphological features
%
% Use as
% [MuseStruct] = alignMuseMarkers(cfg, MuseStruct, force)
%
% Results are saved in a 'timeshift' field for every marker event in MuseStruct
% Later functions can use thi... |
5f31bf126de61d4402f84b084057c1adbb9562f90cf3016f186150cb1492b509 | MATLAB | 32,866 | 582 | function [stats, stats_bar, sdf_orig_out, sdf_bar_out] = spikeratestats_parts(cfg,SpikeRaw,SpikeTrials,force)
% select those markers to load
markerlist = [];
for i = 1 : size(cfg.name,2)
if ismember(cfg.name{i},cfg.name)
markerlist = [markerlist, i];
end
end
fname = fullfile(cfg.datasavedir,[cfg.pre... |
1321dbbda9c190eb91c469799b98343649750ab52671fee5cd779d0c71d94bab | MATLAB | 32,956 | 828 | function natview_stimuli_video(videoName,playbackTime,eyeMode,scannerMode,monkeyMode)
%% PURPOSE: Script runs Psychtoolbox with the EyeLink 1000 eye tracker.
% Script plays user-specified videos for participants in various
% modes.
%
% INPUT:
% playbackTime:
% videoName: Code for name of v... |
86e76a81d19a988763fd0a2c7ae3bf0a5f6dafe51bc5cdeab0738aea9ed874c2 | MATLAB | 33,358 | 696 | function Figure_firingrates
restoredefaultpath
if isunix
addpath /network/lustre/iss01/charpier/analyses/stephen.whitmarsh/git/fieldtrip
addpath /network/lustre/iss01/charpier/analyses/stephen.whitmarsh/EpiCode/projects/hspike/
addpath /network/lustre/iss01/charpier/analyses/stephen.whitmarsh/EpiCode/shar... |
55ff4349bc68b91fe2a439dfb85746c9dbd03345789f74bbd22b72ccef0300f0 | MATLAB | 34,615 | 1,066 | function csview(varargin)
% CSVIEW()
% CSVIEW(SPACE, {OPTIONS})
% Visualize the projection of sRGB gamut within various color spaces.
% Optionally visualize the trajectory of out-of-gamut points
% as would occur if data range is clamped on conversion from SPACE to sRGB
% If called with no ar... |
432f461c256cad666c885979510fec8ac938989d96f80742e8e14e7815340b39 | MATLAB | 35,270 | 608 | function [stats_smooth, stats_binned] = spikeratestatsEvents(cfg, SpikeRaw, SpikeTrials, force, varargin)
% SPIKERATESTATSEVENTS calculates spike statistics
%
% use as
% spikeratestatsEvents(cfg, SpikeRaw, SpikeTrials, force, varargin)
% This file is part of EpiCode, see
% http://www.github.com/stephenwhitmarsh/Epi... |
8a758872b678598753241be88ffa0eed04f0bdede40163f75089af390c393a98 | MATLAB | 35,685 | 1,339 | function imcompare(varargin)
% IMCOMPARE({IMAGEA}, {IMAGEB}, {KEYS})
% Opens a simple gui for interactive comparison of images. This is useful for
% comparison of image effects and debugging image conversion tools.
%
% Four viewing modes are available, with options accordingly. Images can b... |
c3e1b40e22db6ffc1912de67d683f540c2e55d6b8be617a347de083b61a6c464 | MATLAB | 35,832 | 805 | function data = TDT2mat(tank, block, varargin)
%TDT2MAT TDT tank data extraction.
% data = TDT2mat(TANK, BLOCK), where TANK and BLOCK are strings, retrieve
% all data from specified block in struct format.
%
% data = TDT2mat(BLOCKPATH), where BLOCKPATH is the folder location of
% the block
%
% data.epocs ... |
e64b36c2d26d5becbd2555e00dac7a034a77ef4cd6a258e2a3ed6abbb3b9025d | MATLAB | 36,050 | 956 | function handles = distributionPlot(varargin)
%DISTRIBUTIONPLOT creates violin plots for convenient visualization of multiple distributions
%
% SYNOPSIS: handles = distributionPlot(data,propertyName,propertyValue,...)
% handles = distributionPlot(ah,...)
%
% INPUT data : m-by-nData array of values, or vector ... |
99b083b3716ec8c5af109372ae115abfd55b6a7d688fa317e68b3754a21fd178 | MATLAB | 36,614 | 969 | function handles = distributionPlot(varargin)
%DISTRIBUTIONPLOT creates violin plots for convenient visualization of multiple distributions
%
% SYNOPSIS: handles = distributionPlot(data,propertyName,propertyValue,...)
% handles = distributionPlot(ah,...)
%
% INPUT data : m-by-nData array of values, or vector ... |
92b3619075152506222a69e8113d9808d713027bea7f077512611959c343b397 | MATLAB | 36,634 | 680 | %% Analysis script for Valerio Frazzini's study on electrophysiology of pathoanatomy
%
% (c) Stephen Whitmarsh, stephen.whitmarsh@gmail.com
%
% requires bandpassFilter.m from Mario
% requires releaseDec2015 from Neuralynx website
addpath /network/lustre/iss01/charpier/stephen.whitmarsh/WhitmarshEpilepsy
addpath /netwo... |
9e76029c0fc3833ced0340c221ca39e43e154aa5bc5cc0019503deee782cb177 | MATLAB | 36,906 | 850 | %2025-01-13 Created to to show logistic regression version for error analysis
clc; clear; close all hidden;
%which_monk = 'tyr'; monk_initial = ' T';
%which_monk = 'jrr'; monk_initial = ' J';
which_monk = 'jrr_tyr'; monk_initial = 's J & T';
% for individual monkeys look at
% MONK labels in ANOVA: 7 (tyr) & 14 (jrr... |
96819b04c3924078dc865639b18c98ba2c95ba2b33cfd125d028f320edc7d4f9 | MATLAB | 37,009 | 601 | function [config] = pnh_setparams(varargin)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% [config] = pnh_setparams(varargin)
%
% This function outputs all the settings of a study, to be defined below
%
% Note the consideration of the operating system, because the pointers to
% the file ... |
9dff1e6791436d1a7e8fa9835a38350b669bc0e164a724c5bf45bc17f8d449db | MATLAB | 37,383 | 767 | function plotOverviewHspike(cfg, marker, hypnogram, hypmusestat, SpikeTrials_timelocked, SpikeTrials_windowed, SpikeStats_windowed, SpikeDensity_timelocked, LFP, TFR, SpikeWaveforms)
set(groot, 'DefaultAxesXColor', [0,0,0], ...
'DefaultAxesYColor', [0,0,0], ...
'DefaultAxesZColor', [0,0,0])
set(0,'default... |
c2c80bb09666fc0c86d372c47428d386b5ef37b45ce603fcf776cb93262f0809 | MATLAB | 37,577 | 1,046 | %% Shaping_2Choice_vGitHub.m
% the Shaping_2Choice_vGitHub is built from behaviortrainingv4 with only the go
% trials
function varargout = Shaping_2Choice_vGitHub(varargin)
% SHAPING_2CHOICE_VGITHUB MATLAB code for Shaping_2Choice_vGitHub.fig
% SHAPING_2CHOICE_VGITHUB, by itself, creates a new SHAPING_2CHOICE_VG... |
4ba40b705c383adb20635bbd18f5d22494233236a0294ddf0b987a33b43a88dc | MATLAB | 38,736 | 1,451 | function immask(varargin)
% IMMASK({INPICT} {KEYS})
% Opens a simple gui for interactive creation of binary masks from image data.
%
% Currently, only the following methods are implemented:
% Color selection by mouse click:
% Supports local (magic wand) or global selection be... |
237bdf500acbd26182b071efe0f75dd578e9978629ffac40c691506b4001c563 | MATLAB | 38,831 | 1,148 | function d = ipdm(data1,varargin)
% ipdm: Inter-Point Distance Matrix
% usage: d = ipdm(data1)
% usage: d = ipdm(data1,data2)
% usage: d = ipdm(data1,prop,value)
% usage: d = ipdm(data1,data2,prop,value)
%
% Arguments: (input)
% data1 - array of data points, each point is one row. p dimensional
% data will be... |
a674bf935b40d56dcc8c85695379bfdbdf6c5682c44d07b1e89ba1ec183e7210 | MATLAB | 39,167 | 959 | % LGI1 patients data analysis
%% Set parameters
if ispc
addpath \\lexport\iss01.charpier\analyses\lgi1\Git-Paul\fieldtrip;
addpath \\lexport\iss01.charpier\analyses\lgi1\Git-Paul\distributionPlot;
addpath (genpath('\\lexport\iss01.charpier\analyses\lgi1\Git-Paul\EpiCode\projects\dtx'));
addpath (genpat... |
d5a5c7ff583296cf01a212e22170c61c9421a64e2ee835cfb28009d6ded8a64c | MATLAB | 39,185 | 1,434 | function outpict = imgenerate(s,varargin)
% IMGENERATE(SIZE, {OPTIONS})
% Generate simple images interactively via a graphical interface
%
% SIZE is a two-element vector specifying image dimensions
%
% Optional arguments are:
% 'invert' inverts the display of colors and images
% This is used if usin... |
551ab5b5712a3a46f3166e4106cd2da2b8f124aa7476f0b74f6408aad0ed489a | MATLAB | 40,211 | 1,060 | %% Circles_Shaping_1_vGitHub.m
% the Circles_Shaping_1_vGitHub is built from running_reward_association_2AFC_v241107
% Requires mouse to lick upon random presentation of go stimulus
function varargout = Circles_Shaping_1_vGitHub(varargin)
% CIRCLES_SHAPING_1_VGITHUB MATLAB code for Circles_Shaping_1_vGitHub.fig
% ... |
a166bd4d336e5ff3472b9cb292642fd11ba3fe347f60e2403040af8118179e9a | MATLAB | 40,381 | 1,065 | %% Circles_Shaping_2_vGitHub.m
% the Circles_Shaping_2_vGitHub is built from running_reward_association_2AFC_v241107
% Requires mouse to lick upon initiated presentation of go stimulus
function varargout = Circles_Shaping_2_vGitHub(varargin)
% CIRCLES_SHAPING_2_VGITHUB MATLAB code for Circles_Shaping_2_vGitHub.fig
% ... |
d09bc5e90b11c2aebb194a0547ec320fe3df022820c11594f3332787da83b45d | MATLAB | 40,792 | 924 | %% Analysis script for Valerio Frazzini's study on electrophysiology of pathoanatomy
%
% (c) Stephen Whitmarsh, stephen.whitmarsh@gmail.com
%
% requires bandpassFilter.m from Mario
% requires releaseDec2015 from Neuralynx website
%% Add path
restoredefaultpath
if isunix
addpath /network/lustre/iss01/charpier/ana... |
29a021c6f6fa12ee701fc4601d98fc8324778f68c0e6f1e2bcd42ee391aa88a6 | MATLAB | 41,206 | 1,074 | %% Circles_Discrimination_vGitHub.m
% the Circles_Discrimination_vGitHub is built from running_reward_association_2AFC_v241107
% Requires mouse to lick upon initiated presentation of go stimulus
function varargout = Circles_Discrimination_vGitHub(varargin)
% CIRCLES_DISCRIMINATION_VGITHUB MATLAB code for Circles_Disc... |
9dad37c8533cf7e2d82d875a13752f6843e23d62f17db6711cd20ead135d0015 | MATLAB | 41,482 | 817 | classdef skeleton
% skeleton: Class for defining and analysing skeletons of 3D objects
% This class allows you to take a mask of an object (eg the mushroom
% body), manually define a skeleton by clicking on a montage of the
% mask, and define a "starting point" (eg where stimulation was locally
% ap... |
0b86a3f41ff04c58cdbca0bb5313906c6f9bea2134018417f17f8fb9c44a14e7 | MATLAB | 41,659 | 902 | classdef activityMap
% activityMap: Class for calculating and storing dF/F activity for 5D movies
% Calculate an activity map for a 5-dimensional ScanImage movie where time is
% the last dimension (order of dimensions x y z c t)
%
% Example usage:
% map = activityMap(params);
% figure, ima... |
92433729e6e1fdbeb7e5fe1ea92078fbf9a28b745c3179c19644c057d130b2d1 | MATLAB | 41,695 | 1,148 | %% ==================== Figure 6 ====================
close all; clc; clear;
fileNameKNN = {'m129_1_2_dataset'; 'm149_3_1_dataset';};
% Fig6a, b, g, h, i: KNN Classification of mouse glom dataset and average over sessions
% a/b => fileIter = 2;
% h => fileIter = 1;
KNN = 10;
numTrial = 10;
for fileIte... |
0f651c4ce74242005686f4706591d7de620777f036eb5e8ea39bc7cabe1c5ff9 | MATLAB | 41,965 | 907 | %% SarginFP_ANYmaze.m
%
% Fiber Photometry Analysis
%
% It is recommended that users read through the documentation in full
% prior to using this analysis. This applies to each section in the code
%
% All outputs are accessed through the structure element "FP" in the
% MATLAB works... |
d08d33ff1cfc4c7d3dda207f322dcb190595c7a78c5be7c86bb8a1201d426e92 | MATLAB | 42,368 | 864 | function [cells_antibody] = main_select_cells(settings)
%% Analysis and pipeline folders
analysis_folder = settings.analysis_folder;
pipeline_folder = settings.pipeline_folder;
addpath(genpath(pipeline_folder));
%% Add staining details
staining_type = settings.staining_type; %IHC or IF
magnification = se... |
813a329dfe1800db37939a1f96bc49e09c875ad71eae814fc5a424b70c00521d | MATLAB | 42,584 | 1,033 | %
% BDP BrainSuite Diffusion Pipeline
%
% Copyright (C) 2019 The Regents of the University of California and
% the University of Southern California
%
% Created by Chitresh Bhushan, Divya Varadarajan, Justin P. Haldar, Anand A. Joshi,
% David W. Shattuck, and Richard M. Leahy
%
% This program is free sof... |
126ea9cd500648851b2f0b2bbac13e19eed8b158bdf8a6356cd409ba9d1d1c14 | MATLAB | 44,886 | 788 | function wod_project(slurm_task_id)
% time frequency analysis of WOD Neuralynx data
% parameters are set in wod_setparams.m
% slurm_task_id : input integer value used by the slurm script, to
% parallelise computation between rats.
% slurm_task_id is the number of the rat, as set in wod_setparams.m
% to compute/plot t... |
2256678a000355c951fefbf40a69ec4e339d2ebebc6b5189f1a44c51b98be0ca | MATLAB | 45,135 | 1,005 | % Copyright Yair Altman https://www.mathworks.com/matlabcentral/fileexchange/24615-editormacro-assign-a-macro-to-a-keyboard-key-stroke-in-the-matlab-editor-and-command-window
function [bindingsList, actionsList] = EditorMacro(keystroke, macro, macroType)
% EditorMacro assigns a macro to a keyboard key-stroke in the M... |
0a03d13fae0635e1a07f305339ef504d2d5d309693cab0c94c5b526b79dc0a65 | MATLAB | 45,929 | 1,015 | %% Analysis script for Valerio Frazzini's study on electrophysiology of pathoanatomy
%
% (c) Stephen Whitmarsh, stephen.whitmarsh@gmail.com
%
% requires bandpassFilter.m from Mario
% requires releaseDec2015 from Neuralynx website
addpath /network/lustre/iss01/charpier/analyses/stephen.whitmarsh/scripts/epilepsy/shared... |
087003932f118619b181334d9b44a82e4fec212e5407b64fc0c1d116a3ec0c52 | MATLAB | 47,754 | 683 |
%% Setting parameters
function [config] = setparams(config)
disp('setting parameters');
muscale = 50; % multiunit scale
% Patient 1, perivetricular heterotopia #1
config{1}.name = {'PSW','FA','ES'};
config{1}.prefix = 'N1-';
config{1}.muse.startend = { 'VF1__STAR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.