sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
99549bc88fb7e6228f3763373f7b093b7967a29344b13f4fa9bd8604ddc0e6e2 | MATLAB | 11,886 | 232 | classdef Analogin < Sharedmethods
% ANALOGIN Analog-to-Digital conversion channel
% An Analogin is a recording channel. For ABF files from the INF, this usually is the output of a Primary, Secondary,
% Scope or Mode BNC of an amplifier. Master 8 triggers are also often recorded.
%
% S... |
e0a3f3476f90dc62e698d8b51a56093f0ce7179a6f6862b37f842a0d91e6d6c8 | MATLAB | 11,904 | 232 | classdef Spike2Analogin < Sharedmethods
% ANALOGIN Analog-to-Digital conversion channel
% An Analogin is a recording channel. For ABF files from the INF, this usually is the output of a Primary, Secondary,
% Scope or Mode BNC of an amplifier. Master 8 triggers are also often recorded.
%
... |
136bfb69901ee1b29358daf6efead649a8b80708cf67f0b1d88f07cfc5304a1a | MATLAB | 11,953 | 210 | %% Fig. 1e: dose-response curves for percent of field active (avg. change in percent active post-pre)
% Modified from 'PercentFieldAtivePerFrame_MultCond_MC20210817.m'
% 1. Load 'AQuA_CytoGCaMP_ReceptorAgonistBathApp_Fig1.mat' workspace
% 2. Run'Fig1_PreppingDataStruct.m':
% Section A: experiment_type = 'Ba... |
3da1421a19fd2c807ceb214cd96e28550ee142f027769d1b0a46a43517424b94 | MATLAB | 11,966 | 301 | % breakyaxes splits data in an axes so that data is in a low and high pane.
%
% breakYAxes(splitYLim) splitYLim is a 2 element vector containing a range
% of y values from splitYLim(1) to splitYLim(2) to remove from the axes.
% They must be within the current yLimis of the axes.
%
% breakYAxes(splitYLim,s... |
61aa1bf3c1907c9e1ab68ffed2e8fa8a3c0deefd888b77b674f60681faa0ce0d | MATLAB | 11,968 | 336 | function CheckEegStates(FileBase,varargin)
% function CheckEegStates(FileBase,State, AuxData,FreqRange,Channels,Window, Action, Overwrite)
% starts the gui for browsing through spectral representation of the eeg and
% segmenting into states .. has lot's of features - try it. to speed up
% precompute the spectrograms us... |
3cd014fc465761ed2552e79e73e4fa15de4ec7c479371964f1bcdeda3d6c83cc | MATLAB | 11,975 | 296 | % weight design plotting and stats
selection="custom_tiled";
%selection="full_tiled";
weights_type=["custom_tiled","full_tiled"];
x_size_in = 50;%60;
x_size = 40;
x_srt = ((x_size_in-x_size)/2)+1;%6;%6;%8;%30;%8;%31;%8;
y_srt = ((x_size_in-x_size)/2);%5;%5;%7;%17;%7;%30;%7;
x_srt = 31;
y_srt = 30;
% x_srt = 18;
% y_s... |
c4f291dd0d1cb5b92217500eaf8fec9d532d9f735bf961b0635a2797ac03e5cc | MATLAB | 11,993 | 273 | %% Individualized_Info
%% Specify Paths
% Locate relevant folders
path_root = 'D:\PT_EEG_Analysis\';
% Makes use of folders "Data", "Output" "Output_General" "Output_Specific"
% in the same analysis folder. Make sure to create these folders if not yet
% present
data_location = [path_root 'Data\'];
output_di... |
325fa3b7396be4d293561a43ac77ddab03699cf036d321d71b5035085b25a6e8 | MATLAB | 12,003 | 142 | function plot_differences_geno(Dataset,CI_events,Sig_events,ee,plot_Xlimits,AUC_limits)
geno_names = {'D1','D2'};
colors_geno = [1 0 0; 0 0 1]; %red for D1 / blue for D2
events_names = {'door_eat','go_eat','eat','door_run','go_run','w_on','w_on2','w_off','w_blk','plt1'};
events_display = {'Feeding room access','Go eat... |
977748cea01950ef4d9138aebc478bcb18a6a0d92bc00e1a6af27544d42ffea8 | MATLAB | 12,037 | 263 | clear; close all; clc;
%% Analysis Parameters
Day = '111522';
RegisterMethod = 2;
CleanMethod = 1;
AnchorFrameStep = 50;
IsOrderReversed = 0;
IsPlot = 0;
%% Load Data
PathName = uigetdir('\\storage1.ris.wustl.edu\kerschensteinerd\Active\Emily\BasicPreprocessing\Files\Preprocessed', 'Select the MatFile folde... |
77047cf09512bc895041c35ccc2e421a74a7f9d152fc14edfbae9b838b30734e | MATLAB | 12,086 | 242 | %2024/02/26
%% define directories:
root_dir=define_flicker_root_dir;
figures_dir=[root_dir '/stg-analyses/NatureComm2024-figures'];
%% fetch single unit data:
%CONTINUE WORKING ON THIS...
%RANDOM SHOULD BE ALIGNED TO PULSE ONSET?
metadata_tbl=readtable([root_dir '/FlickerStudyMetadata.xlsx'],'Sheet','Sessions','Pres... |
8c4ab3f4aedf2cca75905f3a9e6e52c63a955dcc0b5e13783180c63ab7352d3f | MATLAB | 12,227 | 280 | function [perf, result, testlabel] = mv_classify_across_time(cfg, X, clabel, varargin)
% Classification across time. A classifier is trained and tested for
% different time points in the dataset. Cross-validation can be used
% to get a realistic estimate of classification performance.
%
% Usage:
% [perf, res] = mv_clas... |
43658dc7941bd9119b16e38894f0713409bd951915b94606c57e8ba14f7f213e | MATLAB | 12,233 | 318 | clear all; clc;
GroupData.Days = {...
% 1 2 3 4 5 6 7 8 9 10
'053018', '061118', '061918', '062518', '062618', '073018', '080218', '081518', '081618', '091918',...
'092418', '103118', '111218', '121418', '122518', '122718', '122918'... |
edc97120c415d164a8bd12fea5d7662a28277a9e591c8f5eee7cde24da666c5a | MATLAB | 12,253 | 246 | % This example script runs a decoding analysis on the example data that can
% be downloaded from the TDT webpage. It performs searchlight decoding
% between left and right button presses using a 2-fold cross-validation
% scheme in which splits the data in even and odd session.
%
% The extracted data is assumed in ... |
cb97d0ef07c4412959075ddca79d82407d3f5bfaab6c949170d4b9e5e6c80bea | MATLAB | 12,258 | 390 | % mv_regress unit test
rng(42)
tol = 10e-10;
%% Create a dataset where there is a linear relationship for the first half of the time points
nsamples = 100;
ntime = 300;
nfeatures = 10;
scale1 = 0.0001; % low noise = strong relationship
scale2 = 1000; % high noise = weak relationship
% Generate data with is noise f... |
5420bee24b80cc337f82c04095b864393d426dee77e2eaf50ea33881214a2000 | MATLAB | 12,270 | 367 | classdef AcqDataClass < matlab.mixin.Copyable
properties (Access = public)
bids
end
properties (Access = private)
logger
end
properties (Access = protected)
errmsgs
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% These m... |
7261f9f0c87f963384ad5c8bd6745d44c4570b316726dadc087ac0f352b18328 | MATLAB | 12,290 | 258 | % Extract single HRF from dcNew variable, the output of GLM fitting function
% save to mat file.
% For experiment 03 and 06
function createSingleTrialHRF_Updated_DiffBasis_Sbj03(sbjNum,respData,numClasses)
%saveDir = ['C:\Users\mn0mn\Documents\ResearchProjects\spatailAttentionProject\ProcessedDatafNIRS\Experiment' num2... |
095f96b02098a8092e53c08c87e7fae77c2a33e061f79237f9d747931c330547 | MATLAB | 12,297 | 356 | clearvars;clc;close all;
%% Read data from DRC analysis results
% and compile into a table "data"
% columns include: sp,np,err,PRF,CGF,wtf_reg_params, wtauphi_reg_params,
% strfpp, ctxtpp
% STRF parameters
K = 61; J = 8;
freq = logspace(log10(2),log10(64),K);
delay = 5.*(1:J);
% CGF parameters
N = ... |
cfae7d55ac5dd2b20a09cdb566fbebcbd150a3a93b31576f995a1a7a32f2d09e | MATLAB | 12,318 | 385 | % STATUS: active
%
% SYNTAX:
% grpLinePlotROINames_04(sbjGrp,numClasses,rejChnOp,saveOp)
%
% DESCRIPTION:
% Plot decoding performance (accuracies) of each channel. Displayed as
% probe where color mapping is used to represent decoding performance and
% lines are ordered as displayed on 2D probe.
%
% RESTRICTION:... |
bd61ff2a55f816104dda2d720fc6f24dd5e09984a2c842621e1496044457def9 | MATLAB | 12,345 | 479 | %% Test 1: Steady state gradient echo vs EPG
addpath(genpath('lib'));
addpath(genpath('EPGX-src'));
%% SPGR (RF spoiling)
% Use simple parameters
%%% Sequences
TR = 5;
alpha = 10;
phi0 = 117;
%%% Relaxation parameters: single pool, copy MT model
T1=779;
T2=45;
%%% Relaxation parameters: MT
T1_MT = [779 779];
f_MT... |
f22bdcc5cd22b612b477271959b63b954529f714809aaf5e4bd9931283d5587a | MATLAB | 12,355 | 224 | classdef Analogwaveformtab < Sharedmethods
%ANALOGWAVEFORMTAB Specification of an analog waveform
% Analog waveform object is an object specifying the analog waveform signal sent out via an OUT (DAC) channel. It
% contains the same information as the analog waveform tab seen when editing a pClamp proto... |
3b3a359496cfc3a2304944520f8d2b74f881e09af2adb093d7a22146e2eaf76e | MATLAB | 12,362 | 262 | outfolder = "./data/w_highpass/";
MFR_threshold = 0.2;
bin_AFR_s = 0.1;
bin_lm_s=1;
no_points_thresh = 5;
for tunnel_type = ["FF","FB"]
for well_type = ["source","target"]
AFR_table = compute_allregion_AFR_table(tunnel_type, well_type, MFR_threshold, bin_AFR_s, bin_lm_s, no_points_thresh);
... |
272406846d7b1b0981f839c21e66554fba863f08ea470ebdeab60329a1863ffe | MATLAB | 12,373 | 461 | clear
[task_info,supPath] = loadDBAndSpecifyDataPaths('Vermis');
PROBABILITIES = [25, 75];
DIRECTIONS = 0:45:315;
req_params.grade = 7;
req_params.cell_type = {'PC ss', 'CRB','SNR','BG msn'};
req_params.task = 'saccade_8_dir_75and25';
req_params.ID = 4000:6000;
req_params.num_trials = 100;
req_params.remove_question_... |
efa25b29d5b3d336ad03670b51023f5be4fcb2d8d1399b9bd98f4739b824f1a5 | MATLAB | 12,433 | 260 | % Inactive.
% Plot HRF using outputs from scripting
% plotHRF.m plot HRF using outputs from group.mat from Homer3 GUI
% Completed
% This plot all conditions from one channel.
function plotHRF2_MultiOnly(sbjNum)
figSaveDir = ['C:\Users\mn0mn\Documents\ResearchProjects\spatailAttentionProject\ProcessedDatafNIRS\Experim... |
bb42664063cff8e253dc35c2acdab859e2f47a483e59a6830d92730d4d4d844b | MATLAB | 12,442 | 523 | function Duszkiewicz2024_Figure_BasicProperties
% This script reporoduces panels from:
% Figures 1 and 2, Extended Data Figure 2
% Dependencies:
% TStoolbox
%TODO: script dependencies, links to external functions
% Copyright (C) 2023 by Adrian Duszkiewicz and Adrien Peyrache
%
% This program is free software; yo... |
fc96651f4a0ac6a7850a19c517594c0e49e9fb9bbc6c0eedf652dbc911f33f32 | MATLAB | 12,454 | 470 | function z = xmltools( arg, out_file, varargin)
% XMLTOOLS - tools for managing xml data sets
% - if arg is a string : arg is an XML file to convert into MATLAB struct
% - if arg is a variable : it is a MATLAB struct to write into XML, to stdout if out_file is not given
% use :
% z = xmltools('filename.... |
ca46c8e180eaca263fb971e76c1bd8814ca9f98a1de7b9b95a838dcb7415c65c | MATLAB | 12,492 | 332 | addpath('\\storage1.ris.wustl.edu\kerschensteinerd\Active\Emily\BasicFunctions');
BCTypelabels = {'BC5o', 'BC5i', 'BC5t', 'XBC', 'BC6', 'BC7', 'BC89'};
BCTypes = [50 51 57 58 6 7 89];
nType = length(BCTypes);
SpotSize = {[150 300], 800};
NumSpotSize = length(SpotSize);
T_detail = linspace(min(T(:)), max(T(:)),... |
15ff804414b88b6fc70cbef643f87c43ffc9be5f9b63a66f391e2e58acd81097 | MATLAB | 12,494 | 523 | function Duszkiewicz2024_Figure_SingleRec_IsomapREM
% This script reporoduces panels from:
% Figure 7, Extended Data Figure 10
% run in folder A3706-200313
% Dependencies:
% TStoolbox
% CircStat toolbox
% TODO: script dependencies, links to external functions
% Copyright (C) 2023 by Adrian Duszkiewicz and Adrien P... |
1d8debc39657058f2b248e90561e9429a41a5ceb9c1c63864d66d0a2edc87db1 | MATLAB | 12,527 | 344 | function visualize_cluster(clus, sourcemodel, varargin)
%VISUALIZE_CLUSTER is a visualization tool that plots glass-brain projections
%of the clusters specified in the input
%
%Use as visualize_cluster(clus,dim,inside,hl,val,div,flag)
%
%clus can be a cell-array of structure-arrays, or a structure-array
%if it is a ce... |
41174e030f7a854e8703d880d6bda16ffaab166286ec11b8debc2c65fd8a646b | MATLAB | 12,535 | 225 | % Plot raw intensity using outputs from scripting
% need to average first
% snirf1.data.dataTimeSeries
% plotHRF.m plot HRF using outputs from group.mat from Homer3 GUI
figSaveDir = 'C:\Users\mn0mn\Documents\ResearchProjects\spatailAttentionProject\RawDatafNIRS\Experiment03\Figures';
saveDir = 'C:\Users\mn0mn\Documents... |
0f98726278a50e3f67432773dc63e28b53ad8d725592d5e3700f561b382e4d10 | MATLAB | 12,554 | 282 | % Inactive.
function preprocessFNIRS06_Test(sbjNum,rawDataFN,movieList)
saveDir = ['C:\Users\mn0mn\Documents\ResearchProjects\spatailAttentionProject\RawDatafNIRS\Experiment' num2str(sbjNum)];
processedDataDir = ['C:\Users\mn0mn\Documents\ResearchProjects\spatailAttentionProject\ProcessedDatafNIRS\Experiment' num2str(... |
9d097aeb0c0f69eddc79f78ca8f22a7d9f1c2ef5e7dfdbc9c3960312ac2865b1 | MATLAB | 12,562 | 450 | function test_suite = test_bids_schema %#ok<*STOUT>
try % assignment of 'localfunctions' is necessary in Matlab >= 2016
test_functions = localfunctions(); %#ok<*NASGU>
catch % no problem; early Matlab versions can use initTestSuite fine
end
initTestSuite;
end
function test_get_datatypes()
% Check all kno... |
3ab6fcb1151d5d96d9a931c30fb832ba7a21617da47d1288259d6fde4b346d08 | MATLAB | 12,608 | 293 | %% NWB_SBCAT_import_main
% Sample code to load/analyze the provided dataset for Daume et. al.
% Calculates the following:
% - Behavioral metrics
% - Spike sorting metrics
% - Category cell selectivity metrics
% - Proportion of CAT cells per area
% - Table of LFP/SUs recorded per area
% - Sample cell plotti... |
abf388d5b5e7deae9697db5fe53cc53d8b337c8b0e1b244db14e040a1ace0c77 | MATLAB | 12,639 | 359 | function whereAreMyFiles = yOCT2Tif (varargin)
% This function saves a grayscale version of data to a Tiff stack file.
% There are a few options to save:
% 1) Save to a single large tif file, good for ImageJ viewing, less good
% for parallel processing. To use this option filepath should end
% with .... |
1cc5b163f0a569bd97aedaf46a4f4c1cc92e98b66b826026f383951de3f50d7d | MATLAB | 12,646 | 338 | function [subj results] = cross_validation(subj,patin,regsname,selname,maskgroup,class_args,varargin)
% Cross-validation classification
%
% [SUBJ RESULTS] = CROSS_VALIDATION(SUBJ,PATIN,REGSNAME,SELNAME,MASKGROUP,CLASS_ARGS...)
%
% Calls the classifier multiple times, training and testing on
% different subsets of the ... |
ee100b6bbbe84ff49b56f3f97dcf747a54ed364a88d3b64db393a6fefa304629 | MATLAB | 12,669 | 281 | %Part of figure: S6.
%2024/02/26
%% define directories:
root_dir=define_flicker_root_dir;
source_data=[root_dir '/stg-analyses/NatureComm2024-figures/Source Data']; %where source data for figures is stored
figures_dir=[root_dir '/stg-analyses/NatureComm2024-figures'];
%% draw example SPEP response:
%define which exa... |
91d60d9ea897ed1c2702236ed0b06a090714a8179d56cffc038170dab537b6b2 | MATLAB | 12,690 | 281 | % function cfg = decoding_parameter_selection(cfg,data_train,i_train_external)
%
% This function selects and changes parameters that are used for
% training the model (for example the cost variable C in SVM) and is an
% integral part of the decoding toolbox. This function is called from
% decoding.m and should no... |
c8001c580de1d2d422da590dcffdc31b360f0bf5e0be92fcd0636932cad3bddc | MATLAB | 12,718 | 355 | function exportSinglePageReport(this, outputFile, varargin)
% EXPORTSINGLEPAGEREPORT Generate a single-page PDF report for participants
% exportSinglePageReport(obj, outputFile) generates a PDF report at the specified path.
% Optional name-value pairs:
% 'ID' - Subject ID (string, default '')
% ... |
819b61da977227d43c653113bb83091e76c0030e735fceecde5693bf74c18526 | MATLAB | 12,723 | 302 | % output = transres_SVM_weights(decoding_out, chancelevel, cfg, data)
%
% Calculates the weights in source space (primal problem), if a linear SVM
% was used (otherwise no weights can be calculated for the primal problem).
% Use this function if you only want to plot weights and not more
% calculations, because then ... |
4146560c105e0f4e06f59aa349d2e94f0f34b750b66f4fe9bab0ea3bd293db7e | MATLAB | 12,808 | 269 | function priorityLevel=MaxPriority(varargin)
% priorityLevel=MaxPriority([windowPtrOrScreenNumber],['WaitBlanking'],['PeekBlanking'],...
% ['BlankingInterrupt'],['SetClut'],['ClutMovie'],...
% ['SND'],['sound'],['speak'],...
% ['GetSecs'],['WaitSecs'],['cputime'],...
% ['KbCheck'],['KbWait']... |
524046f0644dc8e1f0e33afd0af2658456a0088dd0717c1d47e5a67d1c79a78f | MATLAB | 12,886 | 291 | function oldPriority=Priority(newPriority)
% oldPriority=Priority([newPriority])
%
% Query and optionally set the execution priority of your script to
% 'newPriority' and switch from non-realtime to realtime scheduling (for
% 'newPriority' values greater than zero).
%
% Higher priority levels will reduce the chance of ... |
36cea0783c03f5826d5d546a573981621ca603f1ee506849415fd62f1fc11d7a | MATLAB | 12,927 | 189 | % GLM2 Test mean grid orientation:
% This script will test the mean grid orientatio based on the paramtrci
% modulation approach. The computed phase is used to re-align the angles'
% trajectories of the experiment to each participant mean grid orientation
%% Set up the environment
clc
clear
restoredefaultpath
SPMPath... |
57cb4eb1dd32a3f4c12ae9cf207c15653a30f7278d30f7cfe3ac0c313a00daf5 | MATLAB | 12,929 | 384 | function [QA] = NWB_QA_graphs(nwbAll,units, plot_behavior)
% NWB_QA_graphs Generates behavioral and spike sorting metrics used in the SB
% data release.
% nwbAll: A cell arrays containing all nwb files in the dataset
% units: A units struct created using NWB_SB_extractUnits
% is_sternberg: 1 or 0 logical if sternberg... |
892e31fdfa4a51c52b5916cb9c672dd69e2b8f7575d124cb8e93fc7d73bb85d6 | MATLAB | 12,940 | 370 | function h = mv_plot_result(result, varargin)
%Provides a simple visual representation of the results obtained with the
%functions mv_crossvalidate, mv_classify_across_time, mv_classify_timextime,
%and mv_searchlight.
%
%The type of plot depends on which of these functions was used.
%
%Usage:
% h = mv_plot_result(re... |
f43745668d0b0652bb7327e8fa350a43f2cc148d3b62af4518902a98e0caf52b | MATLAB | 12,951 | 261 | % function [a, mask, vol] = prevalence_loaddata(fnames_in, decoding_measure, mask)
%
% Helper function to load data for the prevalence analysis and prepare some
% variables. Can handle SPM images (.nii, .img) and TDT result .mat files
% (searchlight, ROI, wholebrain).
%
% IN
% fnames_in: nsbj x n_images cellstr, wher... |
e338a229fad97dabf38076303eedd477af959c84d634436531141119ebc8c7ef | MATLAB | 12,953 | 414 | % function figure_handle = plot_design(cfg,visible_on,max_n_fnames)
%
% If the figure handle should be reused, use as
% cfg.fighandles.plot_design = plot_design(cfg)
%
% This function plots your current design (analog to display_design.m).
%
% The output is informative, because you can see your decoding design at a g... |
d4372f746f33056089737901bccd4d1408015c0baa1ff40c7b01c89e08cecb77 | MATLAB | 12,966 | 303 | function gamma_fit_summary = plotTauAlphaGammaSummary(x_reps_arr, x_reps_labels, h_Fig, h_spG1, gamma_fit_summary)
% x_reps_arr is a cell array, each element is a struct array that must
% have fields 'all_alpha_pfit', 'all_tau_pfit'
% if re-running on existing 'gamma_fit_summary', the first block is skipped
% if yo... |
8cd24d5cad286025df89e82d9093344ea48b3aec206508dad19f11f0e1918f92 | MATLAB | 12,990 | 305 | function MasterRehoAnalysis
%% TEA Setup
[~, ~, ~,subj2get_21, subj2get_22, subj2get_com2] = getLongSubj(150,0,8);
%read in term scan QA data
termData = readtable('/home/sdamera/Documents/DBI/termData.csv');
termData = termData(termData.Var21>149,:); % keep only subjects that have greater than 150 volumes (> 5min)
te... |
44120a68da2ece980385c76d2360b413b749bdcf943391232bf5efc6ed468bf5 | MATLAB | 13,001 | 357 |
%% CLEAR AND INITIALIZE
clear;close all;clc;tic;
%% DEFINE THE STRUCTURE THAT WILL HOLD ALL THE PARAMETERS
params = [];
%% DEFINE INPUTS AND OUTPUTS
params.data_folder = 'F:\2022-131\PAVLOV\DATA';
params.analysis_folder = 'F:\2022-131\PAVLOV\Analysis';
params.figure.folder = params.analysis_folder;
%% STEP1 %%... |
a7489daf230757d4d9498f4bf2495e1e6ffd068433d3c0c9996a02772d5ba478 | MATLAB | 13,002 | 481 | %% Get Data
clear
[~,dataPath, MaestroPath,task_DB_path] =...
loadDBAndSpecifyDataPaths('Vermis');
get_excel_info('C:\Users\noga.larry\Google Drive\PhD Projects\Vermis Reward and Movement Quantification\dataTable',...
task_DB_path)
load (task_DB_path);
for ii=1:length(task_info)
str_date = regexp(task_in... |
a8fc07b6434d81c5a28cc56c7ab64f3214b28ba2ab143a74ba9e1e1cffa5bdd8 | MATLAB | 13,006 | 375 | %% Correlation based difference
nIter = 2000;
fea = Dfull(1:nBC, :);
typ = dtypes;
TypeDiff_val = nan(nType, nType);
TypeDiff_p = nan(nType, nType);
TypeDiff_map_p = nan(1, size(fea, 2), nType*nType);
DiffMap_ind = nan(nType*nType, 2);
BCMap = nan(nType, size(fea, 2));
BCMap_orig = nan(nType, size(fea, 2));
r... |
76a7791e979233179507648d58dd4c3861341cc380831b868a60f15b36267010 | MATLAB | 13,025 | 355 | % STATUS: active.
%
% SYNTAX:
% preprocessFNIRS06_CV_GLM_ssBeta_SingleChn_MultiOnly(s,numClasses,...
% rejTrOp,rejChnOp)
%
% DESCRIPTION:
% Single channel classification but otherwise identical.
% Preprocess raw data (light intensities) and perform cross validation
% where SS beta coefficients from training fo... |
44646853f0a1b46ea1d57d6e972e4d94748d7a58ba9bce6f5c81bee687d2600c | MATLAB | 13,061 | 347 | function cifti_conn_template_for_wrapper(wb_command, dt_or_ptseries_conc_file, series, motion_file, FD_threshold, TR, minutes_limit, smoothing_kernel, left_surface_file, right_surface_file, bit8, remove_outliers, additional_mask, make_dconn_conc, output_directory, dtseries_conc, keep_conn_matrices, template_file)
% wb_... |
5ed50839a72bbd9daaff24443c14bb0ef3d99d3e4d58bd001914791513fca363 | MATLAB | 13,063 | 414 | function [handles, dot_locs] = boxplot_wani_2023_hj(x, varargin)
% Draw a box plot with some additional useful features. (work in the
% matlab version since 2016 maybe 2015 as well, but not tested).
%
% Usage:
% -------------------------------------------------------------------------
% boxplot_wani_2016(x, varargin)... |
373d50e9bf5f995b80b020f93c2a7d4c601b3e222b8f6a90f4734ec8027e3d1d | MATLAB | 13,081 | 342 | %% DEFINE PATHS TO DATA
clear; clc; close all;
if ispc
Kilosort_dir = 'D:\ds_pred\sc_rec\ChATDTR\20230422_poly3\1-6mm\kilosort3';
MatParamFile = 'D:\ds_pred\sc_rec\ChATDTR\20230422_poly3\1-6mm\SC_April22_1_6mm.mat';
% MatParamFileMb = 'D:\ds_pred\sc_rec\ChATDTR\20230205_poly3\1-2mm\SC_Feb05_1_2mm_M... |
ce6645edb68bcdd636a5078db7fc49a4ca436e90ef0ae9ba932c1b1393fe94d9 | MATLAB | 13,103 | 414 | classdef RegistriesClass < handle
properties
userfuncdir
igroup
isubj
isess
irun
funcReg
config
filename;
end
methods
% ----------------------------------------------------------------
function obj = R... |
87fc8f4c970227e0e830f794173276f6d6b45a5ee727df4ea8bdb66f095f716d | MATLAB | 13,112 | 295 | % Only for sbj 12 and after.
% For sbj 08 and 10, use createSingleTrialHRF_Updated_DiffBasis(sbjNum,respData,numClasses)
% Use calcCumSum_AllBasis
% Test Different Classifiers
% Only use Gaussian Basis for HRF fitting.
% Add repts and CI. Used for publication
function plotCumSum_MultiOnly_DiffStartT_AllChn_CompClassif... |
5a4f9be8f65aa563983fa0a7add97bca527715fd28494f1de04e416aa8273e0c | MATLAB | 13,117 | 365 | ExpTab = unique(ROITable(ismember(ROITable(:, 8), 150), 1:3) , 'rows');
nExpTab = size(ExpTab, 1);
%% Get ROI size
if exist('ROIdiameterMeasurement.mat', 'file')
load('ROIdiameterMeasurement.mat');
else
nonexistfile = [];
iex = 1;
ROISize = nan(size(ROITable, 1), 1);
ROISizepix = nan(size(R... |
917f34e7d395c2fc882b2900e5da2039d3ea7f70bc2083338d2039d722096e73 | MATLAB | 13,139 | 323 | % output = transres_SVM_weights_plusbias(decoding_out, chancelevel, cfg, varargin)
%
% Calculates the weights in source space (primal problem), if a linear SVM
% was used (otherwise no weights can be calculated for the primal problem).
% Use this function if you want to plot weights or do other calculations
% th... |
5618f0e85589a3aa799d5fca45b6372a84b1c9200d83c871859e55682ba62862 | MATLAB | 13,148 | 409 | % % Work with sbj 08 and after
%
% Use preprocessFNIRS06_MultiOnly.m results, which use GLM regression on entire
% dataset (no cross-validation, no channel or trials rejection). Update preprocessFNIRS06.m and
% preprocessFNIRS06_MultiOnly.m to reject channels and trials.
%
% Pick channel with highest CA/lowest p-value... |
a413d5b3461e8e1cc1b42893d8a8219bc4641178b1511ae708da431bf1b9e1ba | MATLAB | 13,190 | 317 | % split into single and multi groups.
% new. Use trials from dcNew var
% Use different method of concatenating to validate the code in
% calcCumSumUpdateDCNew.m
function calcRawValueUpdateDCNew(sbjNum)
% channels pruned stored in mlActAuto var
processedDataDir = ['C:\Users\mn0mn\Documents\ResearchProjects\spatailAtten... |
a449f7aa54bc686f409a386967fe3c8e4323347cebe742aaa5a21f4ae6139871 | MATLAB | 13,196 | 422 | function test_suite = test_bids_query %#ok<*STOUT>
try % assignment of 'localfunctions' is necessary in Matlab >= 2016
test_functions = localfunctions(); %#ok<*NASGU>
catch % no problem; early Matlab versions can use initTestSuite fine
end
initTestSuite;
end
function test_query_phenotype()
BIDS = bids.l... |
d2bb6e842ecd962c076c1b7616cdc0f72d07a2fcd267e74c3940362b067f62d4 | MATLAB | 13,199 | 282 | clear
clc
outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\No Stim\AFR Output";
MFR_threshold = 0.2;
bin_AFR_s = 0.1;
bin_lm_s=1;
no_points_thresh = 5;
for tunnel_type = ["FF","FB"]
for well_type = ["source","target"]
AFR_table = compute_allregion_AFR_table(tunnel_type, well_type, MFR_threshold, bin_A... |
8834a2d47c16f954e062ddbd495a53648c46b4d77d07ad76bb5ed9608de988f1 | MATLAB | 13,242 | 357 | % STATUS: active.
%
% SYNTAX:
% preprocessFNIRS06_CV_GLM_ssBeta_SingleChn_HbX_MultiOnly(s,numClasses,...
% rejTrOp,rejChnOp)
%
% DESCRIPTION:
% Single channel classification, test all 3 chromophores in a single
% classification but otherwise identical.
% Preprocess raw data (light intensities) and perform cross... |
4e1db515671b0a27db6a220cabf1db086ee8680c26dcfce558a264ccdbe55620 | MATLAB | 13,263 | 358 | %% CLEAR AND INITIALIZE
clear;close all;clc;tic;
%% DEFINE THE STRUCTURE THAT WILL HOLD ALL THE PARAMETERS
params = [];
%% DEFINE INPUTS AND OUTPUTS
params.data_folder = 'E:\NAS_SD\SuiviClient\Triffilieff\2023\Data\Lola AMP';
params.analysis_folder = 'E:\NAS_SD\SuiviClient\Triffilieff\2023\Analyses\Lola AMP';
params.... |
6b5768d46a9ffa56f2a03a4da8a01c1f028d268ea9015f780bf4e5822fae7df0 | MATLAB | 13,264 | 362 |
%% CLEAR AND INITIALIZE
clear;close all;clc;tic;
%% DEFINE THE STRUCTURE THAT WILL HOLD ALL THE PARAMETERS
params = [];
%% DEFINE INPUTS AND OUTPUTS
params.data_folder = 'F:\2022-131\FR1 sans delai\NAC\DATA';
params.analysis_folder = 'F:\2022-131\FR1 sans delai\Analysis';
params.figure.folder = params.analysis_folde... |
0c82c79082c6cda4ac2124d3e91e5663e673fa8857006e4071b79fbea7c9eb08 | MATLAB | 13,293 | 323 | %% Figure 9 Van den Berg*, Wong* et al, 2024, iScience
datapaths;
Mice = [25,26,27,28,29,30,32,38,42,43,49,50,52,57,71,72,73,74];
scales = {'pow','amp','dB40','dB2','dB','bin'};nScales = length(scales);
scaleLbl = {'pow','amp','dB40','dB20','dB0','binary'};
optstyle = 'ASD';
ctxtColor1 = [.5,0.7,0.5];
ctxtColor2 = [... |
67ccc26118d56529ff042dac52456ba56c46dbf78660e2698ab870639985c8c0 | MATLAB | 13,326 | 349 | % @title Pospischil Neuron optimized for network simulations
% @file PospischilNeuralNetworkV2.m
% @author Farad Khoyratee, Romain Beaubois
% @date 10 Aug 2021
% @copyright
% SPDX-FileCopyrightText: © 2018 Farad Khoyratee <farad.khoyratee@gmail.com>
% SPDX-FileCopyrightText: © 2021 Romain Beaubois ... |
07a4bd9f8afb2ef76621c92c3f11531a55c342019c2c12f7a3cc0c68f630fa3e | MATLAB | 13,424 | 263 | function preproc()
clear all
cfg = load('neurovar_cfg.mat').cfg;
tr_duration = 0.627;
n_slices = 24;
for i_sub = 1:44
fprintf(strcat('Preprocessing Sub_', string(i_sub),'\n'));
n_runs = length(cfg.sub(i_sub).run);
%% Create VDM (from Fieldm... |
531c0711622c7c1dec1e698f153c4c826efba644b12f021b9b439f804e964a9f | MATLAB | 13,430 | 333 | function submitStatusReportToGoogle(st)
% st can be status report structure or path
%% Constants
sendToHistologyDistance_um = 550;
%% Input checks
if ~exist('st','var')
st = [s3SubjectPath('','LG') '0LibraryStatistics/' '/StatusReportBySection.json'];
end
if ischar(st)
st = awsReadJSON(st);
end
... |
da88dde8fb744d7b89ca12a4d308dbf0a85cb38939b482d2db95c9a1a5abb4ad | MATLAB | 13,477 | 340 | % split into single and multi groups.
% new. Use trials from dcNew var
% option to re-run training and classifying or pull from saved data
% sbjList is cell array of experiment "number". Ex: sbjList = {'01','02'};
% sbjList = {'08','10','12','13','14','15'};tInd = 8;featureName = 'Cumulative Sum';numRept = 5;numClasses... |
5ddf0fa5b71202dd99a0a4b5bb0851687c432fbad9095cf1c2610e9d2b1098aa | MATLAB | 13,493 | 372 | % (C) Copyright 2021 Remi Gau
% (C) Copyright 2014 Guillaume Flandin, Wellcome Centre for Human Neuroimaging
% TODO compare results to original script
% TODO:
% fix model specification warning
clear;
download = true;
force = true;
verbose = true;
use_schema = true;
tolerant = false;
preproc_pipeline_name = 'spm12... |
ee197db5dcf2bc757f20a9bb4f86a6801464fbcb89ba83d48514576c5f835b5c | MATLAB | 13,511 | 429 | function [Di,Do,spatial_weight] = tsss_roi_ext(S)
if ~isfield(S, 'Dref'), S.Dref = ''; end
if ~isfield(S, 'magscale'), S.magscale = 100; end
if ~isfield(S, 'Lin'), S.Lin = 8; end
if ~isfield(S, 'Lout'), ... |
0f8bbb1d19b78a710779e3a05e00d53872df2cea89dc3b5c89b06c3528e1e8a6 | MATLAB | 13,550 | 416 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
classdef Logger < handle
properties
appname
filename
fhandle
options
DEBUG
chapter
end
methods
% -------------------------------------------------
function self = Logg... |
6ab68c657084971dbfe6f929351e7a53bb25d151f70263fd31158fcb3c98d6dc | MATLAB | 13,554 | 287 | %% SingleSession Analysis - for Scara Joystick Task - ran from datajoint
% Written by Alice Mosberger and Leslie Sibener
% Version May 2021
%% 1) Load .mat files and determine which target was active in this session
load(FilePath); % get all extra variables from this block, Target, AnimalName etc.
%% Setting... |
7f8336e0f43e6e062679c884196de8897208804b15eec01bc6ee55d4bf8262c3 | MATLAB | 13,557 | 372 |
%% CLEAR AND INITIALIZE
clear;close all;clc;tic;
%% DEFINE THE STRUCTURE THAT WILL HOLD ALL THE PARAMETERS
params = [];
%% DEFINE INPUTS AND OUTPUTS
params.data_folder = 'G:\Fiber_Photometry\GcampD1D2 2022-119 NAc anx Roman\2022-119_PAVLOV_FR_RL\Baseline indiv -2k -05k\2022-119_PAVLOV_GCaMP_D1D2_NAc_DATA';
params.a... |
5e05b5c82c83105f25bce184e877d5b7ac27852d0cb78556f35a5df92d80c7b4 | MATLAB | 13,597 | 363 | function activities = C_elegans_dynamics(noisy_connect,ns,norm_indegree_chem,norm_indegree_gap,expression_type,diagonal_symmetry,off_diagonal_symmetry,intra_connections,binary_system,random_removal,noise,chem_strength,gap_strength,V_Osc,V_drive,voltages,SynapVar,rand_initial,V_thresh,V_mean,V_std,total_time,synvarstd,s... |
5f419a3d26faaaf934e2b13e478c37084b0fb3df345c9d8c174bc93ffd9edf03 | MATLAB | 13,608 | 240 | % Plot delta OD using outputs from scripting (dod is OD)
% need to average first
% plotHRF.m plot HRF using outputs from group.mat from Homer3 GUI
figSaveDir = 'C:\Users\mn0mn\Documents\ResearchProjects\spatailAttentionProject\RawDatafNIRS\Experiment03\Figures';
saveDir = 'C:\Users\mn0mn\Documents\ResearchProjects\spat... |
74267928cd0527cb3546819cec2b03c4f204ed7145377b44fd8d18bb4399699e | MATLAB | 13,649 | 341 | %==========================================================================
% This script analyzes the behavioral data.
%
% Lukas Kunz, 2023
%==========================================================================
% start
clear; clc; close all;
% paths
paths = [];
paths.beh = 'G:\My Drive\Manuscripts\2023_... |
c27057dc57f8adca22195b72153826ff372006139a504baad268b53ba9571712 | MATLAB | 13,673 | 474 | %% data Cal for DG-CA3
set(0,'defaultAxesFontSize',32)
dir_lis=["H8","H9","H10","H11","H12","J8","J9","J10","J11","J12","K8","K9","K10","K11","L8","L9","L10","M8","M9"];
load('test 32 CA3 400ms thr.mat')
wells=tab.rspin;
load('test 31 400ms thr.mat')
tunnel=tab.rspin;
is_cw=[1,1,0,1,0,1,0,1,0];
load('Index_fd_CA3_... |
0a22fa096604cb55ae4b1bf88be8ef0cfe0cdde560cb92eb78d0ca8c11fbd148 | MATLAB | 13,677 | 370 | % STATUS: active.
%
% SYNTAX:
% preprocessFNIRS06_CV_GLM_ssBeta_SingleChn(s,numClasses,rejTrOp,rejChnOp)
%
% DESCRIPTION:
% Single channel classification but otherwise identical.
% Preprocess raw data (light intensities) and perform cross validation
% where SS beta coefficients from training fold is passed to te... |
fc8b04be082ce6be3a526fc5c657e615e959aec3e35c5d0a0ae2045ce19bc9cf | MATLAB | 13,690 | 326 | % This script estimates OCT light depth of penetration, tissue intefrace
% position and max depth for evry point in the volume.
% - Script for evaluating the depth of penetration in a given stitched volume.
% - The script will generate figures of different slices for visualization and error detection.
%% Inputs
... |
d287cca4d917e65f8a65493453d85d75c1768c6a086b738c3d082c47baa3f53d | MATLAB | 13,770 | 333 | % STATUS: active. For internal report.
function plotPerformance_CV_GLM_ssBeta(sbjNum,numClasses,saveOp,rejTrOp)
processedDataDir = ['C:\Users\mn0mn\Documents\ResearchProjects\spatailAttentionProject\ProcessedDatafNIRS\Experiment' num2str(sbjNum)];
figSaveDir = ['C:\Users\mn0mn\Documents\ResearchProjects\spatailAttent... |
8bfc22836fead9bdeea542673bb98e3c4571ffd242b6c1381c77d7a17202c6b2 | MATLAB | 13,789 | 256 | function [AllTraj_VF, All_VF, Av_VF, Av_VFd, Quiver, AllBin] = VectorField_wAngles(Traj,ptsx,ptsy, Target, occmin)
% This function takes each point of the trajectory and calculates the
% vector to the next point. Use interpol_6ms to ensure stable sampling
% All points are then assigned to bins, and for each b... |
63d16c85cc5d15cc870347d7a4b76f42af9c8ad531dde46a0a71feb039fe24fb | MATLAB | 13,793 | 320 | % STATUS: active.
%
% SYNTAX:
% preprocessFNIRS06_MultiOnly(sbjNum,rawDataFN,movieList,opFTest)
%
% DESCRIPTION:
% Convert nirs to snirf file format, preprocess data and fit GLM to
% entire dataset. Used for plotAllHRFs.m
%
% RESTRICTION:
% Only for sbj 12 and afterward.
%
% INPUTS:
% sbjNum - subject ID. 2-digits... |
d442de35f7ba9633ae0d93d3997af73e81cc9412358ded98b6e02e44a38388ef | MATLAB | 13,836 | 247 | function [Res] = generateShuffledBVCResponses(ModMaps, DataIn, varargin)
% Generate shuffled BVC fit and vector response maps, and save for each rate map:
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Analysis paramet... |
1f9826e579ec8c87a74ffe9f2ce092711f4001c83048d0f4e88701ca12ff16c6 | MATLAB | 13,860 | 326 | % split into single and multi groups.
% new. Use trials from dcNew var
% Use different method of concatenating to validate the code in
% calcCumSumUpdateDCNew.m
function calcMaxMinValueUpdateDCNew(sbjNum)
% channels pruned stored in mlActAuto var
processedDataDir = ['C:\Users\mn0mn\Documents\ResearchProjects\spatailAt... |
f3d6abc31358f1de3dbf248d5f781ddeac6ded61240f2601176c6bb149d29b42 | MATLAB | 13,863 | 237 | %% Fig. 2d & Ext. Data Fig. 7a: Detected GluSnFR events following RuBi-glutamate uncaging
% Plotting AQuA events selected as 'favorite' during event detection
% for a flexible number of conditions and pulse numbers
% From AggregatingAndPlottingFavorites_MultCond_MC20230811.m
%
% For Fig. 2d & Ext. Data Fig. 7a:
... |
9631e14c7c8e6447ccfc5b1078c3278c5f365cbbbcd7773480c9fef79a83cfdb | MATLAB | 13,884 | 299 | clear
clc
% outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\5 HFS\AFR Output";
outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\5 HFS\AFR Output Full Index";
load("D:\Brewer lab data\HFS\Temporal Analysis\5 HFS\dataInfo.mat")
names=dataInfo.meaName;
% MFR_threshold = 0.0333;
MFR_threshold = 0.2; %original 0.... |
b1fc4963d21a88b3f3dfebd5a3d0c907a7521d3aaa5a71e587324845f03ff208 | MATLAB | 13,904 | 374 | % STATUS: active.
%
% SYNTAX:
% preprocessFNIRS06_CV_GLM_ssBeta_SingleChnHbX(s,numClasses,rejTrOp,...
% rejChnOp)
%
% DESCRIPTION:
% Single channel classification, test all 3 chromophores in a single
% classification but otherwise identical.
% Preprocess raw data (light intensities) and perform cross validation... |
5136d17fb3ab435a3ec462407d0674d81b48d920265a4f15172e35267858ee22 | MATLAB | 13,924 | 299 | clear
clc
% outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\40 HFS\AFR Output";
load("D:\Brewer lab data\HFS\Temporal Analysis\40 HFS\dataInfo.mat")
outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\40 HFS\AFR Output Full Index";
% outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\40 HFS\AFR Output 1bin 3... |
03a8b79e6533e3f2d35098b5b198e530a44722aa4668a750dfe6f727431aaf98 | MATLAB | 13,943 | 252 | function [] = compareBVCvsBC(Res,varargin)
% Plot and stats to compare development of BVCs and BCs in a given brain region.
% Wrote this as 'plotCellPropsByAge' was getting to long and unweildy to edit easily,
% this function should be shorter and more focused.
% TODO, 01/08/22
% Change AR to be longer, for more age b... |
f97bc55f82f48e997767e8771b6b0c8e050a58fb357646c2036551db1eb74663 | MATLAB | 13,971 | 223 | %% Extended Data Fig. 7e: compare average baseline event frequency for neighboring cells across multiple recording rounds in the same FOV
% Modified from CompBLEventFrequency_XSecStatBins_MultCond_MC20230830.m
% sections 1 & 6
%
% For Extended Data Fig. 7e:
% 1. Load 'AQuA_CytoGCaMP_2PMultiRoundGluUncaging_70AU_... |
c36b3ab91b30b3d71e03aa14ec396f2886be134fb3b6866d8fd27900e6b42690 | MATLAB | 13,997 | 300 | %% Update 4/25/22: updated to have sliding time step
clear
clc
% outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\40 HFS\AFR Output";
load("D:\Brewer lab data\HFS\Temporal Analysis\40 HFS\dataInfo.mat")
outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\40 HFS\AFR Output Full Index slide 10sLM";
% outfolder = "... |
26abbdf99436b8d5dbbb24d04df62cbc74c59c9ec9a22c6dc0afc26daac9f3a9 | MATLAB | 14,000 | 300 | %% Update 4/25/22: updated to have sliding time step
clear
clc
% outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\40 HFS\AFR Output";
load("D:\Brewer lab data\HFS\Temporal Analysis\No Stim\dataInfo.mat")
outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\No Stim\AFR Output Full Index slide 10sLM";
% outfolder =... |
ac8550b3e1b368225faf58f57bc4d10bb19c48f44f83a48601cc7abca4e1b58e | MATLAB | 14,002 | 265 | %% Event frequency per astrocyte (event number/60s) pre- and post-stim
% Extended Data Fig. 1b-c event frequency scatter plots
% Extended Data Fig. 1b: comparing baseline event frequency per astrocyte
% pre-Baclofen and pre-tACPD
% Extended Data Fig. 1b: baseline event frequency vs post-stim event
% frequency per ... |
e7306afb005ba2c46e462e66175cec118b1b846b0b0dbc25b5f740560ff1826f | MATLAB | 14,009 | 302 | clear
clc
%outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\No Stim\AFR Output";
% outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\No Stim\AFR Output 1s bin AFR";
outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\No Stim\AFR Output full idx";
% outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\No Sti... |
f2204cbd412a317933f00d5fe2d3b6e857a5f115fb293ad21980f53f10b705c6 | MATLAB | 14,053 | 256 | function [Res,rThrAll,rThr2] = shufThrCellClassifier(Res,ResShuf, varargin)
% As it says in the function name .. generates 'isBVC' field in Res struct.
%
% Res = shufThrCellClassifier(Res,ResShuf,varargin)
% [Res,thrVals] = shufThrCellClassifier(Res,ResShuf,varargin)
%
% ResShuf can be s... |
4d13964c2a9a690a5c4c247b4321dc99ea962a8829d6fe13cac3a8c1d1b9f87a | MATLAB | 14,054 | 301 | %% Update 4/25/22: updated to have sliding time step
clear
clc
% outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\40 HFS\AFR Output";
load("D:\Brewer lab data\HFS\Temporal Analysis\5 HFS\dataInfo.mat")
outfolder = "D:\Brewer lab data\HFS\Temporal Analysis\5 HFS\AFR Output Full Index slide 10sLM";
% outfolder = "D:... |
6c6e8d562e2d5d2052e4941ccbc6c6c9892fcc790a6f82e541aae08da9795870 | MATLAB | 14,063 | 331 | function [perf, result, testlabel] = mv_classify_timextime(cfg, X, clabel, varargin)
% Time x time generalisation. A classifier is trained on the training data
% X and validated on either the same dataset X. Cross-validation is
% recommended to avoid overfitting. If another dataset X2 is provided,
% the classifier is t... |
3eaaf28d0f29eb01b1aae257c6c1b4d2ac20f237ea5769fe624b8b606a041ad2 | MATLAB | 14,098 | 347 | % alternative version of generate weights
% this script generates a synaptic_weights matrix
% which can be run in the main generate weights script
%
% references: https://www.mathworks.com/matlabcentral/answers/180778-plotting-a-3d-gaussian-function-using-surf
% https://www.mathworks.com/help/symbolic/rotation-matrix-a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.