Skip to content
Snippets Groups Projects
Commit 6767f0bf authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Merge branch 'mnt/conda' into 'master'

Mnt/conda

See merge request !2
parents 13b434ad fd5a7ad6
Branches master
Tags 2111.0
1 merge request!2Mnt/conda
Pipeline #11740 passed
......@@ -2,6 +2,6 @@ include ${FSLCONFDIR}/default.mk
PROJNAME = misc_scripts
SCRIPTS = fslecho regscript remove_vols replace_and_average_fmrib linkbedpost ocmr_preproc correct_and_average eddy_correct Text2Vest Vest2Text AnatomicalAverage fsl_abspath fsl_anat fslFixText
SCRIPTS = fslecho AnatomicalAverage fsl_anat fslFixText
all:
#!/bin/sh
# Copyright (C) 2012 University of Oxford
#
# SHCOPYRIGHT
if [ $# -lt 2 ] ; then
echo "`basename $0` <text file> <vest file>"
exit 0
fi
NumPoints=`grep -cve '^\s*$' $1`
NumWaves=`wc $1 | awk '{ print $2 }'`
NumWaves=`expr $NumWaves / $NumPoints`
echo /NumWaves $NumWaves > $2
echo /NumPoints $NumPoints >> $2
echo /Matrix >> $2
cat $1 >> $2
#!/bin/sh
# Copyright (C) 2012 University of Oxford
#
# SHCOPYRIGHT
if [ $# -lt 2 ] ; then
echo "`basename $0` <vest file> <text file>"
exit 0
fi
sed -e "/\//d" $1 | sed '/^$/d' > $2
#!/usr/bin/env fslpython
# fsl_abspath - return true file path
# Matthew Webster FMRIB Image Analysis Group
# Copyright (C) 2009 University of Oxford
# SHBASECOPYRIGHT
from __future__ import print_function
import sys
import os
print (os.path.realpath(sys.argv[1]))
sys.exit(0)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment