sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
1b62a8cc85b001114047d23f4e59a97b96aaddf8e68d2892dedd2b7c1f3305a1 | MATLAB | 3,415 | 94 | function [priors] = VBA_defaultPriors (dim, options)
% // VBA toolbox //////////////////////////////////////////////////////////
%
% [priors] = VBA_defaultPriors (dim, options)
% returns a default priors structure
%
% This function sets the default parameters associated to the prior pdf
% which are required for the mod... |
1b5a6a408d1fb3f421d859bfe4f2b302e98930e213e4180bc45ac6f640a34752 | MATLAB | 3,417 | 116 | function data = fixsampleinfo(data)
% FIXSAMPLEINFO checks for the existence of a sampleinfo field in the
% provided data structure. If present, nothing is done; if absent,
% fixsampleinfo attempts to reconstruct a sampleinfo based on either an
% trl-matrix present in the cfg-tree, or by just assuming the trials are
%... |
5d8248972ade5a2d0b9d7bc38f73c1fd47e28eeb91606fa41e5e9b57e41a7a74 | MATLAB | 3,418 | 85 | function CBIG_KRDNN_generate_K_test(setup_file)
% CBIG_KRDNN_generate_K_test(setup_file)
%
% This function generate kernel for testing set for kernel ridge regression
% algorithm.
%
% Inputs:
% - setup_file
% Path of the setup file (.txt file).
% setup_file has the following fields:
% 1. Line 1
% ... |
63604e93622530b340960edc392002b101dff744dfb0a9306989586eb9a315b4 | MATLAB | 3,418 | 87 | %Split up a directory of registered images into _1, _2, etc.
params.registeredImagesDir;
%how many subsections to calculate the descriptors?
params.ROWS_DESC = 3;
params.COLS_DESC = 3;
params.OVERLAP = .1;
filename = fullfile(params.registeredImagesDir,sprintf('%s_round%03d_%s_registered.tif',...
params.FILE_BAS... |
9588cc28e457e7813ff53503233341f38085bcbc6c742fc97498d7eba0e55491 | MATLAB | 3,418 | 98 |
%In the case of HTAPP917, we had an issue with extremely bright artifacts
%being present in the bottom of the gel, present only in the first two
%channels, and increasing in intensity throughout the rounds, peaking at
%round 5
% This function will identify the bad puncta across the rounds, then remove
% them for later... |
b6d98140cfdb67465dacf12ef34cde59730f8fddec8b0fdd73ea014dfd54e2d9 | MATLAB | 3,418 | 68 | function pf_table = CombineSensoryFields(pf_data, segmenter, orig_size, threshold)
% Setup table
variable_names_types = [["SegmentName", "string"]; ...
["PixelIdxList", "cell"]; ...
["PixelIds", "cell"]; ...
["Count", "cell"]; .... |
b36419f1c790e1a837acaf06052f20733789658c6f6be949d259ea94577cece9 | MATLAB | 3,419 | 93 | function [ferns,hsPr] = fernsClfTrain( data, hs, varargin )
% Train random fern classifier.
%
% See "Fast Keypoint Recognition in Ten Lines of Code" by Mustafa Ozuysal,
% Pascal Fua and Vincent Lepetit, CVPR07.
%
% Dimensions:
% M - number ferns
% S - fern depth
% F - number features
% N - number input ve... |
0f6d57c68e3b742b435313de8e8841801d2206e001526d0a27f821e504ff920e | MATLAB | 3,420 | 170 |
function LAN = dividir_eeg2lan(EEG, epoch, name)
% function dividir
% v 2.0
% 18.11.2009
%
% v.1 en dividir_eeg2lan_old.m
%
% EEG = datos en estructura eeglab (EEG.data)
% pero con campo EEG.time segun formato LAN
% epoch = matriz con numero
% name = celda con strig con los nombre de
% e.g.: EEG = d... |
50b94bd6ef72315b20e75e1320d379011d9f7c6bde3b5138a02b7a17af7015ca | MATLAB | 3,420 | 108 | function simplexv(imgVar,xyLblVar,viewIdx,xvSetVar,prmVar,resID,varargin)
%
% imgVar: varName of image cell array I to use. mat.(imgVar) has size [NxNvw]
% xyLblVar: varName of xyLbl array. [nxnptx2xnVw]. row,ipt,x/y,vw
% viewIdx: scalar integer in 1..Nvw
% xvVar: varName of xv split array to use. mat.(xvVar) is a logi... |
dcd79de7b025106ea7d6b6345216c9f7e228d80451f6bbc7cd5a5cad0d84bb0a | MATLAB | 3,420 | 83 | %Purpose: Implement Hungarian Matching Algorithm for MSHBM and k-means parcellations
%parcellations.
%Inputs: MSHBM and k-means parcellations (run directly following
%parcellation BEFORE visualization)
%Outputs: Individual parcellations with matched values (e.g., network 1 is the same across parcellation methods.
%
%... |
efa00409b83914dd513fd2deb08a2c253f794b3d5407c696f13a6d865811462f | MATLAB | 3,420 | 86 | %% pipeline from MB modelling and MBON learning:
% from calcium imaging timeseries to MBON activity
% by A. Wystrach and M. Paoli, eLife 2024
close all, clear all, clc
% FUNCTIONS REQUIRED: create_MB, use_MB, learn_MB, familiarity_MB
%% load and extract database
load('examplary_bee.mat')
bee_original = database.bee;... |
40c8770b75ebc031de129e0a4c2ab7de9beb06b194696a73ea7676a71654fb8b | MATLAB | 3,421 | 85 | function [O_error, O_grad]=jacobiandet_error_2d_double(Ox,Oy,sizeI,dx,dy)
% Gradient and error of the Jacobian of the transformation grid
%
% [O_error, O_grad]=jacobiandet_error_2d_double(Ox,Oy,sizeI,dx,dy)
%
% Inputs,
% Ox, Oy : are the grid points coordinates
% Isize : The size of the input image [m n] ... |
6865d6ddafe1a582256c9d8d5e29621d3603ac71f5c2615bf3788869f270e92d | MATLAB | 3,421 | 93 | function compare_track_FR
% Quick comparison between peak FR distribution of place fields in the
% tracks. Compares within session, merging all sessions for both real and
% shuffled data, respectively. Also compares distributions between real and shuffle data.
% Runs Two-sample Kolmogorov-Smirnov test.
load('X:\Bendo... |
72c310fd382ba997b134fcc057e660c59cbccf113aa23c7ee6ebe0a712ba6640 | MATLAB | 3,422 | 88 | function perform_emotion_identification_analysis(p,decRes)
%
% - This code is written for performing emotion identification analysis
% based on region-wise decoding accuracy
%
%
% called from emotion2020_analysis_BATCH
%
%% settings
% score index
dimIdx = 1:14;
catIdx = 15:48;
hcpIdx = ~cellfun(@isempty,strfind(p.r... |
a8f79bdf00e09e993e56138794639c03fe6e3f4235d73080919a72b0e25486dc | MATLAB | 3,422 | 101 | function [ events, waves ] = wlProc_getEvSegmentsUsingMag( ...
data, samprate, bpfband, maxglitch, maxdrop, taudc, threshdb)
% function [ events, waves ] = wlProc_getEvSegmentsUsingMag( ...
% data, samprate, bpfband, maxglitch, maxdrop, taudc, threshdb)
%
% This function identifies the locations of oscillatory bur... |
72ae52bb734f8a65bb3d44fe8324efa1908669f559582c02ed5e1f8252da5524 | MATLAB | 3,426 | 85 | function CBIG_KRDNN_generate_K_valid(setup_file)
% CBIG_KRDNN_generate_K_valid(setup_file)
%
% This function generate kernel for validation set for kernel ridge regression
% algorithm.
%
% Inputs:
% - setup_file
% Path of the setup file (.txt file).
% setup_file has the following fields:
% 1. Line 1
% ... |
47f2d635f39cf1d35fcded0dcd579836a2352b4749b4bee0776e853370fe7e45 | MATLAB | 3,427 | 105 | function [fnormhat,t]=instfreq(x,t,L,trace);
%INSTFREQ Instantaneous frequency estimation.
% [FNORMHAT,T]=INSTFREQ(X,T,L,TRACE) computes the instantaneous
% frequency of the analytic signal X at time instant(s) T, using the
% trapezoidal integration rule.
% The result FNORMHAT lies between 0.0 and 0.5.
%
% X : Analyt... |
dddebb43cfa70d6c2c37675df4378442d78661437d11e9b3566ad2e7fdfc27da | MATLAB | 3,428 | 88 | function [mvmEpochsLogic, mvmEpochsIndex, mvmOnsetIndex, mvmOffsetIndex, restEpochsLogic, restEpochsIndex, time] = defMvmEpochs (mvmTrimmed,data,si_abf,si_img,spanThreshold_1,spanThreshold_2,plottingOptions,dataType)
% >>> OPERATION >>>
% Use wheel sensor data to define epochs with movement
% Only periods with flat si... |
eadefdd04b4608ef1288bb855b23a87942b868cf9b88ee6aa324315152b7ccc6 | MATLAB | 3,428 | 69 | function H = gradientHist( M, O, varargin )
% Compute oriented gradient histograms.
%
% For each binSize x binSize region in an image I, computes a histogram of
% gradients, with each gradient quantized by its angle and weighed by its
% magnitude. If I has dimensions [hxw], the size of the computed feature
% vector H i... |
0b742ab9725616587f87c4bf9f95ae1cf9f5e40dfaeb35cd9fed67ec9c083a7a | MATLAB | 3,429 | 119 | function [fhdr,chdr,ename,cnames,fcom,ftext] = read_egis_header(filename)
% READ_EGIS_HEADER reads the header information from an EGI EGIS format file
%
% Use as
% [fhdr chdr] = read_egia_header(filename)
% with
% fhdr - the file header information
% chdr - the cell header information
% ename ... |
3326379af356299f9d40eeb882aa0c5ac761488f9c61d4f795d1b4c5db61c06d | MATLAB | 3,429 | 89 | function [u_norm, coeffs, u] = smallestinconvexhull(M, x, U, tol)
% Computes a minimal norm convex combination of given tangent vectors in Manopt.
%
% function [u_norm, coeffs, u] = smallestinconvexhull(M, x, U)
% function [u_norm, coeffs, u] = smallestinconvexhull(M, x, U, tol)
%
% M is a manifold as returned by... |
802bd5b7639e0b192f784c829dc01426980a65b11f64860658f48c8a23582c50 | MATLAB | 3,429 | 123 | function [dmat2,units] = ComputeLandmarkFeatureFromPos(...
lpos,lpostag,t0,t1,nfrmtot,bodytrx,prop)
% Currently assumes single-target
%
% lpos: [npts x 2 x nfrmlpos] label array. (nfrmlpos=t1-t0)
% lpostag: [npts x nfrmlpos] logical
% t0: absolute time labeling lpos(:,:,1)
% t1: absolute time labeling lpos(:,:,end... |
05b7af4fa819017512d7fc261e1340cc77401361f77528bb083bfd349c2a18cb | MATLAB | 3,430 | 145 | classdef RectDrawer < handle
% Draw/show rectangles on an axis
properties
ax
hRect
end
methods
function obj = RectDrawer(hax)
obj.ax = hax;
obj.hRect = gobjects(0,1);
end
function delete(obj)
deleteValidGraphicsHandles(obj.hRect);
obj.hRect = [];
ob... |
8421ebfeeb4649deb50e042ae4a51e8b2e5658dbc61ba419491ab6e8c90c6c53 | MATLAB | 3,431 | 104 | function [hdr] = read_nihonkohden_hdr(filename)
% READ_NIHONKOHDEN_HDR reads the known items from the Nihon Kohden EEG
% system header file (*.m00) and returns them in a structure. This reading
% function is an adaptation of get_nkheader.m written by Timothy Ellmore
%
% Use as
% hdr = read_nihonkoden_hdr(filename)
%... |
83af05255ac07cd1aa5f31db585756fdfd299d4b0eb93b1a03e9e520f9855930 | MATLAB | 3,432 | 79 | function [subs,vals] = nonMaxSupr( I, radii, thresh, maxn )
% Applies nonmaximal suppression on an image of arbitrary dimension.
%
% nonMaxSupr( I, ... ) returns the pixel location and values of local
% maximums - that is a location is returned only if it has a value greater
% then or equal to all pixels in the surroun... |
febca1a5161c5f216c8d14a23c69dbbf9c50affa2f5886fc51f7cf53bd641e8c | MATLAB | 3,432 | 74 | %
% Read and plot cognitive boundary data based on NWB-formatted files
%
% Pre-requisite: NWB routines are installed and in path
%% Section 1 -- Set paths and initialize NWB API
basepathData = [pwd, '/exported_upload/']; % NWB data files
basePathNWBCode = [pwd, '/matnwb-2.4.0.0/'];
basePathCode = [pwd, '/... |
a29a97ebb0d599df53003f9d7fec571a91dd082779ec18565673fc0efa12c918 | MATLAB | 3,433 | 88 | function h_saveImageAs3(handles)
global h_img3;
[currentInd, handles, currentStruct, currentStructName] = h_getCurrendInd3(handles);
[fname, pname, filterindex] = uiputfile({'*.tif', 'Scanimage Tiff, only for scanimage files';...
'*.tif', 'RGB Tiff (not working yet'; '*.tif', 'Single Color Tiff (not worki... |
c211b244083cda165df9dff1dc7bc631bcf45c00fbe09310abf2b61b20e7d331 | MATLAB | 3,433 | 59 | function place_fields_BAYESIAN_combined = generate_cross_experiment_cell_id_shuffles(folders)
workingDir = pwd;
cross_experiment_good_cell_id = [];
place_fields_BAYESIAN_combined = [];
place_fields_BAYESIAN_combined.good_place_cells = [];
for track = 1:2
place_fields_BAYESIAN_combined.track(track).raw = [];
p... |
00b97ceb9b066520b175a8d30c8927a1a1334a633758c5c50fe94d8b325102d2 | MATLAB | 3,434 | 79 | classdef CBIG_KRDNN_unit_test < matlab.unittest.TestCase
% Written by He Tong and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md
methods (Test)
function test_KR_TVT(testCase)
CBIG_CODE_DIR = getenv('CBIG_CODE_DIR');
cur_dir = fullfile(CBIG_CODE_D... |
fa4d2d9fd34bf08ce27a49ccde4c1e84d237225def0b14aefb9a5f22e8a5c208 | MATLAB | 3,434 | 100 | function jtree = jtreeCreate(cg, varargin)
%% Create a junction tree for a given factor graph
% This structure can then be passed to jtreeCalibrate
% Optionally include cliqueConstraints, a cell array of sets of variable
% indices if you want to guarantee that cliques containing these sets are
% created.
%
% cg is a cl... |
c547ce5ddd502440d6235ca9a917dfdbbef6666d4c6d21155c6ec1b949c0e0cd | MATLAB | 3,435 | 106 | function [e, p] = RunCGALMeshGenerator(mask, param)
% Runs CGAL mesh generator on 3D matrix 'mask'
% For info on 'param' and 'info' refer to 'image2mesh_cgal.m'
%
% Written by:
% Hamid Ghadyani May 2011
if ~isfield(param,'tmppath')
tmppath=tempdir;
else
tmppath=param.tmppath;
end
if ~isfield(param,'delmedi... |
4732ef871784adfab025c138b29f95aae2d24f81290a9820c88815a2ec094b99 | MATLAB | 3,438 | 101 | function f = VBA_spm_Gpdf(x,h,l)
% Probability Density Function (PDF) of Gamma distribution
% FORMAT f = spm_Gpdf(x,h,l)
%
% x - Gamma-variate (Gamma has range [0,Inf) )
% h - Shape parameter (h>0)
% l - Scale parameter (l>0)
% f - PDF of Gamma-distribution with shape & scale parameters h & l
%_______________________... |
6e61105fdae49904ceee395f39ebd810f8cc36a7f06e9014d9a6f8eb5f65282c | MATLAB | 3,439 | 154 | clear
clc
d=dir('data/Sessions_trials/*sessions.mat');
nrats=length(d);
maxsess=500;
bdirs=nan(nrats,maxsess);
bfreqs=nan(nrats,maxsess);
bdds=nan(nrats,maxsess);
bfds=nan(nrats,maxsess);
bdfs=nan(nrats,maxsess);
bffs=nan(nrats,maxsess);
hits=nan(nrats,maxsess);
hitds=nan(nrats,maxsess);
hitfs=nan(nrats,maxsess... |
1676ca3ee6c0945e37340985f970dfb6bf1390ccf278da3e7606ab9c6ddb633a | MATLAB | 3,440 | 145 | function [D, I] = meg_slicer(data, cond, condNames, levelNames)
% function [D, I] = meg_slicer(data, cond, condNames, levelNames)
%
% INPUTS
% data
% data matrix, time x channels x trials
%
% cond
% condition matrix, trials x conditions
% Each column is the condition associated with one slice. The value
% give... |
fcd323f6ad7e83e1cb022f934b35e65a1a8997454259ab4d87da36070f4d1bc2 | MATLAB | 3,440 | 83 | function EEG = DS_deleteDuplicates(EEG)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Find and delete any duplicate spindle events (if they exist)
%
% Part of detect_spindles toolbox:
%
% Authors: Stephane Sockeel, PhD, University of Montreal
% Stuart Fogel, PhD, University... |
2970a260c806ec6aae7faacea4a7bf5c509edbf11a7851c2290252b452d6d540 | MATLAB | 3,441 | 103 | function [model, bestParam, mu, se] = ...
fitCv(params, fitFn, predictFn, lossFn, X, y, Nfolds, varargin)
%% Fit a set of models of different complexity and use cross validation to pick the best
%
% Inputs:
% params is a matrix where each row corresponds to a different tuning parameter
% eg models = [lambda1(1) l... |
51a2a628397438a593d7ed597602b71765f624a33029f347399074e2369358d4 | MATLAB | 3,441 | 117 | function [nst] = read_neuralynx_nst(filename, begrecord, endrecord)
% READ_NEURALYNX_NST reads a single stereotrode file
%
% Use as
% [nst] = read_neuralynx_nst(filename)
% [nst] = read_neuralynx_nst(filename, begrecord, endrecord)
% Copyright (C) 2005, Robert Oostenveld
%
% This file is part of FieldTrip, see ht... |
23b3dd43f0b6f5c21a488a7cc21ff4f96c9566b982127f598c02e713d97f5f6e | MATLAB | 3,442 | 120 | function [varargout] = meg_leadfield1(varargin)
% MEG_LEADFIELD1 magnetic leadfield for a dipole in a homogenous sphere
%
% [lf] = meg_leadfield1(R, pos, ori)
%
% with input arguments
% R position dipole
% pos position magnetometers
% ori orientation magnetometers
%
% The center of the homogenous... |
3815abecb904b4143e0fbef7cdab68a0fa2ef4c09b76a675d8237f61bd550c21 | MATLAB | 3,442 | 129 | function [phi_star, I, beta_opt] = phi_star_Gauss(Cov_X,Cov_XY,Cov_Y,Z,beta_init, normalization)
% Calculate integrated information "phi_star" based on mismatched decoding
% See Oizumi et al., 2016, PLoS Comp for the details
% http://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1004654
%
% INPUTS: ... |
bb05532769cbd47ffac48cffe89cc0315837b1452b20d3459edba53dc09dc216 | MATLAB | 3,443 | 112 | function [gamma2] = DTFvalue(A,low_freq,high_freq,fs)
% DTFvalue - calculate DTF values given a coefficient matrix from a MVAAR model
%
% Usage: gamma2 = DTFvalue(A,low_freq,high_freq,fs)
%
% Authors: Lei Ding and Christopher Wilke
%
% Input: A - MVAR model parameters
% low_freq - lowest frequency to pe... |
ca7c962322a8bf88b2a5e4a0ac06f32c987efd2be58807253f5a03e1aa775c1a | MATLAB | 3,443 | 117 | function [ntt] = read_neuralynx_ntt(filename, begrecord, endrecord)
% READ_NEURALYNX_NTT reads a single tetrode file
%
% Use as
% [ntt] = read_neuralynx_ntt(filename)
% [ntt] = read_neuralynx_ntt(filename, begrecord, endrecord)
% Copyright (C) 2005, Robert Oostenveld
%
% This file is part of FieldTrip, see http:/... |
3e912e19a2edde70470ae29cb8235ef63280e60ab8d6d437c9de6d7fabf89a07 | MATLAB | 3,445 | 91 | function CBIG_AuthorTopicEM_RunEM(seed, K, input_file, brain_mask2mm, alpha, eta, init_type, init_file)
% CBIG_AuthorTopicEM_RunEM(seed, K, input_file, brain_mask2mm, alpha, eta, init_type, init_file)
%
% Wrapper function to estimate the author-topic model's parameters using the Expectation-Maximization (EM)
% inferenc... |
4d1bb6be2d0fa4f2fdad231c71083c47135610e55dfd8012956c0b1f8ee82d85 | MATLAB | 3,447 | 69 | function E = bemf5_volume_field_electric(Points, c, P, t, Center, Area, normals, R, planeABCD)
% Computes electric field for an array Points anywhere in space (line,
% surface, volume). This field is due to surface charges at triangular
% facets only. Includes accurate neighbor triangle integrals for
% points l... |
028229c0870efcae58c41669db452af5838f2f8a6673eefa60de6f5e49b6e6f7 | MATLAB | 3,450 | 102 | function pairsOut=View_Clear_Brain_ROI_Corr(Anat,IM,M,Pnn,Proi,C,Pmax,params,g)
%
% This function draws ROIs on the brain and connecting rods colored by sign
% of correlation values in C. This can be the fc correlation itself if that
% is passed, or it can be the correlation of brain fc with behavior if that
% m... |
eb19934be7c6eab96118d3a2853993dba24e57d3ba3f8e64a0e98edc23477f9e | MATLAB | 3,451 | 112 | function mesh = add_blob_stnd(mesh, blob)
% mesh = add_blob_stnd(mesh, blob)
%
% Adds circular (2D) and spherical (3D) anomalies
% to mesh.
% mesh is the mesh variable or filename.
% blob contains the anomaly info.
% blob should have the following format:
%
% blob.x - x position
% blob.y - y position
% blob.z - z posi... |
5cd9d58dd7314019159d6ec97966919700e9aacfc961b84fe2f338d90af56e5f | MATLAB | 3,452 | 86 | %% Example script: running MCMC chains serially
% This example illustrates how to call JAGS and run a number of MCMC chains serially
%
%%% Model definition
% The BUGS example was taken from the WinBUGS course developed by Michael Lee and Eric-Jan
% Wagenmakers at <http://www.ejwagenmakers.com/BayesCourse/BayesBook.html... |
d4b9f9064a78b24cdb9dbc4e43e36c3f789ee25b3b3ae448b15b063b71f486cf | MATLAB | 3,454 | 146 | function selectedRows=showPolygon(data, X, Y,...
polygon, curAxes, columnNames, ttl, zeroTo1, ...
xTicks, yTicks)
if nargin<10
yTicks='compute';
if nargin<9
xTicks='compute';
if nargin<8
zeroTo1=true;
if nargin<7
ttl=[];
if nargin<6... |
c3cde01c7236aa3861685e7fd9c6e563cfd2cb3bbbcf129c058f38954f71752b | MATLAB | 3,455 | 79 | %% RELAX EEG CLEANING PIPELINE, Copyright (C) (2024) Aron Hill and Neil Bailey
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% any lat... |
f884f17191a60506d52b5e7963311a3e033932fd3f860952d5f86edd42841470 | MATLAB | 3,455 | 95 | % Utility to process parameter name/value pairs.
%
% DEPRECATED -- ONLY USED BY KMEANS2? SHOULD BE REMOVED.
% USE GETPARAMDEFAULTS INSTEAD.
%
% Based on code fromt Matlab Statistics Toolobox's "private/statgetargs.m"
%
% [EMSG,A,B,...]=GETARGS(PNAMES,DFLTS,'NAME1',VAL1,'NAME2',VAL2,...)
% accepts a cell array PNAMES o... |
819603ecc377c4aec54b603c386d6df381e2b787466eed0fd1eda709fbb65241 | MATLAB | 3,456 | 115 | function [blockOrder, attBlockOrder, targetBlockOrder, cueBlockOrder, targetTypeBlockOrder, targetPedestalBlockOrder] = ...
block_gen3(subjectID, run, stimDir)
% function [blockOrder, attBlockOrder, targetBlockOrder, cueBlockOrder, targetTypeBlockOrder, targetPedestalBlockOrder] = ...
% block_gen3(subjectID, ru... |
e86dfa7e55998c7ad75db2c001ddd4adb2a9cf0488f2d344e1c34c382f557dfb | MATLAB | 3,457 | 104 | function [np_data] = np_readdata (filename, np_info, idx_begin, data_length, option)
%
% function [np_data] = np_readdata (filename, idx_begin, data_length, option)
%
% np_readdata reads data from a NEURO PRAX data file (*.EEG).
%
%
% Syntax:
%
% [np_data] = np_readdata(filename,idx_begin,data_length,'samples');
% ... |
6f0b699e222be33e024049b0a731e5a3d1008413494e810e20e717b479ba119d | MATLAB | 3,458 | 119 | % Copyright Christopher Fricke, University Leipzig Medical Center,
% Neurology 2024
srcf2 = 'data\prep\coreg_indiv\datscan_normalized';
mask = niftiread(fullfile(srcf2,'Masken','mask.nii'));
d = dir(fullfile(srcf2,'frw*.nii'));
rois = {};
for i = 1:length(d)
fprintf('.');
nii = niftiread(fullfile(sr... |
e05a651b8c5903b6482acc9214ab33849f62a9127a4f986ed393a484496ea738 | MATLAB | 3,460 | 75 | function H = hog( I, binSize, nOrients, clip, crop )
% Efficiently compute histogram of oriented gradient (HOG) features.
%
% Heavily optimized code to compute HOG features described in "Histograms
% of Oriented Gradients for Human Detection" by Dalal & Triggs, CVPR05.
% This function is made largely obsolete by fhog, ... |
b8a5af690e8416c0f22a5cc87396dbda7780bd759fff6ae00b79d959a00f955a | MATLAB | 3,461 | 1 | function [ SUCCESS , ExperimentID, SubjectID, Phase, Box, MatlabStartDate, Duration, TSdata, Notes, Weight, Program, FileReportedUnits ] = TSloadstdtab ( filename )
%
% Assumptions:
% File is tab delimited
% Dlm file forms a 2 column matrix
% First 12 rows are various session fields with indicator numbers on the ... |
3b219ca39b5cbf50a1d5f7a6672746bcbd847c0dd4baba8012446986e0c74204 | MATLAB | 3,462 | 91 | function varargout = my_hlpdlg(varargin)
% MY_HLPDLG MATLAB code for my_hlpdlg.fig
% MY_HLPDLG, by itself, creates a new MY_HLPDLG or raises the existing
% singleton*.
%
% H = MY_HLPDLG returns the handle to a new MY_HLPDLG or the handle to
% the existing singleton*.
%
% MY_HLPDLG('CALLBACK',hO... |
3daa9dd114cec9db04a6252ed1d0d86842fb48c439bf217ff9d43f539025b18c | MATLAB | 3,462 | 117 | function [D0,phisq0,st] = lme_fit_EMinit(X,Zcols,y,ni,e)
% [phisq0,D0,st] = lme_fit_EMinit(X,Zcols,y,ni,e)
%
% Starting values for linear mixed-effects estimation.This function is
% intended to be used to provide starting values for the lme_fit_NR and
% lme_fit_FS functions by mean of some initial iterations of the
... |
c99ce4c28d16a7d75870b3182ab69791e72872ac5ab6367fa2ece37e0b2e8f55 | MATLAB | 3,463 | 66 | function [] = ground_truth_replay_sequence_analysis_addon_global_remapped(folders,BAYSESIAN_NORMALIZED_ACROSS_TRACKS)
for nfolder = 8:length(folders)
cd(workingDir)
for nshuffle = 2:3
tic
cd([workingDir,'/',folders{nfolder}])
copyfile('replayEvents_bayesian_spike_count.mat',...
... |
d73445c66362c48830f5563f7d5e781a1c95458df8ec94c9c7a532fa245b35e8 | MATLAB | 3,463 | 122 | function [fhdr,chdr,ename,cnames,fcom,ftext] = read_egis_header(filename)
% READ_EGIS_HEADER reads the header information from an EGI EGIS format file
%
% Use as
% [fhdr chdr] = read_egia_header(filename)
% with
% fhdr - the file header information
% chdr - the cell header information
% ename ... |
d9fcef3d2c53d0a3d79665a1ea1872b9e0cc3188919a2a303df2fe1c85b74bd5 | MATLAB | 3,465 | 102 | function replaytrajectory = run_net_decode(modelParam, network, trialResults, linfields, preplaySpikeMat, varargin)
% run_net_decode.m
%
% Runs preplay decoding on data from one simulated network
%
% Inputs:
% - modelParam: the model parameter structure
% - network: the network structure
% - trialResults: output ... |
3f29032108ae8bd1137eef238702787fbfdeb883d1cd98af907cffdd26a858df | MATLAB | 3,467 | 51 | function selectedRow = selectMuscle()
muscles = { ...
'Acromiodeltoideus', 'Anconeus', ...
'Abductor pollicis longus O-R', 'Abductor pollicis longus R-I', ...
'Biceps brachii', 'Brachioradialis O-R', 'Brachioradialis R-I', ...
'Brachialis', 'Coracobrachialis', 'Extensor carpi radiali... |
c779a25bcc7e0f17d104e75db0febc6a640d4f86bee9d1a82cac13a2e07093df | MATLAB | 3,467 | 120 | function [asc] = read_eyelink_ascNK_AU(filename)
% READ_EYELINK_ASC reads the header information, input triggers, messages
% and all data points from an Eyelink *.asc file
%
% NK edit: add blink parsing
% Use as
% asc = read_eyelink_asc(filename)
% Anne Urai edit
% 1. parse channel names?
% 2. add header information... |
c0e4e94d63e3b1c4e02bc96bce75c0f7aa35797f42b8308c55d77ad782f886cd | MATLAB | 3,469 | 88 | function CVerr = cvglmnetMulticlass(x,y,nfolds,foldid,type,family,options,verbose)
% Do crossvalidation of glmnet model. The coordinate descent algorithm
% chooses a set of lambda to optimize over based on the input given in
% the options struct.Parameter tuning should be done in such a way that for
% a fixed alpha, a... |
1e418082ca0a092449090dd28774c7dacea42e8fe6531966d10f45cde838caf0 | MATLAB | 3,471 | 90 | %
% generalized phase demo
% lyle muller + zac davis
% 1 september 2020
%
% set up paths to WAVE and subdirectories
addpath( genpath_exclude( '~/Software/matlab/wave-matlab', '.git' ) )
addpath( genpath_exclude( '.', '.git' ) );
clearvars; clc;
% options
options.subject = 'W'; % this can be 'W' or 'T' (two marmoset ... |
2f838c16317dde2e27e71f32f77ccf28704e14bbc3582ec9e7e9d642fd099f07 | MATLAB | 3,471 | 80 | function success_code = registerWithCorrespondencesCUDAInParallel()
loadParameters;
calcCorrespondencesForFixed(params.REFERENCE_ROUND_WARP);
run_num_list = 1:params.NUM_ROUNDS;
run_num_list(params.REFERENCE_ROUND_WARP) = [];
arg_list = {};
postfix_list = {};
for run_num = run_num_list
... |
802f1a055366c88a25da7e1c55bbac45062081842d6a822b0142d88c3b5848ec | MATLAB | 3,471 | 133 | % demo for train/test cross-validation schemes
close all
clear all
dim.p = 32;
dim.n_t = 1;
dim.n_phi = 4;
dim.n_theta = 0;
dim.n = 0;
g_fname = @g_classif;
options.sources = struct('type',1 ,'out', 1); % one binomial observation;
options.priors.muPhi = zeros(dim.n_phi,1);
options.priors.SigmaPhi = 1e0*eye(dim.n_ph... |
adaff45d8a5bac8e31908e586cf36a1da52da31bfad0821011e929a74e6132a3 | MATLAB | 3,471 | 115 | function vol = read_asa_vol(fn)
% READ_ASA_VOL reads an ASA volume conductor file
%
% all data is converted to the following units
% vertices mm
% conductivities S/m
% Copyright (C) 2002, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org
% for the documentation and... |
b6defbd0d9fbc142fefb1d37afb05b8277cfeebc781ea932a1a56ce5354d0c50 | MATLAB | 3,471 | 106 | function [LT, LF, VF, NLF, NVF, FPE, FCE_L, FCE_V, FM, FMT] = ...
MTForce(a, time, LMT, VMT, LT0, LF0, aV, Vmax, FM_max, PA, Max_LMT)
% MATLAB code provided by Seyed Mohammad Ali Rahmati
% Affiliation: Biomechanics and Motor Control Lab, Department of Biological Sciences, Georgia Institute of Technology, Atlan... |
7b3673aeeade151422c935d01a96e80f0bc6fbb756daae60367c7e56fdd820bc | MATLAB | 3,472 | 89 | function [C, q]=core_periphery_dir(W,gamm,C)
%CORE_PERIPHERY_DIR Core/periphery structure and core-ness statistic
%
% C = core_periphery_dir(W)
% [C,q] = core_periphery_dir(W,gamm,C0)
%
% The optimal core/periphery subdivision is a partition of the network
% into two non-overlapping groups of nodes, a c... |
14c34c966862d4296c38f4c2e60371d3b5577ccefa17005b9e5893086405adaf | MATLAB | 3,473 | 93 | function hess = getHessian(problem, x, d, storedb, key)
% Computes the Hessian of the cost function at x along d.
%
% function hess = getHessian(problem, x, d)
% function hess = getHessian(problem, x, d, storedb)
% function hess = getHessian(problem, x, d, storedb, key)
%
% Returns the Hessian at x along d of th... |
cd4a4c1c70a3aa615ba300450387985ac56505d380fce9f494cde6cd32e9a1da | MATLAB | 3,473 | 84 | clear;
clc;
% This codes used models identified from previous timepoint to predict
% the following timepoint
train_group = 'BL'; % BL (age 14), FU2 (age 19), FU3 (age 23)
test_group = ' FU2'; % FU2 (age 19), FU3 (age 23)
% covariable "pd (Puberty development scale)" index 4 for BL group(age 14);
% if train_group is ... |
012ee8fd7790624d1996073cdb06cbd43d1ed6082f03fe129757c0cf3e025f16 | MATLAB | 3,474 | 104 | function dat = read_egis_data(filename, hdr, begtrial, endtrial, chanindx)
% READ_EGIS_DATA reads the data from an EGI EGIS format file
%
% Use as
% dat = read_egis_data(filename, hdr, begtrial, endtrial, chanindx);
% where
% filename name of the input file
% hdr header structure, see FT_READ_HE... |
0899a4ef43e6f2c7c4c5cea444da6c53f1a3027f7da7655f5923f5955fa92e83 | MATLAB | 3,475 | 109 | function [lf] = eeg_halfspace_medium_leadfield(rd, elc, vol)
% HALFSPACE_MEDIUM_LEADFIELD calculate the halfspace medium leadfield
% on positions pnt for a dipole at position rd and conductivity cond
% The halfspace solution requires a plane dividing a conductive zone of
% conductivity cond, from a non coductive zone ... |
1db2382eb0f69f2156b1cf8b56546a5387df4d547f453b2cc65dace142f582be | MATLAB | 3,475 | 112 | function [lf] = eeg_halfspace_monopole(rd, elc, vol)
% EEG_HALFSPACE_MONOPOLE calculate the halfspace medium leadfield
% on positions pnt for a monopole at position rd and conductivity cond
% The halfspace solution requires a plane dividing a conductive zone of
% conductivity cond, from a non coductive zone (cond = 0)... |
b7048cea2ca4b1f90f2025deb0718440a2386f1c50868bcfc49f3d1a020e25ca | MATLAB | 3,475 | 76 | %Step 1 of CBIG Kong2019 Brain Parc Pipeline
%
%To run: 1. Open Matlab using salloc (ex: `salloc --mem-per-cpu 200G --time 2:00:00 --x11`)
% 2. source your config file containing the $CBIG_CODE_DIR variable
% -It might be helpful to `cd` to the $CBIG_CODE_DIR/stable_projects/brain_parcellation/Kong2019_MSHBM/step1..... |
03f92536c445c900b185f0c14066cc832da1b5c56e9a337ea17e3ff33394d5d7 | MATLAB | 3,476 | 114 | function smi = read_smi_txt(filename)
% READ_SMI_TXT reads the header information, input triggers, messages
% and all data points from an SensoMotoric Instruments (SMI) *.txt file
%
% Use as
% smi = read_smi_txt(filename)
% Copyright (C) 2016, Diego Lozano-Soldevilla (CerCo)
%
% This file is part of FieldTrip, see ... |
233f8c19913b771c01d703a1f88accc0b4bd5e4f884b348e3e13a2e2b4b79434 | MATLAB | 3,476 | 87 | function I = nlfiltersep( I, dims, shape, fun, varargin )
% Efficient multidimensional nonlinear but seperable filtering operation.
%
% The concept of a nonlinear seperable filter is less common, but can prove
% useful since computation time can be reduced. Consider a funciton like
% max that is applied to a 2 dim wind... |
27477647327ff6477eb00118ab4008fbc711507dac803b3ce0a8e1719dfa709c | MATLAB | 3,476 | 109 | %% bootstrapz
%
% A wrapped implementation of the boostrapping function implemented for 3D
% arrays.
%
% Includes the option for iterative bootstrapping + post-hoc tests to
% ensure test statistic is normally distributed (else, increase global number
% of bootstraps).
%
% INPUTS
% mat3 - a 3D array. The final eleme... |
c65042375dc0d9ad2688924ee4a46832fc39e09703d4df610bed061e51df4bfe | MATLAB | 3,477 | 90 | %% 非线性特征 | nonlinear features
%% 分形维数 | Fractal Dimension
% 分形维数源于分形理论,用于分析数据的复杂性,常作为特征用于癫痫、睡眠阶段、疲劳程度的脑电信号识别
% 通常采用Higuchi算法
% 第二个参数是kmax,如未指定=floor(length(signal)/2),如果指定,需小于length(signal)/2
% Fractal dimension is a chaotic method that calculates the complexity of a signal.% X: single channel EEG signal (either a row ... |
1e50be13f5157f651c1698ce47d6f63e8cf96f6e5f9f5c85e306bb33e49ca4bf | MATLAB | 3,478 | 78 | function [data] = get_boundary_data(mesh,phi)
% GET_BOUNDARY_DATA Calculates FEM mesh boundary data at detector positions
%
% [DATA] = GET_BOUNDARY_DATA(MESH,PHI) Calculates boundary data based on
% detector positions 'MESH.meas.coord' and the calculated field PHI. MESH
% is FEM mesh in NIRFAST format. PHI is n by... |
416b5e1dfebda9e17339881e4823a85e4625d40da37f7545aaca3356939dc184 | MATLAB | 3,478 | 117 | function [h,b] = montage(varargin)
%MONTAGE Display multiple image frames as rectangular montage.
% MONTAGE displays all the frames of a multiframe image array in a single
% image object, arranging the frames so that they roughly form a square.
%
% MONTAGE(I) displays the K frames of the intensity image array I. ... |
d28e0eecaeb729f4af0b1e83e9ca3ea52539fd8ab0d90482de45fa0e407784b2 | MATLAB | 3,478 | 125 | % Field Trip-related test scripts - Synthetic FT data - Post-processing
%
%
% Includes.
% FIXME - Assume init has already been called.
%
%
% Configuration.
% Threshold decimation factor for plotting.
threshdecim = 2;
% Wave comparison functions.
wavecomparefuncwide = @(thisev, thiswave) ...
wlProc_calcWaveE... |
0b43e370d996111d837e528ff2c16e31df6c6a401e993eafc022aac4d1dd0121 | MATLAB | 3,479 | 65 |
% This script creates random example data and computes/plots
% repertoire dating statistics and mixing matrices.
%
%
% ---
% Copyright (C) 2020 University Zurich, Sepp Kollmorgen
%
% Reference (please cite):
% Kollmorgen, S., Hahnloser, R.H.R. & Mante, V. Nearest neighbou... |
aca0bec22f715366b27b79d4697c02e524146014b690c061ff30e5d2464913ee | MATLAB | 3,480 | 105 | %% For plotting the shank LFP and CSDs during touch vs L5 opto
% whiske touch CSD and L5 ChR2 opto CSD
clear;clc
%% load data
%whisker touch shank only
load('D:\InVivo\Shank-Only\2022-05-31_Shank-Only-UCLA\Shank-LFP-DS.mat')
whiskerData = lowpassBand;
%opto data
load('D:\InVivo\S1-Opto\2023-01-24_SoCoChR2-S... |
6eddb99c78634d2226edefe8c706b410eb6b7ca587625d7425fce9fb09ebea8d | MATLAB | 3,481 | 155 | function [epochs] = fiff_read_epochs(fname)
%
% [epochs] = fiff_read_epochs(fname,setno)
%
% Read eochs from file
%
%
% Author : Martin Luessi, MGH Martinos Center
% License : BSD 3-clause
global FIFF;
if isempty(FIFF)
FIFF = fiff_define_constants();
end
me='MNE:fiff_read_epochs';
%
% Open the file
%
fprin... |
5986f9500af60367295e50e51ce0244b7a8d44a078bc52f26f98e9e898c80cec | MATLAB | 3,482 | 119 | %% SVM Regression Demo
% PMTKneedsOptimToolbox quadprog
%%
% This file is from pmtk3.googlecode.com
%requireOptimToolbox
nVars = 1;
nInstances = 50;
setSeed(0);
%[X,y] = makeData('regressionNonlinear',nInstances,nVars);
% sinc function
N = 100;
noise = 0.1;
x = 10*[-1:2/(N-1):1]';
ytrue = sin(abs(x))./abs(x);
y = y... |
6f7a8dce0ac9c23100292b127f669180b5d13932de359cad2b644df5204c7c0b | MATLAB | 3,482 | 97 | function TPS3DWarping(moving_run,do_downsample)
loadParameters;
if do_downsample
filename_root = sprintf('%s-downsample',params.FILE_BASENAME);
image_type = 'DOWNSAMPLE';
else
filename_root = sprintf('%s',params.FILE_BASENAME);
image_type = 'ORIGIMAL';
end
fprintf('TPS3DWarp RUNNING ON MOVING: %i, FI... |
d3aa5c69d2d4468f557fb92b013d2711988c015619dfc9e0d94b9a9cf625c54b | MATLAB | 3,483 | 98 | classdef ShellBind < apt.ShellToken
% apt.ShellBind - Docker-style bind mount specification token
%
% Represents a bind mount specification that maps a source path to a destination
% path within a container or similar execution environment. Both paths are
% apt.MetaPath objects that can be properly translated... |
dc50586ae170d92439a3e28851820cd60bc812af87b6dec3aec07613fb23eae4 | MATLAB | 3,485 | 126 | function writenodelm_poly3d(fn, e, p, int_nodes, holes, regions, write_node_file_flag, nodemap)
% writenodelm_poly3d(fn, e, p, int_nodes, holes, regions, write_node_file_flag, nodemap)
% Writes the 3D boundary defined in e and p to .poly file format.
% write_node_file_flag = 1 writes a seperate .node file otherwise it ... |
0dbe3fdfcab04f063a2869cf8d222aab682b12646a68e27b1e0fb70901a86f65 | MATLAB | 3,486 | 128 | %% Compare group lasso solved using EM and projected gradients
%
%%
% This file is from pmtk3.googlecode.com
function linregGroupLassoEmDemo()
setSeed(1);
%% Make data
% Generate categorical features
nInstances = 50;
%nStates = [10 5 10 5 20 5 10 5 20 5 10 20 10];
nStates = [10 5 10 20 10 20 10];
% Number of di... |
22c12119f93d27a6c9e5785db30246895220bc691f57629abc59efba0aa061de | MATLAB | 3,486 | 116 | %%
load tblFinalReconciled_20180415T212437.mat;
%% tFinalReconciled check movpaths/massage
mfa = tFinalReconciled.movFile_m;
e = cellfun(@(x)exist(x,'file'),mfa);
nnz(e==0)
mfa(e==0)
tf = e==0;
%% tFinalReconciled check movpaths/massage
pat = '/groups/huston/hustonlab/flp-chrimson_experiments/fly_229_to_238_1st_to_2nd... |
068ae16f8f992e4621d12eb2d7ee81866c80d88c4acfce2bf99504ee80d07d79 | MATLAB | 3,487 | 78 | % Motion correction according to DeltaX, DeltaY of individual boutons.
% BoutonArray(BoutonNumber).DeltaX, .DeltaY contain the deltas for some of
% the images. The indices of these images are in DeltaXY_ImageNumbers
% (and should be also in BoutonArray(1).DeltaXY_ImageNumbers).
% ImageArray_NoStim contains more ima... |
7bd759bc9acf88789eb48bbf2ad69b892309b47dc3e3a48e1c399e792a53fe49 | MATLAB | 3,487 | 105 | % create functional and structural connectivity maps to electrode positions
%%
clear all;
close all;
clc;
%% 0. load tf data
Dt=spm_eeg_load('data/iEEG/tf_spm_ecog.mat');
%% 1. create spherical seed images (r=5mm)
%template=fullfile(spm('dir'),'canonical','single_subj_T1.nii');
% Extract single sunject nii from SPM ... |
27400e8514f8e5d362088e4f9fc33a8a728bdccccb4bca38398fa61ef79ab097 | MATLAB | 3,488 | 101 | clear
close all
% Load neuronal PSY regressor and PPI regressor calculated by SPM PEB
load(fullfile(pwd,'deconvolution','examples','01_BLOCK_DESIGN_SF_[1.00]_SNR_[0.40]','Sub_1_ROI_1.mat'));
% Setup variables
TR = 2; % Time repetition, [s]
NT = 16; % Microtime resoluti... |
d999aff194e510d6c68a46c01b5aaa5bbd67973e34af4fb2f84c616aadccbb37 | MATLAB | 3,488 | 114 | function varargout = qualisys_tsv(filename, hdr, begsample, endsample, chanindx)
% QUALISYS_TSV reads motion tracking data from a Qualisys tsv file.
%
% Use as
% hdr = qualysis_tsv(filename);
% dat = qualysis_tsv(filename, hdr, begsample, endsample, chanindx);
% evt = qualysis_tsv(filename, hdr);
%
% See also FT... |
f7c32c7b848082f1d6395b085ae40c05eb2f6b69df7023e279a890c788792ab3 | MATLAB | 3,488 | 92 | function SOFAstart(flags)
% SOFAstart
%
% SOFAstart adds all needed pathes and checks if we need the Matlab or Octave
% version of the API
%
% SOFAstart(0) or SOFAstart('silent') will suppress any message during the start.
% SOFAstart ('short') will show a short header only during the start.
% SOFA API - func... |
64a9f4c90f8d32719966c092ab10261b0a4f546c1a881470318b2d1a4fa58bd3 | MATLAB | 3,489 | 110 | function WholeBrainRegressPermute2(varName, nPerms, saveFolder, eeg1, trialTabTrim)
% function WholeBrainRegressPermute2(varName, nPerms, saveFolder, eeg1, trialTabTrim)
% regress EEG at each time point and channel against behaviour, use
% permutation testing (and clustering to adjust p values afterwards)
% shuffle eeg... |
9e89bb6f3d99eef4b7c06fd179bb4e6f55dc7f1b2fd8600257b410f0cfd15f46 | MATLAB | 3,489 | 124 | clear
load('position_info.mat')
figure(1)
set(gcf,'color','w');
set(gcf, 'Position', [230,430,200,400])
for line = 1:2
if line == 1 %R4d
file_path_prefix = 'X:\Ring neurons\single_dot_blue\ER4d\';
load('ER4d_list.mat')
new_list = ER4d_list; fly = 8;
load ellipse_data_ER4d... |
c91b4aa97c150952884edc543c99936e36a5ab7f6d00ad8ed3ac633f9c1fbe2a | MATLAB | 3,489 | 121 | function demo_BSL
% This script simulates and inverts a Bayesian sequence learner (BSL)
% simulation parameters
K = 1;
options.inF = struct('K',K);
options.inG = struct('K',K);
dim.n = 2^(K+1);
dim.n_theta = 1;
dim.n_phi = 2;
%% simulate sequence of BSL choices
x0 = 1*ones(dim.n,1); % log-odds of P(o=1)
theta = [-2... |
da499b602e00103b54e246a7c45ea6f626eee3a47f0fbd4ffbe293c9eca680bb | MATLAB | 3,489 | 116 | function models = linregMultitaskMixPriorFitEm(X, Y, K, varargin)
% multitask regression using a mixture of Gaussian prior
% Returns a cell of model where models{t} is the linear regression model of task t
% X is N*D, Y is N*T, K is num. mixture components
% This file is from pmtk3.googlecode.com
%PMTKauthor Robert ... |
9a382b1636c088cc06e270540c80c11d8c2d2b7f53bb4f2a6ec02b95e797e3d5 | MATLAB | 3,490 | 110 | loadParameters;
%Create a holder object for the rgb images for all rounds and the 100
%puncta we want to view
all_rgb_regions = cell(params.NUM_ROUNDS,100);
center_point_coords = cell(1,100);
puncta_viewed = [];
WINDOW=100;
load(fullfile(params.basecallingResultsDir,sprintf('%s_transcriptsv11.mat',params.FILE_BASENA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.