|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- |
| 3 | +# vi: set ft = python sts = 4 ts = 4 sw = 4 et: |
| 4 | +"""AFNI modeling interfaces |
| 5 | +
|
| 6 | +Examples |
| 7 | +-------- |
| 8 | +See the docstrings of the individual classes for examples. |
| 9 | + .. testsetup:: |
| 10 | + # Change directory to provide relative paths for doctests |
| 11 | + >>> filepath = os.path.dirname( os.path.realpath( __file__ ) ) |
| 12 | + >>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data')) |
| 13 | + >>> os.chdir(datadir) |
| 14 | +""" |
| 15 | +from __future__ import print_function, division, unicode_literals, absolute_import |
| 16 | +from builtins import str, bytes |
| 17 | + |
| 18 | +import os |
| 19 | +import os.path as op |
| 20 | +import re |
| 21 | +import numpy as np |
| 22 | + |
| 23 | +from ...utils.filemanip import (load_json, save_json, split_filename) |
| 24 | +from ..base import ( |
| 25 | + CommandLineInputSpec, CommandLine, Directory, TraitedSpec, |
| 26 | + traits, isdefined, File, InputMultiPath, Undefined, Str) |
| 27 | +from ...external.due import BibTeX |
| 28 | + |
| 29 | +from .base import ( |
| 30 | + AFNICommandBase, AFNICommand, AFNICommandInputSpec, AFNICommandOutputSpec) |
| 31 | + |
| 32 | +class DeconvolveInputSpec(AFNICommandInputSpec): |
| 33 | + pass |
| 34 | + |
| 35 | +class DeconvolveOutputSpec(TraitedSpec): |
| 36 | + pass |
| 37 | + |
| 38 | +class Deconvolve(AFNICommand): |
| 39 | + """Performs OLS regression given a 4D neuroimage file and stimulus timings |
| 40 | +
|
| 41 | + For complete details, see the `3dDeconvolve Documentation. |
| 42 | + <https://afni.nimh.nih.gov/pub/dist/doc/program_help/3dDeconvolve.html>`_ |
| 43 | +
|
| 44 | + Examples |
| 45 | + ======== |
| 46 | +
|
| 47 | + >>> from nipype.interfaces import afni |
| 48 | + >>> deconvolve = afni.Deconvolve() |
| 49 | + """ |
0 commit comments