This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This currently requires fsbrain dev, >= 0.5.0. | |
# | |
# You will need to install with: | |
# | |
# devtools::install_github("dfsp-spirit/fsbrain", ref="geodesic"); | |
# | |
# until 0.5.0 is available on CRAN. | |
# | |
library(fsbrain) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Procuces an animation showing how weighted basis functions combine to produce a sline | |
## - this version is for a cubic regression spline basis | |
## packages required | |
library('ggplot2') | |
library('tibble') | |
library('tidyr') | |
library('dplyr') | |
library('mgcv') | |
library('mvnfast') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import pandas as pd | |
import numpy as np | |
from argparse import ArgumentParser | |
import sys | |
import os | |
def parse_outliers(outliers, volumes): | |
if not outliers: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import bisect | |
from glob import glob | |
from os.path import join, splitext | |
from bids.grabbids import BIDSLayout | |
from dateutil.parser import parse | |
# subj_dir *must* have trailing / | |
subj_dir = '/scratch/tsalo006/dset/sub-01/' | |
sess = '01' |