- assuming
macos
/linux
but may work in Windows Terminal, too, if you have Docker Desktop installed
cd ~/julia
# run container / default UID / GID
docker run -it --rm \
-p 1234:1234 \
--user 1000:1000 \
Time (volumes) | fMRI response (% signal change) | |
---|---|---|
0.00000000 | -1.40227509 | |
1.00000000 | 0.23600006 | |
2.00000000 | 1.15530396 | |
3.00000000 | 0.13700867 | |
4.00000000 | -0.52494049 | |
5.00000000 | 0.38183594 | |
6.00000000 | -0.29989624 | |
7.00000000 | 0.76611328 | |
8.00000000 | -2.88539886 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>leaflet</title> | |
<script>(function() { | |
// If window.HTMLWidgets is already defined, then use it; otherwise create a | |
// new object. This allows preceding code to set options that affect the | |
// initialization process (though none currently exist). | |
window.HTMLWidgets = window.HTMLWidgets || {}; |
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<!-- This file was created with the aha Ansi HTML Adapter. https://github.com/theZiz/aha --> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="application/xml+xhtml; charset=UTF-8" /> | |
<title>stdin</title> | |
</head> | |
<body> | |
<pre> |
# in a directory with bla.feat folder present | |
# might have to brew install tree on macos first | |
while true; | |
do | |
clear | |
tree -L 1 bla.feat | |
sleep 3 | |
done |
# dealing with OneDrive filesep issues... | |
# | |
# ds 2020-06-09, coffee break unix hacking. | |
# shell loop for moving files with windows sep \ into folders with filesep / | |
# for example: files called Carblblblabl\ACTUAL_FILE.jpg | |
# should go into folder Carblblblabl/ACTUAL_FILE.jpg | |
# idea. use AWK with field sep \ to split into two strings. |
%% demo of a complete analysis of the faces v houses | |
% data | |
% | |
% ds 2019-12-03 | |
%% load the data (nifti file) | |
data = niftiread('filtered_func_data.nii'); | |
%% load the design matrix |
%% FFTDEMO_HRF (adapted from FFTDEMO in Matlab) | |
% FFT for Spectral Analysis | |
% This example shows the use of the FFT function for spectral analysis. A | |
% common use of FFT's is to find the frequency components of a signal buried in | |
% a noisy time domain signal. | |
% | |
% Copyright 1984-2005 The MathWorks, Inc. | |
% $Revision: 5.8.4.2 $ $Date: 2009/04/03 21:23:24 $ | |
function fftdemo_hrf() |
function s = returnSlice(array, sliceNum, orientation) | |
% returnSlice - return a 2d slice from a 3d array in given orientation | |
% | |
% ds, 2019-11-05, for matlab class | |
% add some reality check about sizes... just in case | |
% potential problem: user can ask for sliceNum that goes beyond size of | |
% array | |
% find out sizes of the data cube |