Skip to content

Instantly share code, notes, and snippets.

View tsalo's full-sized avatar
🏠
Working from home

Taylor Salo tsalo

🏠
Working from home
View GitHub Profile
@tsalo
tsalo / profile_nimare.py
Last active February 12, 2022 18:08
An ongoing effort to profile certain steps in NiMARE, including kernel transformation and meta-analysis estimation
"""A small job to profile kernel transformers and meta estimators in NiMARE."""
import logging
import os.path as op
import psutil
from datetime import datetime
import numpy as np
import pandas as pd
from memory_profiler import memory_usage
@tsalo
tsalo / fmriprep_warp.sh
Last active March 28, 2022 15:51
Warp native-space tedana derivatives to standard space with fMRIPrep transforms.
# First, let's define some paths to the fMRIPrep and tedana outputs
fmriprep_dir="/path/to/fmriprep/derivatives/of/subject"
tedana_dir="/path/to/tedana/derivatives"
# Result of denoising the scanner-space multi-echo data with tedana
file_to_warp="${tedana_dir}/sub-01_task-rest_desc-optcomDenoised_bold.nii.gz"
# Name of the standard-space denoised data file to be written out
out_file="${tedana_dir}/sub-01_task-rest_space-MNI152NLin2009cAsym_desc-optcomDenoised_bold.nii.gz"