- rocket
- mako
- icefire
- vlag
"""Python implementation of FILM GLS algorithm. | |
Plans for development: | |
We will need the following functionality: | |
GLS fit for 4D timeseries (i, j, k, t), with smoothing in volume or on surface | |
GLS for for 2D array (time x vox) array, with single prewhitening matrix | |
We'll call the first "local" and the latter "regional" prewhitening |
def improve_labels(fig=None, ax=None): | |
def improve_text(text): | |
return text.replace("_", " ").capitalize() | |
if fig is None and ax is None: | |
axes = plt.gcf().axes | |
elif fig is not None: | |
axes = fig.axes |
"""Heatmap visualization of an fMRI time series for quality control. | |
Based on approach developed by Jonathan Power and explained here: | |
https://www.ncbi.nlm.nih.gov/pubmed/27510328 | |
Python implementation by Michael Waskom <mwaskom@nyu.edu> | |
Released under Revised BSD license. | |
""" |
import os | |
import argparse | |
import nipype | |
from nipype import Workflow, Node, MapNode, SelectFiles, DataSink | |
from nipype.interfaces import fsl, freesurfer as fs, utility | |
# Parse command line arguments | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-subj", help="Freesurfer subject ID") |
#! /bin/bash | |
# Beta version of a script to preprocess SMS-EPI data from the Prisma scanner | |
# Written by Michael Waskom | Last updated June 15, 2017 | |
if [ "$#" -ne 6 ]; then | |
echo ' | |
USAGE: prisma_preproc.sh <subj> <ts> <sbref> <se> <se_rev> <wd> | |
Parameter Information: |
""""Create a subject-specific Wang 2015 visual field atlas annotation. | |
Convert the Wang atlas in subject-space (as created by Noah Benson's | |
template mapping scripts) from segmentation format to annotation format. | |
""" | |
import os | |
import sys | |
import numpy as np | |
import matplotlib.pyplot as plt |
function results = fit_prfs(subj, ss, ts) | |
%% Setup paths | |
addpath(genpath('~/code/vistasoft/')) | |
addpath(genpath('~/code/analyzePRF')) | |
%% Setup stimulus information | |
param_fname = ['data/' subj '/stim/params.mat']; | |
image_fname = ['data/' subj '/stim/images.mat']; |