sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
62c1830d00c352f7c01ca0012b6552cc491422bb2e15c6aecce49ffad5e8b908
MATLAB
17,956
467
function B = jadeR(X,m) % B = jadeR(X, m) is an m*n matrix such that Y=B*X are separated sources % extracted from the n*T data matrix X. % If m is omitted, B=jadeR(X) is a square n*n matrix (as many sources as sensors) % % Blind separation of real signals with JADE. Version 1.8. May 2005. % % Usage: % *...
51c3fe2c23da606332cfa1d45c509fe1899d7f9e40f6e5a002af9f75c5851103
MATLAB
17,970
444
function Y = gp_event_plot(varargin) % plotting tool for group level event related response % returns the adjusted response (ie the gp level adjusted beta+BF) as well % as the average fitted data (ie the mean on indivudual modelled data) % % Note the if boosted data are used it recomputed the modelled data using % the...
c5e8156f60b4cabf9094789b349522de26ef840df330dd9c7ae2b9f84bb4bb69
MATLAB
17,976
411
function PegTouchAnalysis24ch(R_PegTouchCell,L_PegTouchCell,SliderTouch,TurnMarkerTime,OneTurnTime,RpegTimeArray2D,LpegTimeArray2D,FTselect) %'PegTouch'‚Ísensor‚̏î•ñ‚𓾂½‚¾‚¯B12ch‚·‚ׂĂªRpeg12–{‚ÉŠ„‚è“–‚Ä‚ç‚ê‚Ä‚¢‚邯‚«‚É‚ÍPegTouch‚¾‚¯‚Å‚à‚æ‚©‚Á‚½B %‚µ‚©‚µARL‚Å6ch‚¸‚ÂŽg—p‚·‚éÛ‚ɂ́A1-6A7-12‚ðŠ„‚è“–‚Ä‚é•K—v‚ª‚ ...
8c130a75b5d60d5424945c5a091bf76aa36fbd92089415bde433a8fe2fe0f8d8
MATLAB
17,988
553
clear close all; % clc; R1 = importdata('E:\Sameni\Projects\Seizure\SourceCodes\Probabilistic\SourcesWithResultsBackup\testFreqDomainEnergyIncreaseRate01.txt'); R2 = importdata('E:\Sameni\Projects\Seizure\SourceCodes\Probabilistic\SourcesWithResultsBackup\testICASubspaceAngles01.txt'); R3 = importdata('E:\Sameni\Proje...
77e59d28692d4a221b836867cfc3b3ddc0ea88a2f6da4e94dfac54b0f140f854
MATLAB
18,013
464
function RepeatFig20170612 close all global Repeat MaxRepeat K %XXX@o11oo‚Æoo11o‚ÅÅ‚à‚‚¢•”•ª‚ð’T‚µ‚āA‚»‚±‚𒆐S‚É10binŽl•û‚­‚ç‚¢H‚͈̔͂ō‡Œv’l‚ð‹‚ß‚é % o111o‚̐^‚ñ’†‚ÅÅ‚à‚‚¢•”•ª‚ð’T‚·B %@‚»‚ꂼ‚ê‚̗̈æ‚ɂ‚¢‚āAoo1ooAo11ooAoo11oAo111oA1111oAo1111A11111‚ł̒l‚ð‹‚ß‚éB %@ % cd C:\Users\B133_...
0882e72e13a7e96399482aa05551dcfa8c4c983e866eacc3cdcd0f489464a474
MATLAB
18,060
362
function Lt_Rt_Pattern1_and_CV__W3_Touch_Main20201208 path=['C:\Users\C238\Desktop\touchcellLtRt_Hirokane']; cd(path); LS=ls; PositiveTouchesPointArray=zeros(1,6); FRCVLPWTouches=[]; FRCVRPWTouches=[]; MeanLt_FR_Session=[]; MeanRt_FR_Session=[]; MeanLt_CV_Session=[]; MeanRt_CV_Session=[]; Posi5L=[]; for...
5245f0c23e6c7acfacc5107722cbff9a9ef0a927af25a52f0162914acd4d964e
MATLAB
18,071
668
function st = newfft(om_in, Nd_in, varargin) %function st = newfft(om, Nd, [options]) %| %| New version of NUFFT (pun intended) that uses real interpolation kernels. %| (The original NUFFT code used complex interpolation needlessly.) %| %| This returns a "strum" object with methods for both forward and adjoint %| d-di...
f1e6195f915fbf4f1f98156c40a6aef57ef22b57a7643dc47e97f1ce6b096c80
MATLAB
18,103
416
function [n_best P_best V C]=fast_oopsi(F,V,P) % this function solves the following optimization problem: % (*) n_best = argmax_{n >= 0} P(n | F) % which is a MAP estimate for the most likely spike train given the % fluorescence signal. given the model: % % <latex> % \begin{align} % C_t &= \gamma*C_{t-1} + n_t, \qquad...
d4b515ca5ca81e907e586f7c7fffa5460d7621d51b1acbb81f47b6a51af71dd2
MATLAB
18,151
498
function [Out1, Out2, Out3] = fastica(mixedsig, varargin) %FASTICA - Fast Independent Component Analysis % % FastICA for Matlab 5.x % Version 2.1, January 15 2001 % Copyright (c) Hugo Gävert, Jarmo Hurri, Jaakko Särelä, and Aapo Hyvärinen. % % FASTICA(mixedsig) estimates the independent components from given % ...
81b1d3de0df0cbab31d9c5d65d1ddc0d776ce06bcacd5f69130ded5b874f5f39
MATLAB
18,181
533
function [Result_Detection]=Analyse_Calcium_Data() %addpath('F:\Calcium_Matlab_code\Analyse stanilav09102020\emd\'); %addpath('C:\Users\Analyse\Documents\MATLAB\Analyse stanilav09102020\emd\'); close all; clear all; clc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % - - - - - - Variables that can be c...
6a7b5c5573f052a3c2435cce2f6d356ab3c3b981063b33af6180a92aeb49e7bf
MATLAB
18,232
520
% Funtion to Read Images from to find cells that colocates % with Calcium Imaging Experiments % It reads images average and display them from some Dye % IT also samplea som frames from the CaImaging % Display a Merge of Both Mean Images: Dye and Calcium % Save Colocated Coordinates in the .mat File of the Experiment D...
38f4a90c17a91da64737b123a7138a3f66f205688639c6d515a5aa26468c7afb
MATLAB
18,283
432
function [underlay, brainFig, newFig, addedHemi] = patchUnderlay(varargin) % Patches hemisphere vertices, manages lighting, and handles surface overlays. % % This function creates 3D patches for left and/or right brain hemispheres, % adds default or specified lighting, and can overlay a new surface onto an % existing f...
0d36738a09e4a2507b746fd3e2fa1c040b612541de62947bdcfdc75b4bcbf699
MATLAB
18,331
330
function fileData = readHeader(rawPath) %READHEADER Read in and store header data % adapted from scripts available here: http://www.intantech.com/RHD2000_evaluation_system.html d = dir(rawPath); if isempty(d) warning('Could not find file %s', rawPath); fileData = []; return; ...
ad3524b78ae71cbfaefe7cb396a23c7b7b619cda24d8fb867116497f4bad57f2
MATLAB
18,438
404
% Main script to Load & Process Calcium Fluorescence Signals % It detects Calcium Transients from VIDEOS of a single slice (EXPERIMENT) % Sugggested Directorie's Strcuture: % NAME_EXPERIMENT/ {VIDEOS & Coordinates from fSIENN): % Input (same directory): % ALL (XY).csv Coordinates from 4th row x,y,r % Condit...
161c9d1cfba2b687329d465c74deed544496748152bd11e5dbd766f640ca719b
MATLAB
18,440
426
function ASTA3(filename, folderpath, experimentNumber, startTime, endTime) % This function performs the classification of firing patterns. % See the documentation for more detailed information about regularity % and bursts frequency thresholds. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
249c9f721142da851cfbedc01c13aeda1ffa25dd2a775343594d511779adcad3
MATLAB
18,513
404
%% mean-field stuff. We use parameters andto estimate firing rates %% NOTE! mean Vs are now autonomus from single cell simulations % Input: C_EE,C_EI,C_IE,C_II connectivity matrices % S_EE,S_EI,S_IE,S_II synaptic strength % p_EEFail Synaptic failure prob % lambda_E lambda_I LGN input %...
f0e483775a87121993e1ade1f71a4b2339b06b12a33c79133469eb3386b56df1
MATLAB
18,513
635
classdef IntanRecording < jrclust.interfaces.RawRecording %INTANRECORDING Model of a single recording in the traditional Intan file format %% INTAN-SPECIFIC PROPERTIES properties (Hidden, SetAccess=private) rawFid; end properties (Hidden, SetObservable) fileData; end proper...
75e91253054ef14a1d85ca8293c0a133fe39d7cc665cf8bf552b6177a865bfcc
MATLAB
18,573
410
function pv_responsesorter(cellids,issave,response_resdir,responsespec) %PV_RESPONSESORTER Peri-event time histogram. % PV_RESPONSESORTER(CELLIDS,ISSAVE) calculates non-adaptive PSTHs for a % set of cells (see ULTIMATE_PSTH) aligned to stimulus onset and feedback % delivery. Statistical tests are performed ...
c15fa57840747f19360001c6fbfabb5980ee086a1fe146804c7570e2dcce6bbd
MATLAB
18,664
671
%% FA angle analysis %% load data sessionTags = {'M22027', '20220517';... 'M22029', '20220607';... 'M22031', '20220524'; 'M22032', '20220621'; 'M22033', '20220706'}; dataDir = 'C:\Users\edward.horrocks\Documents\Code\V1Dynamics\Data\basic_111022'; s = struct; for isession = 1:5 tic fname = [...
5ebb4c8e75a96a86aa02ea5c430d333530ddc573a04e50f7653d29e92cbee952
MATLAB
18,675
204
function [FigA, FigB]=TouchSpikeAnalysis20170328(SpikeArray,RPegTouchAll,LPegTouchAll,fname,TrimStr) global RpegTimeArray LpegTimeArray % clear all; % close all; Bin=9; % global StartTime FinishTime RPegTouchAll LPegTouchAll %20170303 7-5 % StartTime=2459; % FinishTime=167473; % LpegTimeArray=[2829;3328;38...
58f4aa29643109058bddd1b9be4c8ddf67013ffcaa5b21cfd66aebc15f6fdcba
MATLAB
18,711
580
clear all; close all; clc; hexB10 = ([ 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 1 0 0 0 0 0 1 0 1 0 1 0 0 0 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 1 1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0...
f4414c9d6606360c3b247cfd0b94c680e811c48e0962aeb8f11ed3aa75c43502
MATLAB
18,713
579
clear all; close all; clc; hexB10 = ([ 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 1 1 1 1 0 1 1 1 1 0 1 1 1 0 1 1 0 0 0 0 0 1 0 0 1 1 0 1 1 1 1 1 0 1 1 1 1 0 0 0 0 1 1 1 0 0 1 0 1 1 1 1 1 0 0 0 1 1 1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 1...
2fc1e2c9d814b22e25828fe5a2b09e7c487041479200d1534233f2d717d3acbf
MATLAB
18,759
509
function RLR20191024 %‰¼à‚SC‚TFRt‚©‚çLt‚܂ł̎žŠÔALt‚©‚çRt‚܂ł̎žŠÔ‚ð—p‚¢‚½—\‘ª %RLR20190604‚©‚ç‚̕ύX“_F1000ƒrƒ“‚É’¼‚·‚Æ‚±‚ëjMax‚Ì’l‚ð¬”‘æˆêˆÊ‚܂łɕύXAƒqƒ‹ƒxƒ‹ƒg•ÏŠ·‚ðŽg‚í‚È‚¢‚悤‚É‚µ‚½ global ACresult ACresultW CCresultDrinkOn SpikeArray TurnMarkerTime RpegTouchallWon LpegTouchallWon... RpNum LpNu...
5e24d357fb79249aadac99cb7aa4c5d77d6ae61acc13b80c7dce0c4529ff4ea6
MATLAB
18,772
581
clear all; close all; clc; hexB10 = ([ 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 1 0 0 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0 1 1 1 0 0 0 1 1 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 1 1 0 0 0 1 0 0 1 1 1...
3ab16643297fb5a46b55e08036560603f35273042263b90cabcc2f2acdb35733
MATLAB
18,801
478
function ObliqueModel20151013 %Oblique model %ƒ^ƒ“ƒpƒNŽ¿A1–œ`”10–œ‚Ì•ªŽq—ʁA‘å‚«‚³‚͐”nm`10”nm’ö“x %2ŒÂ‚ÌNeuron‚»‚ꂼ‚ê‚É”­Œ»ˆâ“`Žq”‚ðŒˆ’è‚Å‚«‚邿‚¤‚ɑΉž %ƒŠƒ“Ž_‰»‚³‚ê‚È‚¢AFAK‚à‚‚©‚È‚¢Beta‚ð‘z’肵‚½Beta‚𓱓ü %ƒŠƒ“Ž_‰»‚³‚ꂸFAK‚ªíŽžÚ’…‚·‚éCNP‚𓱓üAƒArena1‘¤‚©‚ç‚̉ðÍ‚ɂȂÁ‚Ä‚¢‚遄“ clear all; clos...
aae88b606db574ce48d898a6202dd9f17f6bcbf9a1fb6146088534f3c24e11bb
MATLAB
18,852
402
adress_data = 'ebos_data_breast.xlsx'; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Subgroups %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% subgroups = {(1:6), ... % veh38 (7:33), ... % veh34 (34:39),... ...
03a209b3838102bb65b1abb7f5ab5ac44d9e0cea44f51b9baf0ede05a9555f94
MATLAB
18,934
519
function mnl_CorrectImageForNonLinearity(Data,dimOrder,ThreshVal,func,beta,fn) %Function to correct fornon-linearity in Leica SP8 images using the HyD %detectors. This initial function assumes you have enough memory to store %multiple copies of the image. For larger images use the commented out %section. NB in the resh...
6aadd72d36065d764150913477ed25a232116960bcbff940d78311fc6fd79e76
MATLAB
18,960
467
function [varargout] = patchUnderlaySG(underlays, varargin) % Patch Curvature Data Onto Surface Underlays % % [underlays, colormapSG, ticksSG, v, o] = PATCHUNDERLAYSG(underlays, ...) % patches curvature data onto existing surface underlays for left and/or % right hemispheres. The function processes curvature dat...
33a2f2378208e33c4d6a8c5e06d5cbb69d7d9c740e21f362d9f1b46b398b4ec9
MATLAB
18,971
575
function varargout = Randomizer_IndFeatures(varargin) % RANDOMIZER_INDFEATURES M-file for Randomizer_IndFeatures.fig % RANDOMIZER_INDFEATURES, by itself, creates a new RANDOMIZER_INDFEATURES or raises the existing % singleton*. % % H = RANDOMIZER_INDFEATURES returns the handle to a new RANDOMIZER_INDFEAT...
4f79c0fda945368e986b3d561d68af30aa319edf98407ad99df87c3450a4097b
MATLAB
18,972
483
function RepeatFig20170613 close all global Repeat MaxRepeat K TouchID %XXX@o11oo‚Æoo11o‚ÅÅ‚à‚‚¢•”•ª‚ð’T‚µ‚āA‚»‚±‚𒆐S‚É10binŽl•û‚­‚ç‚¢H‚͈̔͂ō‡Œv’l‚ð‹‚ß‚é % o111o‚̐^‚ñ’†‚ÅÅ‚à‚‚¢•”•ª‚ð’T‚·B %@‚»‚ꂼ‚ê‚̗̈æ‚ɂ‚¢‚āAoo1ooAo11ooAoo11oAo111oA1111oAo1111A11111‚ł̒l‚ð‹‚ß‚éB %@ % cd C:\Use...
15915f0c4cf5969316bed5288a645a010f3b3041f4a4dd43a13c10b7f50ad359
MATLAB
18,977
608
function xpeak(); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % xpeak.m % % GUI version of hsvd peak removal % % DK Deelchand March 2007 % % Updated Aug 2007 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% h1 = figure(... 'Units','c...
afdb34e961eaa49683469a72f1325b5187d6a4b011c12dd8241014a2038dac8b
MATLAB
19,150
442
function FRvsIntervalTouch global CCresultRtouchWon CCresultLtouchWon RpegTouchallWon LpegTouchallWon SpikeArrayWon tfile pegpatternname trimFolder2 IntervalCount FRvsIntervalTouchRate pegpatternum % ƒNƒƒXƒRƒŠƒIƒOƒ‰ƒ€‚©‚çƒs[ƒN‚ðŒŸo % subplot(2,2,3); findpeaks(CCresultLtouchWon,'MinPeakDistance',30); [Lpks,Llo...
06fa488414d21ef34a80e95ff90adea030247c9695196a56c1befa9c0cb06ab0
MATLAB
19,170
383
function [peak_indexes, hr, hr_smoothed, samples_sat, samples_sat_bp, samples_sat_bp_env, amp_inst, f_inst, f_inst_smoothed, f_hilbert, amp_hilbert, bw_inst] = peak_det_acoustic(samples, fs, varargin) % PEAK_DET_ACOUSTIC Detects peaks in acoustic cardiac signals for heart rate analysis. % % This function is designed ...
aa61d5da8340a74badbfdae3d00ef7cf65885458ed6aee87503b19c98e3cb425
MATLAB
19,239
586
function varargout = FindProjection(varargin) % FindProjection % % Displays a predefined projection, by rotating the current projection % vectors towards the desired vectors. % % It will only use the basic features (trajs or clusters). It will favor % clusters over trajectories, meaning if you have mixed data, Da...
d558f3f3aeec51201e4c2505d7aee35103be29fd03985aba5e2f50f4569e1c68
MATLAB
19,369
482
%{ ---------------------------------------------------------------------------- First_take number of frames in each tif files Analyzing imaging data simply At least for the correct rate ---------------------------------------------------------------------------- %} function norm_Task_kaiseki_tokyo1_20220316_so...
540aa380837ef25ee1d24b8d16a02076b2fef8ee9b28286a92a46676d0ae8000
MATLAB
19,392
428
function PegTouchAnalysis24ch(R_PegTouchCell,L_PegTouchCell,SliderTouch,TurnMarkerTime,OneTurnTime,RpegTimeArray2D,LpegTimeArray2D,FTselect) %'PegTouch'‚Ísensor‚̏î•ñ‚𓾂½‚¾‚¯B12ch‚·‚ׂĂªRpeg12–{‚ÉŠ„‚è“–‚Ä‚ç‚ê‚Ä‚¢‚邯‚«‚É‚ÍPegTouch‚¾‚¯‚Å‚à‚æ‚©‚Á‚½B %‚µ‚©‚µARL‚Å6ch‚¸‚ÂŽg—p‚·‚éÛ‚ɂ́A1-6A7-12‚ðŠ„‚è“–‚Ä‚é•K—v‚ª‚ ...
16296f26a40f7d9ef9dbb9e23b35cecb4e2369d94cc450146650429353541e80
MATLAB
19,410
535
function varargout = UpdateColors(varargin) % UpdateColors(DataHighFig, functions) % % Allows the user to manipulate values of the data struct, including % colors and names. % % Copyright Benjamin Cowley, Matthew Kaufman, Zachary Butler, Byron Yu, 2012-2013 % ---GNU General Public License Copyright--- % This file ...
d7d804cab7b9300b0c43e775132f51c66be6011261ff44694b819c887449b1b1
MATLAB
19,422
563
function gui_cb(action) % % This file is used by FASTICAG % This file holds the callbacks to the main window % 27.5.1999 % Hugo Gävert %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Global variables % Handle to the main figure global hf_FastICA_MAIN; % Handles for...
f891558ad663377e8feb09dce44c786979b25178817934cf5984b50403aefb6e
MATLAB
19,433
466
% Analyze Task Reactivations. Makes all Task Reactivaiton Figures. % Enter MEG Decision Study Folder study_folder = '/Users/erussek/Dropbox/MEG_Decision_Study_WC'; % run permutations and save figs? run_permutations = false; make_permutation_plots = false; run_permutations_key = true; make_permutation_plots_key = true...
7eaa0063d01bbbc71adcc797f3d5f059281eb00c3706b949fae82b60686a691a
MATLAB
19,497
430
function PegTouchAnalysis24ch(R_PegTouchCell,L_PegTouchCell,SliderTouch,TurnMarkerTime,OneTurnTime,RpegTimeArray2D,LpegTimeArray2D,FTselect) %'PegTouch'‚Ísensor‚̏î•ñ‚𓾂½‚¾‚¯B12ch‚·‚ׂĂªRpeg12–{‚ÉŠ„‚è“–‚Ä‚ç‚ê‚Ä‚¢‚邯‚«‚É‚ÍPegTouch‚¾‚¯‚Å‚à‚æ‚©‚Á‚½B %‚µ‚©‚µARL‚Å6ch‚¸‚ÂŽg—p‚·‚éÛ‚ɂ́A1-6A7-12‚ðŠ„‚è“–‚Ä‚é•K—v‚ª‚ ...
830e21c825a62a415db4a16c61c5238f9f8cfe0fb5ee2efc0b52d5589ebe2636
MATLAB
19,518
550
% This program is to check the consistency between sessions 1-2. % % by Hiro taiyo Hamada, Araya Inc. clear all; close all; % first experiments visualizeAllTimeSeriesSession1st visualizeAllTimeSeriesSession2nd visualizeAllTimeSeriesSession3rd visualizeAllTimeSeriesSession4th % peaks of BOLD responses % BOLD replica...
3d321862d848a13765ec124d91fc70d335a2c10eb7637fd4e87f07892ba1218f
MATLAB
19,611
642
function result = Randomizer_ComputeTanova(d,UpdateExpVarFlag) % Copyright 2009-2011 Thomas Koenig % distributed under the terms of the GNU AFFERO General Public License if nargin < 2 UpdateExpVarFlag = false; end switch d.Normalize case 1 PreNormalizeMode = false; bNormalize = false; cas...
e787f9ef9736c5252be3be8b9019f5176be4342c148f0c1b552f7849eb0abee3
MATLAB
19,658
555
% This program is to calculate and plot the results of COPE between tphssk and control. % % Figure 4b-c, Figure 5b-d, Table 3 & Supplementary Table TS3 % % % by Hiro Taiyo Hamada, 2020/12/17 close all; clear all; % 1. extraction of 5HT receptors niftidirect = fullfile(pwd, '/5HTR'); niftiList = makeList(niftidirect, ...
bc2ad46e399ac6b781797db8a802d48a0114aba73b790f698e623cefbd020cda
MATLAB
19,660
580
% Save back to the original image with a portion of slices that was % loaded by "load_untouch_nii". You can process those slices matrix % in any way, as long as their dimension is not altered. % % Usage: save_untouch_slice(slice, filename, ... % slice_idx, [img_idx], [dim5_idx], [dim6_idx], [dim7_idx]) % % slice ...
06b598158edba24beef4939673881a9d413f6f897e2cbe1cb432492107799c9d
MATLAB
19,680
659
% This script produces all alpha-band delimited figures and EROs % Written 9/15/2023 - Tylor J Harlow - tylor.harlow@uconn.edu %% Housekeeping clear; close all; clc; %% Load Data % Select subjects to exclude from group analysis exSub = {'Sub_151','Sub_152','126'}; %,'Sub_102','Sub_104','Sub_126','Sub_138'...
a2518abf2a27c77cccd0b5b42948ed94a63a6782eff84aaa14e489222d8d3d42
MATLAB
19,688
665
function fasticag(mixedsig, InitialGuess) %FASTICAG - Fast Independent Component Analysis, the Graphical User Interface % % FASTICAG gives a graphical user interface for performing independent % component analysis by the FastICA package. No arguments are % necessary in the function call. % % Optional arguments c...
1651d33315b03c6abf94a54baadb79af15ee9611b2c944043a5e084c532d9a2e
MATLAB
19,746
582
function fit_model(profile, session, channel, unit, fold) % Fit neural model % % Parameters % ---------- % - profile: struct % Neural profile % - session: scalar % Session number with format: yymmdd % - channel: scalar % Channel number % - unit: scalar % Unit numb...
5941dd49272d6d4cf8ea06b38335ac5b4b4af250d843be6780e00f44ff6395f2
MATLAB
19,754
407
%% Build the neuron table % this code will build a table where every row is a neuron % Created by Alex T on 10/11/2022 % % This code needs an excel spreadsheet with metadata in it. % Right now, it will read 'OSProjectMetaData.xlsx' % Every row in that excell spreadsheet is a field of view. % The buildNeuronTable...
c2aa9a0f33ae9b0224962b581864d2311017eb43ef5b5b37ef29fdbe5bc0444b
MATLAB
19,762
446
%% MF+V for Pixels. E is divided into S and C cells %% Input: % N_PreSynPix within Pixel->Pixel connectivity matrix % 3*3 Post(R)/Pre(C): S, C, I % S % C % ...
abcc7c1fb9e7de8e8d92bce6870d7578fb4f68ad655726ef0c500052aeed6a09
MATLAB
19,784
504
function [varargout]=mat2wfdb(varargin) % % [xbit]=mat2wfdb(X,fname,Fs,bit_res,adu,info,gain,sg_name,baseline,isquant, isdigital) % % Convert data from a matlab array into Physionet WFDB format file. % % Input Paramater are: % % X -(required) NxM matrix of M signals with N samples each. The % ...
9ac7818c0031d42ae403443c988c1663d3a2dc6e7958e1b667d3d6747dc00cb2
MATLAB
19,844
452
% ¶‰E‚ÌTouch‚ÌˆÊ‘Š‚ÆƒXƒpƒCƒN‚ÌŠÖŒW‚ðA”­‰Î•p“xAƒ‰ƒXƒ^[‚Å•\ަB % ¶‰E¶ƒ^ƒbƒ`‚ł̉Eƒ^ƒbƒ`‚ÌˆÊ‘Š‚ð0`+1A‰E¶‰Eƒ^ƒbƒ`‚ł̍¶ƒ^ƒbƒ`‚ÌˆÊ‘Š‚ði0`+1j-1‚Æ‚·‚éB % ƒXƒpƒCƒN‚́A‘Ώۂ̃^ƒbƒ`‚Ì‘OŒã‚É‚ ‚é‚à‚̂𕪗ނ·‚éB function [MeancosLRLphase MeancosRLRphase MeanLRLphase MeanRLRphase cosLRLphase cosRLRphase LRLphase ...
c815e0fcf78acfbea973a9b2cfc659a660cb6b0400af006c296614b0632307d4
MATLAB
19,913
397
%% Calcium Imaging Analysis Operator (summary) % CIOA_03_summary is the third of a series of scripts aiming for % an easy-to-use calcium imaging analysis pipeline. Here, get time courses % for segmented data set and summarize the response to a given stimulus % based on the average activity in a user-specified window. %...
f5d0db3c9d45b1bbfaccdab3917556d2a5962f9e2f427bb5b5b0225cf8f6eaa7
MATLAB
19,949
548
function hdr = spm_dicom_headers(P, essentials) % Read header information from DICOM files % FORMAT hdr = spm_dicom_headers(P [,essentials]) % P - array of filenames % essentials - if true, then only save the essential parts of the header % hdr - cell array of headers, one element for each file. % % Contents of heade...
b72b8db885dee87e8f2f25464740fb1262bc39d6b8842aff9665d871823f95fd
MATLAB
19,990
463
%% EAG_Analysis_Population % bla % % Version: 04-April-24 (R2023a) % Clean up clc; clear all; close all; % Add paths: % --- Current paths addpath(genpath(pwd)) % --- Toolbox for exporting publication quality figures % https://github.com/altmany/export_fig addpath(genpath('...\GitHub\export_fig')) mkdir('FIGs') %%...
2545430b2a564552326c5c296884f8e32bdff4cd382d688547cc9a379851dc77
MATLAB
19,995
609
function FigureS12def_MotionenergyvsPrior parent='G:/Ishizu_data'; workpath='/Revise_ishizu'; outpath='/Revise_ishizu/output/MotionvsPrior2'; figsaveTYPE='-dsvg'; %--------------------% cd([parent,workpath]); %%% collect the data %%% % folder setting % Dir1 = {'AC','FOF','mPFC'}; Dir2 = {'PPC','posPPC...
776e3981b28ce6e55ea7ef30818a074026dfa628cd9c28a9933b55fa199244e7
MATLAB
19,998
417
function [subject,GMV] = spmup_BIDS_1rstlevel(subject, options) % 1st level analysis of BIDS fMRI data % % FORMAT subject = spmup_BIDS_1rstlevel(subject, options) % % INPUT - subject: a structure containing the fullpath of the unpacked anat, % fmap and func files for a given subject (see spmup_BIDS_unpack) %...
469fa39b3c5a23ffa48d4c351d8faadbe68aadf0b92a4008b954b3cdc9cc1ec4
MATLAB
20,054
457
function Pop_PETH_Cluster(varargin) %POP_PETH_CLUSTER Searhcing for clusters of similarly behaving neurons. % POP_PETH_CLUSTER Finds groups of similary behaving cells based on the % k-means clustering performed in the space spanned by the first % PCA_dim(input) principal components of the normalized PETHs of ...
e8320c263b355ec672b1a237c71b811dc3b1f1af27d4dd512c0e0785af6f36c3
MATLAB
20,108
558
function FigureS3abc_TaskRelevantNeuronValidate parent='G:/Ishizu_data'; outpath='/Revise_ishizu/output/TaskRelevantNeuronValidate'; % hulistic parameter % %Differentially analyze between long sound and short sound TW.time_window_base = 200; %ms TW.time_window = 100; %ms TW.time_long_pre = 1500; TW.time_long...
6e33505ddf61d74a3a9354c8fd8ae7d22ed0a17639e9e5f25db539e4cad029ae
MATLAB
20,198
515
%% PCDetect.m % This function is used to detect place cells in one session. % % Input: % PC_name: a 1*2 string, the type name of place cells in another form; % e.g. ["PlaceCells", "PlaceFields"]; % DeconvSignals: a m*n matrix, n represents the number of cells; % calcium_time: a m*1 vec...
27128b96a233c92dc364cdc21abad4d4ad49b059c0b1c16bee29aef3c8fb7ea5
MATLAB
20,210
637
function [RRR7, RRR8 ] = transduction_calc(data, t_events_ecg, t_bpFoot, bpValues, t_spikes, footIndex) % GDAplot_DynamicIndexes_v26(namefileXXX(1:end-9), t_spikes, num2str(i), 'ecg', t_bpFoot*1000, colorVec(i,:), thre); % plottingPhasesGDA( nome_file...
da61cab2869ea50a409e9c63f57d3adf000b9eb5353e75b1675ec4042f05666f
MATLAB
20,251
643
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function peakremovalgui(createrdbflag,hsvdflag,datadir,rp,npeak,ncol,... receiveroffset_ppm,magnet,rawflag,savefid,rawfile,... lb,gf,sifactor,tmsampl,rmampl); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
df2fe5a35498ade493a4b9980f0d2c6061103a93a59633b7e362235e14478ae4
MATLAB
20,254
576
function SflCnxMatrixMaker20160822%(File,ExpMatrix,ProbMatrix,CnxMatrix,VarMatrix) global ExpMatrix ProbMatrix CnxMatrix VarMatrix File='Group_CnxMatrix001_M4_N10000_G50_E5_R1_Match1000000'; eval(['load ',File]); Neurons=length(ExpMatrix(:,1)); Genes=length(VarMatrix(1,:)); Exp=length(ExpMatrix(1,:)); %Circu...
0cc23048ad969512bbf2039bd3de454a98e918adb9cafd01a582e765b1d3780e
MATLAB
20,280
580
% ************************************************************************* % * The main code representing the "Robust Statistical Framework for * % * Instantaneous EEG Phase and Frequency Analysis" including phase * % * calculation, SNR verification and post processing (Kalman Smoothing) * % * >>> Refer to...
9512f219f8cdb66e4b26b7416878701cd70789f326e478bcfd507b6225f1bb30
MATLAB
20,315
590
function [errcode,behav] = abcd_extract_eprime_rec(fnamewm,fnamerec,varargin) %function [errcode,behav] = abcd_extract_eprime_rec(fnamewm,fnamerec,[options]) % % Purpose: generate behav data for n-back REC files % % Required input: % fnamewm: name of input eprime file WM (scanner run). % fnamerec: name of input e...
aaeb2391d4e6c51dfcd04b7d4b71bfc78a25421c99fbcc158e9aefc4e7eeb826
MATLAB
20,396
480
% Script to read in EEG data for further analysis using FieldTrip % Gets TFS and beta amplitude timecourse for highest SNR channel per % subject and then averages over subjects % Zelekha Seedat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Housekeeping clear all; close all; clc;...
be76b18d678af056e9dfb732daba045d92f9781eae0a1b990e213d84e7d95a9f
MATLAB
20,464
231
%% rerunning interactions in 360 ROI space clear SNP_Cardio_int_P SNP_Cardio_int_T SNP_Cardio_int_SE SNP_P SNP_Cardio_int_P=zeros(360, 22); SNP_Cardio_int_P(SNP_Cardio_int_P==0)=NaN; SNP_Dep_int_P=zeros(360, 22); SNP_Dep_int_P(SNP_Dep_int_P==0)=NaN; for i=1:360% %tmp=sortrows(unique(allsnps.rsID(allsnps.TraitNum==...
067e89bcbb9b4561c8fffcf938fb053ef0d071688a5581c8c1ef5bed57d5b0a7
MATLAB
20,541
395
function WindowApplyPattern1_20200228(RorL) global render RtouchSpikeOnUnit LtouchSpikeOnUnit RtouchSpikeOffUnit LtouchSpikeOffUnit LtNegativeSpikeOffKaisuu RtNegativeSpikeOffKaisuu ... RtPositiveSpikeOffKaisuu LtPositiveSpikeOffKaisuu pegpatternum pegpatternname... LtPositiveFiringRate LtNegativeFiringRat...
0a027cc749b88026acac4f1617da83dedf379e6316c09c59883395cc35d9263e
MATLAB
20,638
421
function [data_out] = simul_Arb(param_in, data_in, mode) %% create MAP map_opt.transition_prob_seed=[0.7 0.3]; % init val, changed depending on block condition later map_opt.reward_seed=[40 20 10 0]; [myMap N_state N_action N_transition]=Model_Map_Init2('sangwan2012b',map_opt); [myMap_new N_state N_action N_tra...
86f4696194cef51f21317b22a5362e10f523e9ede99e510ffad9d0ca7eff1c7a
MATLAB
20,778
592
function SflCnxMatrixMaker20160830%(File,ExpMatrix,ProbMatrix,CnxMatrix,VarMatrix) global ExpMatrix ProbMatrix CnxMatrix VarMatrix Ideal=0; File='Group_CnxMatrix001_M4_N10000_G50_E5_R1_Match1000000'; File='Group_CnxMatrix001_M2_N10000_G50_E5_R1_Match1000000'; File='Group_CnxMatrix001_M1_N10000_G50_E5_R1_Matc...
96da6cd3296c0e2d58831c19adc66511ad37c78b187193a5639ea5b9af9411fc
MATLAB
20,789
613
function [W, summary] = embanded(F,y,opts) % Expectation-Maximization algorithm for estimating regularized regression % model with banded prior structure. % % The function does not standardize the data. Columns in the input data % must have zero-mean. See below for examples of ways to transform % data prior to model fi...
293b5e4527e0f074aa5a62eefe0648e4f388dc86de95c3e7da0309b763932958
MATLAB
20,827
471
%% White Matter Disconnection Analysis for number cognition deficits % by Christoph Sperber for Stefan Smaczny % This script requires ROI-to-ROI disconnection matrices of patients (e.g. % obtained from NeMo or LQT) and their behavioural scores. For each % ROI-to-ROI connection, a GLM is computed to test the relatio...
1b29cbcf40fe0bc856f56dd8153c698b7f83dd86a2534563156eb2137cb2a05e
MATLAB
20,860
664
close all; clear; clc; % parameters subject1 = 'Dog_1'; subject2 = 'Dog_1'; tri = 1; number1 = tri; number2 = tri; path1 = ['E:\Sameni\Projects\Seizure\' subject1 '\']; path2 = ['E:\Sameni\Projects\Seizure\' subject2 '\']; mode1 = 'interictal'; mode2 = 'preictal'; SpectralWinLen = 5.0; % in seconds SpectralOverlapPerc...
4ea1c21538945c5230f1c825967c55d204bdea52541d5eeacc20b331a796cba6
MATLAB
20,881
446
classdef Preprocess % Modify Many's preprocessing pipeline_YT 022819 methods(Static) % Data files to master file function intanOps = GetIntanOptions(ksDir) % customized options for preprocessing Intan Data intanOps = MIntan.GetOptions(); % Initia...
b796bffb0d5ad4a2d0b5345e3a7d12e8cbd5dda11b2013cf78ae389b41a0838a
MATLAB
20,972
493
function Negative_W1_Pattern_2_20200302 path=['C:\Users\C238\Desktop\touchcellLtRt_terashita']; cd(path); LS=ls; LtWFRUnitN4=[]; LtWFRUnitN3=[]; LtWFRUnitN2=[]; LtWFRUnitN1=[]; LtWFRUnitN0=[]; RtWFRUnitN4=[]; RtWFRUnitN3=[]; RtWFRUnitN2=[]; RtWFRUnitN1=[]; RtWFRUnitN0=[]; LtW1PointN4=0; LtW1PointN3=0; LtW1...
22890296e423b1f906ba523c553f3f3f0f20398943448397913a4ef16016d499
MATLAB
21,052
518
function outdata = OPanalysis( cfg, indata ) % OPanalysis( cfg, indata ) efficiently computes from indata the % following ordinal-patterns-based measures that are successfully used for non-linear % analysis of multivariate time series (see [AKU15,BKP02,KUU14] and ref. there for more details): % - permutation entropy (...
ad89ad0d0d3bf85648f4e0e13edf7bbd98e4d56848a4a479e9b0ebb711acb705
MATLAB
21,069
512
%{ ---------------------------------------------------------------------------- First_take number of frames in each tif files Analyzing imaging data simply At least for the correct rate ---------------------------------------------------------------------------- %} function norm_Task_kaiseki_tokyo1_20220316_so...
7ff1d473e55f015c6e1d08bf5cf6d67a0111cb5ecf5c872bb74e8b596bdc1e65
MATLAB
21,130
658
function [RRR7, RRR8 ] = transduction_calc(data, t_events_ecg, t_bpFoot, bpValues, t_spikes, footIndex) % GDAplot_DynamicIndexes_v26(namefileXXX(1:end-9), t_spikes, num2str(i), 'ecg', t_bpFoot*1000, colorVec(i,:), thre); % plottingPhasesGDA( nome_file...
76e61e3ed7a1c8672389c31ba58d96c62cd998afa7ef9df81e8f286ee3efcae8
MATLAB
21,273
591
%{ ---------------------------------------------------------------------------- Determine the time window for task relevant neurons %Start of task %Sound on %Sound off %Before choice %After choice (0sec) %After choice (1sec) %After choice (2sec) %p = 0.001 %Each epoch, predict the prior, sensory and choice...
34d246b7559e6634682e4db723cd526e102087bc2fb6dee4e32fbcd49c00d574
MATLAB
21,528
519
function [cMap, cData, cbData, ticks, tickLabels, m] = colormapper(data, varargin) % Generates a customized colormap and maps data points to colors. % % [cMap, cData, cbData, ticks, tickLabels, m] = COLORMAPPER(data) % [cMap, cData, cbData, ticks, tickLabels, m] = COLORMAPPER(data, 'ParameterName', ParameterValue, ...
724c3a78e098c5973de7f55c2d881c5317348804657bbe7c35d09ec42e57c275
MATLAB
21,560
584
function CNP_NxRsA20171123%ConstantInput %Variable start‚ɑΉž, Vs=0.02‚Å-70mV ‚©‚ç-50mV‚܂ŐU‚ê‚éB close all; clear all; global nFile RefPeriod Vreset Vth dt num_Pilgrim tau_m tmax Delay Rm tau_m tau_Es tau_Is Vth Vreset Vstart % cd C:\Users\B133\Documents\MATLAB\GroupCMX\GroupCnxMatrix1000M1 cd C:\Users\B...
6214dc05f382beeff515bc51d8efdc63daf532699dd4e62c75fa94d2f4e3e540
MATLAB
21,668
545
function [pi_0_chmm_exact, transition_matrices_chmm, chmm_gmm_para, log_likelyhood, AIC, BIC, pi_steady_exact] = em_chmm( channels_observations , channel_num_states , num_gmm_component , max_itration , extra) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % the slow model that work just for Gausian e...
a3fd4c4ed1f94908f3af2f577240b11e85fdaef99b82fdfa4f9e6055eaeff48c
MATLAB
21,702
673
classdef Figure < handle %FIGURE handle for JRCLUST manual figure % Base class for specific figure types properties (SetAccess=protected, Hidden, SetObservable) hFig; % Figure object hAxes; % hashmap of current axes (return value of `axes`) hPlots; % hash...
e2c9ca1783f02c4c9e311dec369915222d3097c7cf588ebae0aaf36508297492
MATLAB
21,711
466
% Get all 2P data. Plot stims and runs %%%%%% Analysis workflow: % cell_f_extraction_2P_doublecheckplanes_24012022a.m % ExportPreprocesseddata_2PGlusensstim08022022.m % Combine_2Pdata0802.m % Analysis_combined_data_2P.m % Locate2Pcells.m % Chech_running_per_gluClasses.m % Combine_2Pdata0802.m clear all; clc;...
c27448e27a40501698573952ca2247d1e33b035429f9d1c2dafbf6878f490a69
MATLAB
21,858
580
function ModulationHeatMaprelative20191210 %‘«Žæ‚è‚É”½‰ž‚µ‚½_Œo×–E‚ÌCCresultSpike‚ðCCSFolder‚©‚çŒÄ‚яo‚µ2Hz‚É”g‚𒊏o¨zscore‚É’¼‚µ‚ăq[ƒgƒ}ƒbƒvì» % Fs = 1000; % ƒTƒ“ƒvƒŠƒ“ƒOŽü”g” % t = 0:1/Fs:1; % ŽžŠÔƒxƒNƒgƒ‹ % x = sin(2*pi*5*t) .* sin(2*pi*100*t); % ŽžŠÔ޲M† % % F = fft(2*abs(x).^2); % f = Fs * [0:len...
ebbb6d67bdf0dfbe547dbb0529c8bcc010989331bddf7d4a5b21e9783ef0dd22
MATLAB
21,892
593
function [x,y]=mnl_BeeswarmPlots(data) % Adapted frim Jonas (2020). plot spread points (beeswarm plot) (https://www.mathworks.com/matlabcentral/fileexchange/37105-plot-spread-points-beeswarm-plot), MATLAB Central File Exchange. Retrieved October 26, 2020. y=data; [~,x,y]=Jonas_plotSpread(data); end function [handl...
7d25f366e515ba338ac6820eefab6116412d2144aa533d6e668a258e78961a4d
MATLAB
22,005
438
lgraph = layerGraph(); tempLayers = imageInputLayer([224 224 6],"Name","input_1"); lgraph = addLayers(lgraph,tempLayers); tempLayers = [ convolution2dLayer([7 7],64,"Name","conv1","Padding",[3 3 3 3],"Stride",[2 2]) batchNormalizationLayer("Name","bn_conv1","Epsilon",0.001) reluLayer("Name","activ...
eb6f3fd615d8549e66179e1effe7260d67a602ed8eac288fafdf49008bd37800
MATLAB
22,127
421
function S = smc_oopsi_forward(F,V,P) % the function does the backwards sampling particle filter % notes: this function assumes spike histories are included. to turn them % off, make sure that V.Nspikehist=0 (M is the # of spike history terms). % % The backward sampler has standard variance, as approximated typically....
52efb5afcbc06924e39e135ce465df9921b0b68e5ffa4a4797dd385f5204f882
MATLAB
22,174
517
function [xPoints, yPoints] = plotSpikeRaster(spikes,varargin) % PLOTSPIKERASTER Create raster plot from binary spike data or spike times % Efficiently creates raster plots with formatting support. Faster than % common implementations. Multiple plot types and parameters available! % Look at Parameters section bel...
797b74f5ab9c87ce34718e19f99fb92708ad89819d0de1e60f38dcc91a31a968
MATLAB
22,214
628
clear all close all clc overwrite = false; project_dir = '.\Adults\'; if overwrite for sub_i = [1:19,21:22,24:26] sub = sprintf('1%2d',sub_i);sub(sub == ' ') = '0' ses_i = 1; ses = sprintf('%3d',ses_i);ses(ses == ' ') = '0' peak_VE_hmm_func(sub,ses,project_dir); % input('next?') ...
abf06f3f94da8fa8c505075c31c3a15c83b8d4f31f09af66974c56551b706290
MATLAB
22,307
517
function [xPoints, yPoints] = plotSpikeRaster(spikes,varargin) % PLOTSPIKERASTER Create raster plot from binary spike data or spike times % Efficiently creates raster plots with formatting support. Faster than % common implementations. Multiple plot types and parameters available! % Look at Parameters section bel...
5528e06177673d2b34061f5c05c2337b8b967233d7ba7671d229edf05a4aefa0
MATLAB
22,346
517
% a04 auc_a04 = { 'G:\Ishizu_data\Tokyo_ephys_ishizu\auditory\a04\2021-02-13_a04_1PPC2AC_Left_OK\recording1_task' 'G:\Ishizu_data\Tokyo_ephys_ishizu\auditory\a04\2021-02-18_a04_1AC2PPC_Right\recording1_task' 'G:\Ishizu_data\Tokyo_ephys_ishizu\auditory\a04\2021-02-19_a04_1AC2PPC_Right\recording1_task' ...
b4cb2df4cfca348fbccef493b4a108a135f93fe7cf947a9de5e308d400687154
MATLAB
22,523
705
function varargout = Toolbox(varargin) % Toolbox % % A whole host of choices to enhance the experience of DataHigh. % This includes input/output options, including saving the projection % vectors, uploading new datasets, and modifying the current datasets. % % Features refer to things that change the display of the...
1d3a9512f65b4788f50cdc48f204382844c1f5bfde3ff98414f20d09af4dc63c
MATLAB
22,537
564
function index_pinky_peak_TFS_func(sub,ses,project_dir) restoredefaultpath cleaning_only = 0; fake_bad_ch =1; close all clc % project_dir = 'R:\DRS-KidsOPM\Paediatric_OPM_Notts_AdultData_individual\'; % sub = '101'; % ses = '001'; run = 'run-001'; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
d176f00da8cc5541166ef898a93bea586f1dc5439dc40b4b0f295d522855068e
MATLAB
22,670
681
%% sort psth responses sessionTags = {'M22027', '20220517';... 'M22029', '20220607';... 'M22031', '20220524'; 'M22032', '20220621'; 'M22033', '20220706'}; dataDir = 'C:\Users\edward.horrocks\Documents\Code\V1Dynamics\Data\basic_111022'; for isession = 1:5%size(sessionTags,1) fname = [sessionTag...
58d991d131544be7178b039d6b0083e9e62807b7e09b1f979fc90fc9058b7ec1
MATLAB
22,869
573
function AEC_connectivity_func(sub,ses,project_dir) restoredefaultpath cleaning_only = 0; fake_bad_ch =1; close all clc % project_dir = 'P:\Paediatric_OPM_Notts\'; % sub = '006'; % ses = '001'; run = 'run-001' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fieldtrip_path = [proje...
01a70e377cef86f5670f2036285360da21977af3810ee26b5dde6d7531729384
MATLAB
22,900
549
function [rgb]=cmap(x, mapName, greyPerc, grayColor, grayFunction, greyPosition) % [rgb]=cmap(x, mapName); % [rgb]=cmap(mapName); % [rgb]=cmap(x, mapName, greyExt, grayColor, grayFunction, greyPosition) % TODO se il primo argomento di ingresso non ? una matrice numerica, scalare i successivi parametri in % modo ...
7df5aa28c17f2774ea34d8fdb1b5f8c0dfb31b9b759d48b5587b77bcd67b8b43
MATLAB
22,910
590
%% Function to Clean Manuallly Calcium Transients % Input % indxSIGNAL: Cell of Indexed Signal as Detected Ca^2+ Transient % Global Inputs: % SIGNALS Raw Fluuorescence % DETSIGNALS Detrended Fluorescence % preDRIVE Preliminar Drive % preLAMBDAS Preliminar Lambdas % RAS...
947bb01cd4a9f43438d9a5cb257bce7fb6f99816f86b23c02cb8633ae5fd1dba
MATLAB
22,992
553
% Script to read in MEG data for further analysis using FieldTrip % Gets TFS and beta amplitude timecourse for highest SNR channel per % subject and then averages over subjects % Triggers on movement offset using the optitrack markers % Zelekha Seedat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
e47713ceb044f4097d849851561e486ddc4f47ea10cca14bd7d2e4fa8b0fdb0d
MATLAB
22,999
469
%% Calcium Imaging Analysis Operator (prepare) % CIOA_01_prepare is the first of a series of scripts aiming for an % easy-to-use calcium imaging analysis pipeline. Here, we collect and % prepare raw data, apply spatial and temporal filters, and correct % baseline shifts due to, for example, bleaching. % CIOA only assum...
78cfc72f6e7bb9935154af84b9abf86a65949da07c9e6307e770fa2764da76ad
MATLAB
23,028
654
function Do_clustering(input, varargin) % PROGRAM Do_clustering. % Does clustering on all files in Files.txt % Runs after Get_spikes, which prepares '*_spikes.mat' files. % % function Do_clustering(input, par_input) % Saves spikes, spike times (in ms), coefficients used (inspk), used % parameters, random spikes select...