Skip to content

Instantly share code, notes, and snippets.

View dmwelch's full-sized avatar
👋
I may be slow to respond.

David Welch dmwelch

👋
I may be slow to respond.
  • previously at Hyperfine.io
  • St. Louis, MO, USA
  • 11:15 (UTC -06:00)
  • X @imagingnerd
View GitHub Profile
@dmwelch
dmwelch / testingnipypelimits.py
Created July 15, 2014 22:15
testingnipypelimits.py
from nipype.pipeline.engine import Workflow, Node, MapNode
from nipype.interfaces.io import DataGrabber
from nipype.interfaces.utility import IdentityInterface
from nipype.interfaces.utility import Function
from nipype.utils.misc import getsource
from SEMTools.filtering.denoising import UnbiasedNonLocalMeans
from SEMTools.segmentation.specialized import BRAINSConstellationDetector
from SEMTools.utilities.brains import BRAINSLandmarkInitializer
from SEMTools.registration.brainsresample import BRAINSResample
from SEMTools.segmentation.specialized import BRAINSROIAuto
@dmwelch
dmwelch / postXNAT.sh
Last active August 29, 2015 13:59
Bash script to push zip file to XNAT archive
#!/bin/bash
############################################################################
# #
# Script: postXNAT.sh #
# #
# Task: Upload entire experiment in ZIP format via XNAT REST client #
# Overwrites previously uploaded experiment, if it exists #
# #
# Author: David Welch #
# Contact: david dot m period welch at gmail dot com #
@dmwelch
dmwelch / Cppcheck brew install gist
Last active December 16, 2015 17:19
Bug ticket for Homebrew formula cppcheck see https://github.com/mxcl/homebrew/issues/19464
$ sudo brew doctor
Password:
Your system is ready to brew.
$ sudo brew --config
Password:
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew.git
HEAD: 705b5e133d8334cae66710fac1c14ed8f8713d6b
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
@dmwelch
dmwelch / display_crash.py
Created January 26, 2012 06:05 — forked from satra/display_crash.py
Displays nipype crash files with formatted information
#! /usr/bin/env python
import argparse
from nipype.utils.filemanip import loadcrash
def display_crash_files(crashfile, rerun):
"display crash file content and rerun if required"
crash_data = loadcrash(crashfile)
node = crash_data['node']