sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
a19c5ce67eb1009624cd19cb57301ed30b1907fd1c707edc956a76240594138f
MATLAB
28,433
1,196
%% Autocorrelations clear all close all rec_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; dpath='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; save_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; clusters=10; mice_number=14; mice=['L08M1';'L08M2';'L08M3';'L08M4';'L09M1';'L...
66f053ff78a43cf98c32909c14355732a2d2df0dc19829e2adc606ef81003d87
MATLAB
28,451
946
function varargout = c_EEG_plotTimtopo(varargin) persistent pathModified; if isempty(pathModified) mfilepath=fileparts(which(mfilename)); addpath(fullfile(mfilepath,'../GUI')); addpath(fullfile(mfilepath,'../MeshFunctions')); c_EEG_openEEGLabIfNeeded(); pathModified = true; end defaultTraceColors = [0 0 1; 0 1 0;...
5f0c5de0c0505ab2cc50bd1a520d922936b90f62ec26e7f0f121a997d7efa3a8
MATLAB
28,458
662
function [Ireg,O_trans,Spacing,M,B,F] = image_registration(Imoving,Istatic,Options) % This function image_registration is the most easy way to register two % 2D or 3D images both affine and nonrigidly. % % Features: % - It can be used with images from different type of scans or modalities. % - It uses both a rigi...
812d8a01ce5d91a38d379e5ba876af79db0b0a83277d8932129153ffc3ff3e79
MATLAB
28,652
668
function [est, unc, liks, hypers] = TAFKAP_Decode(samples, p) % This code runs the PRINCE or TAFKAP decoding algorithm. The original % PRINCE algorithm was first described here: % % https://www.nature.com/articles/nn.4150 % % The new TAFKAP algorithm is described here: % % https://www.biorxiv.o...
96ef36f6b54d818e25a7e3b8806e9a9b0be2d292a457619bd82096b7f4d5115d
MATLAB
28,702
793
%% Script to create output for Fig. 3 - visualization of the GLAMPI model applied to different groups % Zilong Ji, UCL, 2022 zilong.ji@ucl.ac.uk % Andrea Castegnaro, UCL, 2022 uceeaca@ucl.ac.uk % Visualization include, visualizing mental points over real data. % Comparison between effect ratio between mental/real leg ...
70292049fcc8354b32176827e1370f65bbef9812437133dbf5e7189fb267ac90
MATLAB
28,743
728
classdef SuhDataSet < handle % AUTHORSHIP % Primary Developer: Stephen Meehan <swmeehan@stanford.edu> % Copyright (c) 2022 The Board of Trustees of the Leland Stanford Junior University; Herzenberg Lab % License: BSD 3 clause properties(Constant) FILE_MATCH='epp_match.mat'; FILE_MATCH_LABE...
c700600f1e57d4c2b10cc1c3f29bfe536550d422adcfad0c85a49d2eb82406fe
MATLAB
28,826
538
function mergedata_newFeatures_addFilestoMat_082421() %mergedata_newFeatures_addFilestoMat_040121.m % This function loops over _FINAL.mat files in a directory and processes % them to derive new fields using NewFeaturesPostProcessing_021321.m % Adds to a pre-existing newFeatures.mat file [featuresMatFile_filename...
6fc9a037d06f3a10daa6e230ba1bb42327a968377082367f11386c81328cb488
MATLAB
28,932
684
% Test program for GrTheory functions % Author: Sergii Iglin % e-mail: siglin@yandex.ru % personal page: http://iglin.exponenta.ru clear all % select test: % ntest=1 - grBase % ntest=2 - grCoBase % ntest=3 - grCoCycleBasis % ntest=4 - grColEdge % ntest=5 - grColVer % ntest=6 - grComp % ntest=7 - grCycleBasis % ntest=...
936690d65b8c232d085c3635abe9746f3d455574d8d3ecbd5094a14726a3c596
MATLAB
29,080
713
function varargout = PhysioFCSV_Reg(varargin) % PHYSIOFCSV_REG MATLAB code for PhysioFCSV_Reg.fig % PHYSIOFCSV_REG, by itself, creates a new PHYSIOFCSV_REG or raises the existing % singleton*. % % H = PHYSIOFCSV_REG returns the handle to a new PHYSIOFCSV_REG or the handle to % the existing singleton...
9bee03f8e5ed63f1695fcdaaa0e15e128a73f264f2ea3886c42c7419e2eb7951
MATLAB
29,094
692
function plotAllCells(allCells,paramsPath) %% Make Plots. Use after running Pool All cells % Run all the plotting functions % input: ketamineCells struct % add plotting functions to path addpath(genpath('/Users/KeiMasuda/Documents/MATLAB/Add-Ons/Functions/gramm (complete data visualization toolbox, ggplot2_R-like)/co...
5b3cfb4b2f3ac489a50f83375eb082079649b021e013f8d3ef624c3f9885b7e0
MATLAB
29,155
753
%% SCRATCH: code for scRNAseq and visseq %% construction % fprintf(2,'Code under-construction, please try again later \nMuhammad \n') % return; %% bgn clear all close all warning('off','all') uuu=cd; % cd('/data/runs/samples/') set(0,'DefaultFigureWindowStyle','normal') %% get parameters try transcendentalDoc = '...
0cfd381814c500c2cad892135926a99a821ae28e86adb1918fed532bdb51ea1b
MATLAB
29,175
581
function prot = replay_bias(data_type, state) % Load replay information if strcmp(data_type,'main') path ='X:\BendorLab\Drobo\Lab Members\Marta\Analysis\HIPP\Chapter 2\Raw_replay_analysis'; sessions = data_folders; session_names = fieldnames(sessions); elseif strcmp(data_type,'speed') path = 'X:\Bend...
cd4deecf220725937f002c0938ff6052da54adcf00ba0f4065ff0f5acda3f9d9
MATLAB
29,254
807
% Sort neurons according to angle between PC1 and PC2. Plot rasterplot. % Cell 1: Data. % Cell 2: Shuffled data. % Cell 3: Data and running epochs % Cell 4: Raster plot for a V1 session %% clear all rec_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; dpath='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_dat...
e151ed5488966bd5d556419df93a508791fd9855b3d39c5248121ddbb467f41d
MATLAB
29,317
773
%% Regular wave score clear all close all rec_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; dpath='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; save_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; clusters=10; mice_number=12; mice=['L08M1';'L08M2';'L08M3';'L08M4';'L09M1';...
f3f074a6fa7a5004f01a84a59e4fee2265f2f5690d47403d033d6039c1eb2422
MATLAB
29,456
693
function plotAllCells(allCells,paramsPath) %% Make Plots. Use after running Pool All cells % Run all the plotting functions % input: ketamineCells struct % add plotting functions to path addpath(genpath('/Users/KeiMasuda/Documents/MATLAB/Add-Ons/Functions/gramm (complete data visualization toolbox, ggplot2_R-like)/co...
beeafa3e671e797ab378b37d1e9da81d4bc7fdbe091ad0d9fe22cce1c331babd
MATLAB
29,615
684
% Test program for GrTheory functions % Author: Sergii Iglin % e-mail: siglin@yandex.ru % personal page: http://iglin.exponenta.ru clear all % select test: % ntest=1 - grBase % ntest=2 - grCoBase % ntest=3 - grCoCycleBasis % ntest=4 - grColEdge % ntest=5 - grColVer % ntest=6 - grComp % ntest=7 - grCycle...
fe9ee4f5aac65e5bb7ffe9d582dc4ac9f974fab75f15da17820ff4533aed30a0
MATLAB
29,621
584
function print2eps(name, fig, export_options, varargin) %PRINT2EPS Prints figures to eps with improved line styles % % Examples: % print2eps filename % print2eps(filename, fig_handle) % print2eps(filename, fig_handle, export_options) % print2eps(filename, fig_handle, export_options, print_options) % % This fun...
4276a7bd30c9d9e9bb0fee97c52e04e73cd26d974b5221ce51fd1021ac6d4183
MATLAB
29,629
752
%MASTER PROCESSING SCRIPT for Mouse Seizure Event Detection in 2PCI data % % %Input .mat file from Suite2P %Output is .mat file structure with fields to work with data for anaysis %Outline % 0) Define Variables/Parameters % 1) Open EEG from EDF and annotation files % 2) Open F and Fneu values for cells % 3) Sort t...
6f91c523853b5cde18b7c328e1a3e5bacfffa9c2ab6b16ecd397a7936236d7f9
MATLAB
29,643
799
% Output: % 1. chanel mean and std for later normalization % 2. trial_data tic clear all; close all;clc patient_num = 1 subjects = {'39', '57', '66', '63', '44', '83'}; lock = 'onset'%'response' ref = 'LM'%[] %:'' 'WM' 'LM' 'ESR [for ir83]' : la placian montage' 'CAR' par_num = 3; if pat...
23359131f102696d1e8f357493955bcd0f88fee1aabbc98cf6a311a805a7febc
MATLAB
29,760
601
function tracking_enter_exit_BATCH_061919_freehand(loadconfig, tracklocally, recomputeEvHo, camera_params_file) clc; close all; warnid = 'images:initSize:adjustingMag'; warning('off',warnid); timenow = datestr(now,'mm_dd_yy'); lawn_string = ['010219_BATCH_' timenow]; maxwormnumber = 3; p=10; %use the 10th percentile t...
7057369d6df30d1d9b17366d26739481f5ed7e3dac04f7684d5d1246d1190f92
MATLAB
29,787
790
function [s, info] = dicm_hdr(fname, dict, iFrames) % [s, err] = dicm_hdr(dicomFileName, dict, iFrames); % % DICM_HDR returns header of a dicom file in struct s. % % The mandatory 1st input is the dicom file name. The optional 2nd input can be % a dicom dict, which may have only part of the full dict. The parti...
3519408eb1e3b4533851dd38b650dcfc6740345e483a87b693e2d82d4d1a122d
MATLAB
29,808
771
%% SCRATCH: code for scRNAseq and visseq %% construction % fprintf(2,'Code under-construction, please try again later \nMuhammad \n') % return; %% bgn clear all close all warning('off','all') uuu=cd; % cd('/data/runs/samples/') set(0,'DefaultFigureWindowStyle','normal') %% get parameters try transcendentalDoc = '...
1503bf461a24b65a7097dac7a52a67761d549a9fec826ee271bee60aa7a56815
MATLAB
29,947
922
%% load for my own "rctd" (only rho corr.) close all clear all clc trial='/data/Technion_analysis/goldfish/visium'; set(0,'DefaultFigureVisible','off');% off / on set(0,'DefaultFigureWindowStyle','normal') direct='/data/Technion_analysis/goldfish/visium/cropped/091922_two'; cd(direct) corrx=['/data/Technion_analysis/go...
7b8a81d1b5af660e424e7614985b63140b8a060f1301de021c7127011f2a7d09
MATLAB
29,962
645
clear all; %% Set-up Workspace %% cwd = [pwd filesep]; % Store current working directory wpms = []; % pre-allocate a workspace variables in struct % Locate folders of interest - Change if necessary wpms.DATAIN = fullfile(cwd, [filesep 'Data'], filesep); % /../ skips back a folder wpms.DATAOUT = [cwd 'MEP_Data_O...
3e0818ed7d1a452d710a0fae6bab965415eaa0fa76ac80535b05f0d7e3204860
MATLAB
30,066
352
function preproc = spm_cfg_preproc % SPM Configuration file for toolbox 'Old Segment' %______________________________________________________________________ % Copyright (C) 2005-2016 Wellcome Trust Centre for Neuroimaging % $Id: spm_cfg_preproc.m 6942 2016-11-21 13:17:44Z guillaume $ if ~isdeployed, addpath(fullfile...
e739a62ff4c09e1f79fd614abf21dba482cef16bbdcefb9a174b784bb1caa031
MATLAB
30,110
812
function [idx, C, sumD, D] = eitherkmeans(X, k, varargin) %KMEANS K-means clustering. % [IDX,C] = KMEANS(X, K) % X is a cell of length NCHOICES % Each X{i} is a matrix of size N x P(i) % K is a vector of length NCHOICES % K(i) is the number of clusters using data X{i} % This code tries to find the centers C that min...
737bc70409a01b99df31481f64a6a3d46b05f14cdde046ee4a2a80354761e8f3
MATLAB
30,147
623
classdef LoopyModelCollection properties % training and test samples x_train, x_test; % cell array with strings for each node variable_names; % TODO variable_groups; % configuration for training s_lambda_sequence, p_lambda_sequence, density_sequenc...
786791ae3e43e4c62af9994e38d163c42956c84a2838edf31048065033f75e0b
MATLAB
30,210
782
classdef Image < handle %Image A list of neurons in a certain body part % Detailed explanation goes here properties neurons = Neurons.Neuron.empty; % a list of the instances of Neuron class -> see Neuron.m bodypart % a string consisting the name of the worm's body part meta_data %...
4f54881a26f65a2e3d8127709362dc93b968b6e1d801928ea40074db437cb726
MATLAB
30,213
1,052
% This function places a grid on the retina, and finds the % corresponding projections in the SC. function [grid,fig] = makeProjectionGrid(obj, nPoints, radius, debugFigs) fig = []; if(obj.plotFigures == 0) disp('superposedProjection: plotFigures = 0, hiding figures.') visFlag = 'off'; else visFl...
6d6a24e8c2dcfebfe6854bfafa5c00fc4161bf770b508f682b2aebf4b58c63e9
MATLAB
30,386
516
function plot_replay_theta_mixed_effect_model(bayesian_control,rest_option,time_chunk_size,time_window) % Code for quantifying and plotting the relationship between theta sequence % and awake replay and sleep replay using mixed effect model % Input: % bayesian_control - Use 'all' for analysing first exposure data us...
1b1e05261f721ecc34a0134f94756f9c754c790c82e68bca50997517ce1d0064
MATLAB
30,423
972
if strcmp('response', lock) data_length = 1601; cd(['/mnt/yassamri/iEEG/sandra/groupdata_spectrograms_response_' exp_type]) elseif strcmp('onset', lock) data_length = 1251 %2101; cd(['/mnt/yassamri/iEEG/sandra/groupdata_spectrograms_onset_' exp_type]) end fs = 1000; dt = 1/fs; NumVoices = 32; a0 = 2^(1/NumVoices); w...
33061a741fd696f501f337ae7977dad20a6d6bfcfc8a8c50442a8830b98f5e79
MATLAB
30,518
672
function varargout = cfg_ui_util(cmd, varargin) %CFG_UI_UTIL utility functions for displaying job, module and item values % This function is a collection of utility functions to display a job, % module or data summary. It also handles all value display and editing for % a particular item. % % This code is part of a bat...
7ec2c4caab79acc1aa1c216893b1d916c16da6fbe1b3c54d96011a0d7cde8b90
MATLAB
30,699
340
function track_replay_events = extract_replay_plotting_final_lap() % Code to extract and organize replay information from 'significant_events.mat' in order to plot it % Also loads, 'extracted_position.mat', and 'extracted_sleep_state.mat' % INPUT %computer: GPU for supercomputer, for office computer input empty...
59cb2b6a4233399375d324f38ae69708153324b72f1c5b7133ecceb2a886b7f0
MATLAB
30,717
870
function varargout = spm_mesh_render(action,varargin) % Display a surface mesh & various utilities % FORMAT H = spm_mesh_render('Disp',M,'PropertyName',propertyvalue) % M - a GIfTI filename/object or patch structure % H - structure containing handles of various objects % Opens a new figure unless a 'paren...
fb21c24e5d85d0b3615d4f97320acab1390b68509c8eb62c3d4f96c4056379ae
MATLAB
30,768
814
classdef Plots < handle % AUTHORSHIP % Primary Developer: Stephen Meehan <swmeehan@stanford.edu> % Math Lead & Secondary Developer: Connor Meehan <connor.gw.meehan@gmail.com> % Bioinformatics Lead: Wayne Moore <wmoore@stanford.edu> % Copyright (c) 2022 The Board of Trustees of the Leland Stanford Junior Un...
591cd4bba17894c690b0ee8be83d03b722805cd2df6222bf1afde455db7f871a
MATLAB
30,941
759
function SPM = spm_spm(SPM) % [Re]ML Estimation of a General Linear Model % FORMAT SPM = spm_spm(SPM) % % Required fields of SPM: % % xY.VY - nScan x 1 struct array of image handles (see spm_vol) % Images must have the same orientation, voxel size and data type % - Any scaling should have already been app...
8380cc269978f8ed9ca4ac43633f815f3c1bfe61d300d616354d8d5323f3227b
MATLAB
30,992
697
%% Script to analyze the correlation with NP - synaptic - gap and MA degree % Jan Watteyne - jan.watteyne@kuleuven.be and/or jwatteyne@gmail.com % 20230607 close all clear all %% Import data %------------------------------------------- % import general variables from network build %-------------------------...
202557e128ee3f2d2fe0e6f66ea294294e15cc875695bd7b8b5b0889fda38c35
MATLAB
31,037
613
%% Plot co-expression NPP - GPCRs % Jan Watteyne - jan.watteyne@kuleuven.be or jwatteyne@gmail.com % 20230607 clear all close all workspace %% Import data %------------------------------------------- % import general variables from network build %------------------------------------------- % import gene...
46bd9f9a6c328ef7af733be2aca5efe9f83f2872dafc80204c57c904d30f3ce8
MATLAB
31,160
632
%% plotRawData_BGLU clc; clear all; close all; theDir = 'C:\Users\kmfo8\Dropbox\Rutgers\Firestein Lab\Manuscript DRAFTS\2022 BDNF MEA paper\figures\data - BDNF GLU injury recovery\revision_0g30gonly_newPlots\data\';%D:\kate_dropbox\Dropbox figDir = 'C:\Users\kmfo8\Dropbox\Rutgers\Firestein Lab\Manuscript DRAFTS\...
805d4c49f3d54def3fcfecd390a01220823918db6a24b0959b7834089149471d
MATLAB
31,318
909
% function [gcbf,cbfdat] = perf_reconstruct_2D((Filename, FieldStrength, ASLType, FirstimageType, SubtractionOrder, SubtractionType, ThreshFlag, threshold, CBFFlag, MeanFlag, Delaytime, Labeltime, Slicetime, T1b, PASLMo, optionPCA, ASLscaling, M0scaling, diffs) % % This MATLAB function is to reconstruct the raw perfu...
6c68c05c012d99bc8b63d8a47bb21763c05fc19605747f51e394e9f4efafe3df
MATLAB
31,518
1,028
%% Parallel summary centered violin analysis across locations and groups % Requires: % bootstrapRf_goalMode_allScopesSideStratified_v3.m % analyzeBootstrapZDistribution_v2.m % Parallel Computing Toolbox % % Width plots: % matched-correct CDF width - real-error CDF width % % Proportion plot: % matche...
c1c8694c8a5a14ae33be3b4c37842cd86cf11096d820b95c7ac24e3b373eb10e
MATLAB
31,643
718
% SyGCAMP6s_pool % Marie Labouesse, marie.labouesse@gmail.com - June 2021 % 1- POOLED DATA % load matlab spaces generated in: Marie_FP_IndivData_extraction % puts individual trials into one big matrix (all mice together): PooledINDIV % calculates the mean of individual trial trajectories aligned to specific ev...
83b956ee75de1e87737760e5842c5d35b4a3b4f8f6eb88051a9f6abb47f07fb6
MATLAB
31,700
742
function varargout = spm_XYZreg(varargin) % Registry for GUI XYZ locations, and point list utility functions % % ---------------- % % PointList & voxel centre utilities... % % FORMAT [xyz,d] = spm_XYZreg('RoundCoords',xyz,M,D) % FORMAT [xyz,d] = spm_XYZreg('RoundCoords',xyz,V) % Round specifi...
783bffe15ddf3d62a702aadd28fba64d41956204f27a23f8606b01c638773ef8
MATLAB
31,757
860
close all; clear; load('U:\rg-yoshida\Yoshida_lab_shared_folder\Shared Data\Antonio\In vivo data\Babak\preliminary analysis\Space_bin\Space_bin_filt30Kalman.mat') load('U:\rg-yoshida\Yoshida_lab_shared_folder\Shared Data\Antonio\In vivo data\Babak\preliminary analysis\Space_bin\Spatial_Vel_ROI4.mat') load('U:\r...
7b83e3ae24202e4d23be0e84ae56623dd5e00d104795d88b4c1ce004440cc200
MATLAB
31,758
942
%% Figure S6c & d (left panel) % this script rungs additional analysis required for the plots of figure % S6c & d (left panel) %% clear ft_defaults %% - SUBJECTS - %% % ID 18 missing because of LP at 50Hz subjects = {'OSL13', 'OSL14', 'OSL17', 'OSL21', 'OSL24', 'OSL26', 'OSL27', 'OSL28', ... 'OSL29', 'OSL30', '...
697ee17789b5d296199af277819cbb71d33c67cde45a1a44dd9bb42a5e63dd3d
MATLAB
31,874
672
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% ################################################################# %% DESCRIPTION % Script to analyse data for: % Grieves et al. (2020) % Quantification of firing rate map procedures % % This script % NOTE: This script is dependent on graphtest...
024238e8ca11a641b4f267a022702874eb2c1f4793b2f271fa84a383b79b0ab8
MATLAB
32,134
1,138
function zStats = analyzeBootstrapZDistribution_v2( ... Rf, observed, bootstrap, tests, info, ... zThreshold, plotResults, qRange, nExampleCDF, storePerIterationZ) %-------------------------------------------------------------------------- % analyzeBootstrapZDistribution_v2 % % Post-processing function fo...
a9c8ef4b36d29dd9c91775870070f0d1447f296f061637fb362612a0b47c94f2
MATLAB
32,182
841
function varargout = erpviewerx(varargin) % ERPVIEWERX MATLAB code for erpviewerx.fig % USAGE: % erpviewerx(time,DATA,chanlocs[,title]); % % time : vector of time points % DATA : channels X time matrix % chanlocs : eeglab chanlocs structure % title : (optional) string title for figure % % wri...
d6564b1615dc82e913c25d732d69e1f7fed082e895c102c904d108a73b544735
MATLAB
32,211
970
clear all close all dbeh_path='C:\Users\xscogno\MATLAB\Flavio2\Waves\Tracking data\'; rec_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; dpath_spikes='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; dpath_sorting='C:\Users\xscogno\MATLAB\Flavio2\Waves\Sorting\'; dpath='C:\Users\xscogno\MATLAB\F...
07eee3ab88ffce381ad11086191bcbcde946f2144902eae24c54dbb0bb1bd876
MATLAB
32,241
726
% Call this script to use all functions of the OTBR Toolbox. % % Usage: initOTBR % % % Copyright: Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) % Contact: OTBR-Toolbox@ruhr-uni-bochum.de % Source Code: https://gitlab.ruhr-uni-bochum.de/ikn/OTBR % % Please cite the OTBR Toolbox where this function is use...
e6781a47bff957a80bfaf1ab54aad16441884cc132554f49ac1a52f5746867d2
MATLAB
32,247
849
clc; % set the root_dir to the directory where the Code and visualization data is located root_dir = 'fig45'; % Choose a iiject {'NY742', 'NY717', 'NY749'} -- we don't have iiject brains other than these but MNI should work for all Ss Subj = 'NY717'; % get paths to all visualization files paths = get_path(root_dir,Sub...
d9e22c0c01ef21464ec00f7887aa423bc528ecbae97eb6a37fbf98a038db3175
MATLAB
32,280
928
% Fig 3b % Extended data Fig 7b % Fig 3d % Extended data Fig 10b % Extended data Fig 10 k % Extended data Fig 7e,f %% clear all close all dbeh_path='C:\Users\xscogno\MATLAB\Flavio2\Waves\Tracking data\'; rec_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; dpath_spikes='C:\Users\xscogno\MATLAB\Flavi...
d357affd3305a1e6ae59b48960caafbf951df84e6e75b0ba1c892673cd7fb01f
MATLAB
32,283
1,197
function zStats = analyzeBootstrapZDistribution_v2( ... Rf, observed, bootstrap, tests, info, ... zThreshold, plotResults, qRange, nExampleCDF, storePerIterationZ) %-------------------------------------------------------------------------- % analyzeBootstrapZDistribution_v2 % % Post-processing function for: % ...
55f5ccfbba7056fd86cb202308fc1a88dfb743e0e0f522b0cf26729f9b45bd9b
MATLAB
32,374
766
%% Autocorrelations clear all close all dpath='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; plot_all=1; [big_table, waves] = get_big_table(); for w=1:length(waves) row_w=waves(w); disp(w); mouse=['L',num2str(big_table(waves(w),1)),'M',num2str(big_table(waves(w),2))]; day=big_table(waves(w),3);...
19f2d29495eac3dc77fc48b3bdb8b7e687ab05a5bb7af2034909c115bb018bed
MATLAB
32,410
1,161
classdef c_GUI_Tiler < c_GUI_handle % c_GUI_Tiler - Class to manage tiling of plots or other graphics in a figure window. % % Example: % hf = figure; % ht = c_GUI_Tiler('Parent', hf, 'Title', 'Example Tiler'); % ht.addAxes(); % plot(1:10,rand(10,1)); % ht.addAxes('title', 'Tile title', 'relWidth', ...
447a21479292ccf7a5ebea65ac9387923f760ec9b3aed7197916c2ca8e48a0d7
MATLAB
32,482
983
function [Ypk,Xpk,Wpk,Ppk,bxPk] = findpeaks_Elias(Yin,varargin) %FINDPEAKS Find local peaks in data % PKS = FINDPEAKS(Y) finds local peaks in the data vector Y. A local peak % is defined as a data sample which is either larger than the two % neighboring samples or is equal to Inf. % % [PKS,LOCS]= FINDPEAKS(Y) a...
d5b350ac20345817d1c78bd88d7f0d438ddb1c2716fd19f7332dd10a007a5380
MATLAB
32,705
716
% function MAP_fig_1_multi(mname,config) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% ################################################################# %% DESCRIPTION % Script to analyse data for: % Grieves et al. (2020) % Quantification of firing rate map procedures % % This script % NO...
18efa8b987409a1b21bf7a625017eca4ace4f780a941e4bb09220ec1b665ee94
MATLAB
33,034
842
clc; % set the root_dir to the directory where the Code and visualization data is located root_dir = 'fig45'; % Choose a subject {'NY742', 'NY717', 'NY749'} -- we don't have subject brains other than these but MNI should work for all subjs Subj = 'NY717'; % get paths to all visualization files paths = get_path(root_di...
c12e6522e02f1f78c2cc6e3a41f598f1dfcbaa34680925207b4acb7ae74185bc
MATLAB
33,061
810
function buildDocs % Builds the HTML documentation of the OTBR Toolbox in docs/html. % % Two kinds of pages are generated: % - one page per function listed in docs/public_api.md, generated from % the help text of the function -- the same text that "help name" % shows. The help text is the only source; nothing...
b41bb4ddb3dabf91aa29ddc97a9ed768542afbe96afd84e90f0bee360c5f87b2
MATLAB
33,071
778
function FP_extraction_rotarod_Arturo(PATH,data_names,done,overwrite) % TDTimport_newrig % Plot data from new rig set(0,'defaultfigurecolor',[1 1 1]) %% INITIALIZE % Initialize Preprocessing info structure Preprocessing = struct(... 'path_to_tank', [],... 'sampling_rate', [],... 'sampling_rate_ds...
399f1ffae2c9e0bd913eebbddc71250576fd276f3bfff9f9abfcd0399cb12ce2
MATLAB
33,270
802
%% Analysis for each cycle of the oscillation separately - Phase clear all close all dpath='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; plot_all=1; [big_table, waves] = get_big_table(); %Params pixel_size_new=1.18185; pixel_size_old=1.78211; N_sh=200; count_s=0; % data=load('C:\Users\xscogno\MATLAB\Flavio2\W...
46be8dc6cacf74ec5355630eff84e0bc05265467d3762e8aeb861953f31af1fa
MATLAB
33,467
523
% Plot single cell correlation between laps % Marta Huelin % Loads extracted data for each protocol session and for all rats % INPUT: % 'parameter' is a string and defines the information you are analysing and that is a field in singleCell_LAPScorr structure. % Can be norm_centreMass_diff, centreMass_diff, ...
8f34a8ad2da6ad8b258d4b0c0ec09a307b8a134f8cc52a5694190c520e67e04f
MATLAB
33,473
1,055
clear all close all dbeh_path='C:\Users\xscogno\MATLAB\Flavio2\Waves\Tracking data\'; rec_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; dpath_spikes='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; dpath_sorting='C:\Users\xscogno\MATLAB\Flavio2\Waves\Sorting\'; dpath='C:\Users\xscogno\MATLAB\F...
ccd917aaba280537c493b8ab2d59461f4fac19456a610f244e60a22fe2d6fd40
MATLAB
33,478
640
% main script for analyzing micro-electrode array (MEA) data %%%%%%%%%%%%%% % 5/12/2016 combined this main function with GetSpikePoints for feeding %%% % into WaveClus analysis. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 6/16/2021 needed to change the way the raw data was accessed: this %%%%%% % version (_...
a9585272a1574085fc318b1f37e375ad40c92383e99dbba45ebc860e1088e7ee
MATLAB
33,511
810
classdef GoogleDrive < handle % AUTHORSHIP % Primary Developer: Stephen Meehan <swmeehan@stanford.edu> % Copyright (c) 2022 The Board of Trustees of the Leland Stanford Junior University; Herzenberg Lab % License: BSD 3 clause properties(Constant) URL_FILE_PREFIX="https://drive.google.com/file/d";...
aee04df95a0669f5376c94b450f8279683b926705c668e8a9e99784a28859a9a
MATLAB
33,532
768
function pipeline_01_NEAR_ICA(study_info) addpath('/home/bonaiuto/eeglab2021.1'); addpath('adjusted_adjust'); ext='.set'; % Channel location file channel_locations = '/home/bonaiuto/dev_beta_umd/data/GSN-HydroCel-64.sfp'; % Initialize the filters % High-pass frequency highpass = 1; % Low-pass frequency lowpass = 1...
f79a2638d05ece15a870645cec51107048d6945e394366d91fd4af26f2b3cedb
MATLAB
33,576
923
function ds = spm_uw_estimate(P,par) % Estimation of partial derivatives of EPI deformation fields % % FORMAT [ds] = spm_uw_estimate((P),(par)) % % P - List of file names or headers. % par - Structure containing parameters governing the specifics % of how to estimate the fields. % .M ...
71b464451c7b7c0f69c86d631aecb836db1c8ba98231969933f4396b21ebaa9d
MATLAB
33,642
743
%% Spot Stats Bulk Export % By Thomas Murphy, UC Riverside % Last updated 08/2021 % Allows user to select multiple spots objects for stats export, specify Excel sheet names, and collect all % stats data into a single summary .xlsx document. User may specify either "Summary" or "All" stats % export. "Summ...
e717696b92760f73b913de8d3e69466755406e3ca4011d6ff2500172b8953723
MATLAB
33,661
776
function varargout = fun_kmeans(X, k, varargin) %KMEANS K-means clustering. % IDX = KMEANS(X, K) partitions the points in the N-by-P data matrix X % into K clusters. This partition minimizes the sum, over all clusters, of % the within-cluster sums of point-to-cluster-centroid distances. Rows of X % corre...
2584fdb17281691bc8ed78bd97e416dca8b4793434d279f062b877b2809606e7
MATLAB
33,720
1,055
function nvr_rec_cb(flag,opt,op2) % % This is the callback function for the nvr_recorder panel. % % Created: 1/21/02 by Steven Eliades %Master callback file global nvr global SNum % turn on the debug mode: using saved data from data file to debug the code nvr.debug_flag=1; % if(nvr.debug_flag==...
4300c0dfee7931dbe4a39126f75685670c6fd9b651d36f8e2b1c633c84bbb61a
MATLAB
33,748
956
%% indicate variables clear all ;close all; clc theta_test = 'yes' subj = '57' freq_analysis = 'wavelet' select_chan = 3 lock ='onset' %'response' % exp_type ='tuning_correct' % {'study_test' 'tuning' 'tuning_correct' 'tuning_incorrect' 'indoor_outdoor'} minfreq = 3; maxfreq = 200; cd (['/mnt/yassamri/iEEG/sandra/su...
2fef6dd181af319bf82a876bc5dac4ebc9ce3222c1321e0e04149e760cbe091d
MATLAB
33,792
858
function predict_movement_direction(data) % predict_movement_direction Essence of the real-time fUS-BMI % This function takes in a data point and performs the fUS-BMI task using % its information. % % Stripped version for simulated data for real-time fUS-BMI paper. % Removed TCP socket information % % % INPUTS: % da...
29404b3ffbb5600215821c3f0573ad51f803cec6ab2a526f1b74236f4690d51d
MATLAB
33,991
666
clearvars -except ET_data os = 'Windows'; % os = 'Mac'; ET_subjID = 5:7; ET_volt_data = struct([]); switch os case 'Mac' if exist('ET_data','var') == 1 else load('~/Downloads/ET-Dopamine-manuscript/Data/ET_task_data.mat') end for i = 1:numel(ET_sub...
aa591c6f3009a4c08699fb67e4a90df92ede4120f08440691a9e01fd9edd58c2
MATLAB
34,235
932
function [SPM,xSPM] = spm_getSPM(varargin) % Compute a specified and thresholded SPM/PPM following estimation % FORMAT [SPM,xSPM] = spm_getSPM; % Query SPM in interactive mode. % % FORMAT [SPM,xSPM] = spm_getSPM(xSPM); % Query SPM in batch mode. See below for a description of fields that may % be present in xSPM input....
86f6a5e932b6da199fc2c14bb1f4d2762084fc5b47b026031e139000e00c35a2
MATLAB
34,302
665
%eopn3_closedloop_openfield_pool %% close all; clear variables; clc; set(0,'defaultfigurecolor',[1 1 1]) show_plot = 1; save_plot = 1; done = 1; overwrite = 1; reanalysis = 1; %% filedirectory = uigetdir('select folder'); %select the overall folder, eg 'deeplabcut sheets' Path2savingfolderALL = fi...
6a28734e6e4487f16b69ce3d92ca806de3ad824c6f7deda547f98427b5380e4c
MATLAB
34,335
823
function varargout = spm_mip_ui(varargin) % GUI for displaying MIPs with interactive pointers % FORMAT hMIPax = spm_mip_ui(Z,XYZ,M,DIM,F,units) % Z - {1 x ?} vector point list of SPM values for MIP % XYZ - {3 x ?} matrix of coordinates of points (Talairach coordinates) % M - voxels - > mm matrix % DIM ...
78e29ff441db76914eb233014d9c43c3157c7eb3738c4d0196f717bc08d8a65e
MATLAB
34,347
685
% NUMBER OF LOCAL AND REMOTE AWAKE REPLAY EVENTS IN TRACKS PER PROTOCOL % MH 2020 % Plots a figure per protocol. Each subplot is a rat. Within subplot, all tracks plotted with bar plot, each bar indicating number of replay events % decoded during that track, for each possible track decoded. % INPUT: % Mutlievents: 1...
b7edc9566da9fadfc6cf6cc4ba3d4164192f9ef64e3447cc06fb56086b2e68d3
MATLAB
34,360
594
function filledkData = GRAPPA_JDR_V2(kData,kCalib,kernelSize,lambda, Rfactor) % Dengrong Jiang, 09-22-2015, Johns Hopkins BME % Modified from GRAPPA.m written by Michael Lustig 2008 [Nky,Nkx,Ncoil] = size(kData); % decide which direction is the foldover direction, transpose kData if it's % not along Ky isKx = sum(abs(...
178f36ac76533df463ae7e933c4e7df469adf5d66ea7dac55e164cb8b4490adb
MATLAB
34,474
984
classdef PopUp < handle % AUTHORSHIP % Primary Developer: Stephen Meehan <swmeehan@stanford.edu> % Copyright (c) 2022 The Board of Trustees of the Leland Stanford Junior University; Herzenberg Lab % License: BSD 3 clause methods(Static) function l=CLOSE_LABEL l=['<html>' BasicMap.Globa...
330b257ad3e24a5e6de33bb54702727c88b56b02629707269ef84137faf6cf1a
MATLAB
34,769
600
function histogram_replay_events(plot_type,epoch, merge_exposures,data_type,bayesian_control) % Plots distribution of replay events over time for each track and protocol. % Histogram is calculated as the sum of replay events divided by number of active sessions. % INPUT: %plot_type: 'sum' for showing normal hist...
5b4af4ce38c270430c5b3bd7a98e51f73a61df22bdf12379d32c1d5c86ed62b0
MATLAB
34,832
853
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Summary %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % This code loads in each trial for each condition for each subject. Then % computes a head model. Source localizes the data with ...
03b7944b3f6d7d5ebc03ee34956541da1565c73d0eeb91b7b1371808b88719ec
MATLAB
35,117
1,337
function Out = make_decode_summary_ABCD_v6_singleTraceColumn(pred_xy, gt_xy, t_mid, err_euclid, Spatial_Vel, M, varargin) % MAKE_DECODE_SUMMARY_ABCD_V6_SINGLETRACECOLUMN % ----------------------------------------------------------------------------- % Same as v6, but with one trace-example column and larger labels: % %...
80439a8a59f180785ab05e7831f5fab2cd72aeed915e82b0a789740f3b3d4e30
MATLAB
35,273
957
classdef SuhFcs < handle % AUTHORSHIP % Primary Developer: Stephen Meehan <swmeehan@stanford.edu> % Copyright (c) 2022 The Board of Trustees of the Leland Stanford Junior University; Herzenberg Lab % License: BSD 3 clause properties(Constant) DFLT_X='SuhFcs.DefaultX2'; DFLT_Y='SuhFcs.Defau...
e98459f3e6ed71e4cc2ef04cb2f9810aaf2f7db15055eb840a29ecb10b008ef3
MATLAB
35,282
770
% Script to plot Supplementary Figure 3, calculate statistics reported, and % save data to Excel spreadsheets that are then imported into the Source % Data file. % Kit Longden 2023. addpath ../Shared_functions/ % Rescue data % ----------- load ../../results/Figure_3/Rh_rescue_data_panel_a_b.mat cpRh* idRh* % Shibir...
0e53ac90ccb7f45866fae17825aa24551d1fd07def01139824586c356934a79b
MATLAB
35,310
921
%SpiketoText - Worked Example of CustomFileTemplate (Spike2 / CED text export) %{ PURPOSE: Import function for Spike2 (CED) text exports - the "*_export.txt" files produced by exporting a .smr recording as text. Built from CustomFileTemplate.m. Steps specific to THIS format are labelled [DATA-SPECIFIC]; steps t...
9636b4cd696a9fcb03235a66577aa947aae503d6b703406e0ec47546ffe253b4
MATLAB
35,463
957
% Analysis of scatter plot of delta preferred phase VS pairwise anatomical % distance clear all close all rec_data_path='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; data=load('C:\Users\xscogno\MATLAB\Flavio2\Waves\Semi final scripts\Final scripts\Outputs\locking_all_sessions_280821\locking_all_sessions.mat'); ...
358f695ec8c2ed83a5cd0e38a9168abc944b324f7713d6b1434bd2901abe8c20
MATLAB
35,568
684
function shoot = tbx_cfg_shoot % MATLABBATCH Configuration file for toolbox 'Shoot Tools' % $Id: tbx_cfg_shoot.m 7389 2018-08-06 13:35:48Z john $ if ~isdeployed, addpath(fullfile(spm('dir'),'toolbox','Shoot')); end % --------------------------------------------------------------------- % images Images % ------------...
c03dd296995238179ed103eb34110da27a948aa7bbcffe3658268470007a192f
MATLAB
35,800
765
%eopn3_closedloop_openfield_finemovements % loads dlc datasheets, aligns body positions with TTL (from the videos, stored in CSV file) and extracts more precise info on movement % here in this analysis, we only take the 'laser on' trials % exports data into workspace for each group (GFP or eOPN3) which can then be...
696b252a1defd3955b0e37b16b967551f80974d76a3d54c7997d47992e189cc0
MATLAB
35,836
852
function twix_obj = mapVBVD_DJ(filename,varargin) % Reads Siemens raw .dat file from VB/VD MRI raw data. % requires twix_map_obj.m & read_twix_hdr.m % % % Author: Philipp Ehses (philipp.ehses@tuebingen.mpg.de) % % % Philipp Ehses 11.02.07, original version % [..] % Philipp Ehses 22.03.11, port to V...
cc1a8439825251fb055f83a56a4119afc93ea2a463ca8ffb3aa9cb42b6950203
MATLAB
35,889
778
% function MAP_fig_1_multi(mname,config) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% ################################################################# %% DESCRIPTION % Script to analyse data for: % Grieves et al. (2020) % Quantification of firing rate map procedures % % This script % NO...
18071e17f8d93107c1ffa8613e56fd984ca98e9a29d895753a56e664ce71f609
MATLAB
35,936
898
classdef SuhHeatMap < handle % AUTHORSHIP % Primary Developer: Stephen Meehan <swmeehan@stanford.edu> % Copyright (c) 2022 The Board of Trustees of the Leland Stanford Junior University; Herzenberg Lab % License: BSD 3 clause properties(Constant) PROP_COLOR_SCHEME='heatMapScheme'; COLOR_SC...
215a63052a7c150f74874b3260e0aafbc584cf2599fc9a8027fdcaa51a0c5b6a
MATLAB
36,130
1,280
%% creating source data for each figure in ms % each cell tell which script to run %% addpath(genpath('/mnt/yassamri/iEEG/sandra/analysis_pipeline_final')) %% figure 1b. First run A001_plot_behavior, transpose the % paramters below, then save into table. the cell with lines... % 137 has these variables T = [ [1:8]' p...
5e90b105faee1e1d619c6769a0cb0498a47b12b42d2f27073ada52317aac5fdf
MATLAB
36,131
864
close all; clear; load('U:\rg-yoshida\Yoshida_lab_shared_folder\Shared Data\Antonio\In vivo data\Babak\preliminary analysis\Space_bin\Space_bin_filt30Kalman.mat') load('U:\rg-yoshida\Yoshida_lab_shared_folder\Shared Data\Antonio\In vivo data\Babak\preliminary analysis\Space_bin\Spatial_Vel_ROI4.mat') load('U:...
6ca8dbe25c31946f7d79456454c714e67dffdb839856d7027b45d1c530aaa83a
MATLAB
36,431
852
classdef UstTest % AUTHORSHIP % Primary Developer: Stephen Meehan <swmeehan@stanford.edu> % Secondary Developer: Connor Meehan <connor.gw.meehan@gmail.com> % Bioinformatics Lead: Wayne Moore <wmoore@stanford.edu> % Copyright (c) 2022 The Board of Trustees of the Leland Stanford Junior University; Herzenber...
ec32d001a852b0dd1aaf943c30c778e72588dea2bc0cc90edd3645eefcb9f26b
MATLAB
37,028
1,262
clear all close all dbeh_path='C:\Users\xscogno\MATLAB\Flavio2\Waves\Tracking data\'; rec_data_path = 'C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; dpath_spikes='C:\Users\xscogno\MATLAB\Flavio2\Preprocessed_data\'; dpath_sorting='C:\Users\xscogno\MATLAB\Flavio2\Waves\Sorting\'; dpath='C:\Users\xscogno\MATLAB\F...
a58ae82551f29f0de70a60888e294fb9d6bf83692038ea411fd02e36649ff08f
MATLAB
37,187
688
function [reduction, umap, clusterIds, extras, epp]... =run_examples(whichOnes, verbose, varargin) % AUTHORSHIP % Math Lead & Primary Developer: Connor Meehan <connor.gw.meehan@gmail.com> % Secondary Developer: Stephen Meehan <swmeehan@stanford.edu> % Bioinformatics Lead: Wayne Moore <wmoore@stanford.edu...
000bacaddbd637e4fd45b2c446e2d5d8f9253a3c07a08fd6f2df6819af70a6ba
MATLAB
37,289
1,047
function sys = ORD2011() % ORD2011 O'Hara-Rudy model of human ventricular action potential. % The ORd model is described in the "Simulation of the Undiseased % Human Cardiac Ventricular Action Potential: Model Formulation and % Experimental Validation" by Thomas O'Hara, Laszlo Virag, Andras % Varro...
d6757e3f24b24f739cd1f6f741fe3d927cc68b3cdc2232f542bb53a0f09900c3
MATLAB
37,378
734
classdef videoTracker < handle % vT = videoTracker(vInNme, vInNr, vInFormat, savFName) % % Videotracker object. Detects a bright object on dark background. % Can be changed to detect dark object on bright background. % Writes to a memory mapped file (camera serial _dat.txt), writes % [x, y, ang...
c83275390a2ee1141bc8927bf64fd3167bab78168c065ee49d54cebef4351cc2
MATLAB
37,396
689
% Calculates rate of replay (events/min) for each track during sleep periods. To do so divides periods in 30min chunks. Plots rates for each % 30min chunk and compares it between tracks. % INPUT: % data_type: 'main' for using data from main HIPP replay project; 'speed' for using speed protocol data; and 'ctrl' for ...
b5d65403052226eca51b961b339e6eb62de14f99d5fd52badfe3035895782eae
MATLAB
37,413
766
clc; clear all; close all; dataLoc = 'C:\Users\kmfo8\Dropbox\Rutgers\Firestein Lab\MEA papers -- addl experiments\EXP for BDNF + glu\Glutamate cell death, BDNF treatment\v3 (final) of analysis\';%D:\kate_dropbox\Dropbox figDir = 'C:\Users\kmfo8\Dropbox\Rutgers\Firestein Lab\MEA papers -- addl experiments\EXP for BD...