#!/usr/bin/env python # -*- coding: latin-1 -*- # # long_stats_slopes # # script to fit within-subject slopes into longitudinal data # # Original Author: Martin Reuter # CVS Revision Info: # $Author: mreuter $ # $Date: 2012/05/30 22:57:26 $ # $Revision: 1.20 $ # # Copyright © 2011 The General Hospital Corporation (Boston, MA) "MGH" # # Terms and conditions for use, reproduction, distribution and contribution # are found in the 'FreeSurfer Software License Agreement' contained # in the file 'LICENSE' found in the FreeSurfer distribution, and here: # # https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense # # Reporting: freesurfer@nmr.mgh.harvard.edu # # import warnings warnings.filterwarnings('ignore', '.*negative int.*') import os import sys import shlex import optparse import logging import subprocess import tempfile import shutil from subject_info import * from LongQdecTable import * # logging ch = logging.StreamHandler() #create logger slopelogger = logging.getLogger("long_stats_slopes") slopelogger.setLevel(logging.INFO) slopelogger.addHandler(ch) HELPTEXT = """ SUMMARY Computes slopes of stats in a longitudinal study. The slope is computed within subject from the longitudinally processed results (taken from the .long.