Skip to content

Instantly share code, notes, and snippets.

View Remi-Gau's full-sized avatar
💭
If someone asks for me, I am on GitHub

Remi Gau Remi-Gau

💭
If someone asks for me, I am on GitHub
View GitHub Profile
@Remi-Gau
Remi-Gau / DummyBIDS.sh
Last active April 9, 2019 09:52
bash script to create a dummy BIDS data set to test the MP2RAGE JSON file naming
#!/bin/bash
# small bash script to create a dummy BIDS data set to test the MP2RAGE JSON file naming
# defines where the BIDS data set will be created
StartDir=`pwd` # relative to starting directory
echo $StartDir/../../../BIDS/7t_mp2rage/
StartDir=$StartDir/../../../BIDS/7t_mp2rage/
mkdir $StartDir
@Remi-Gau
Remi-Gau / transparency_color_map.m
Last active July 14, 2019 14:34
Plot matlab color map with transparency on x axis
G = figure('color', [.5 .5 .5], 'Units', 'Normalized', 'Position', [0.5, 0.4, 0.06, 0.35]);
CM = colormap;
% x represents the range in alpha (e.g abs(t-stats))
x = linspace(1, 1000, 256);
% y represents the range in hue (e.g power)
y = linspace(1, 1000, 1000);
[X,Y] = meshgrid(x,y); % Transform into a 2D matrix