Skip to content

Instantly share code, notes, and snippets.

View martcous's full-sized avatar

Martin Cousineau martcous

  • McGill University
  • Montreal, Canada
View GitHub Profile
@martcous
martcous / chat_2020-05-22.txt
Created May 22, 2020 17:05
Chat of Brainstorm Workshop on Multi-unit Electrophysiology, via Zoom (May 22, 2020)
10:58:11 From Sylvain Baillet : Hi everyone, thank you for joining. We’ll get started shortly.
10:59:03 From Balakrishna Masanam yadav : Hi, I'm from India, Andhrapradesh
11:37:55 From PENG Fei : Which paper are the LFP results from?
11:38:45 From changan : can the .bst data be exported to matlab for other analysis
11:38:56 From Martin Cousineau : @PENG: https://www.nature.com/articles/s41597-019-0242-z
11:39:02 From PENG Fei : Thanks
11:40:13 From Sylvain Baillet : FYI to all: online documentation of the tools Kostas is showing today: https://neuroimage.usc.edu/brainstorm/e-phys/Introduction
11:40:46 From Martin Cousineau : @changan: The .BST format is quite specific to Brainstorm but you can use our reader function as a Matlab function in order to extract the data you need from the file. Let us know in the forum if you require more specific documentation
11:41:11 From changan : thanks!
11:41:16 From Martin Cousineau : For most other Brainstorm objects, you can easily export them from Matlab and
@martcous
martcous / chat_2020-04-29.txt
Created April 30, 2020 15:32
Chat of first Brainstorm User Workshop / Q&A, via Zoom (April 29, 2020)
11:07:50 From Kiran : sorry i missed it, whom do we send our questions to?
11:08:09 From Marc (host assistant) : here :)
11:08:57 From Tatjana Liakina : The Brainstorm doesn’t have an approval for clinical use yet?
11:09:34 From Marc (host assistant) : (noted)
11:10:40 From Yvonne Buschermöhle : What is the best way to combine EEG and MEG data analysis in brainstorm? Apparently inverse problems cannot yet be solved combined
11:11:49 From Marc (host assistant) : Noted Yvonne. Let's keep that one for later, maybe after Martin has gone through the basics. :)
11:12:14 From Yvonne Buschermöhle : of course! :)
11:13:05 From Coffman, Brian A : Is there any way to apply SSP or EEG reference projection items to epoched data?
11:13:38 From Eleonora Tamilia : Hello! first of all, thanks for all your great work.
11:13:39 From Alfredo Spagna (he/him) : Another question for later: CONNECTIVITY.
@martcous
martcous / process_scout_area.m
Last active October 1, 2018 14:24
Compute area of selected scouts
function varargout = process_scout_area( varargin )
% PROCESS_SCOUTAREA: Computes the area of selected scouts
% @=============================================================================
% This function is part of the Brainstorm software:
% https://neuroimage.usc.edu/brainstorm
%
% Copyright (c)2000-2018 University of Southern California & McGill University
% This software is distributed under the terms of the GNU General Public License
% as published by the Free Software Foundation. Further details on the GPLv3
import random
# In this code, we try to evaluate the probability of, when
# rolling 2 dice, having a second 6 after having a first 6.
num_tries = 1000000
tries = 0
win = 0
"""
=================================================
Linear fascicle evaluation (LiFE)
=================================================
Evaluating the results of tractography algorithms is one of the biggest
challenges for diffusion MRI. One proposal for evaluation of tractography
results is to use a forward model that predicts the signal from each of a set of
streamlines, and then fit a linear model to these simultaneous predictions
[Pestilli2014]_.