[797475]: / QIF_extraction / lna_single_file.sh

Download this file

24 lines (16 with data), 546 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Usage:
# lna_single_file.sh grey_dir binary_dir patient_id output_dir
if [ $# -lt 1 ] ; then
echo "Usage:"
echo " $(basename ${0}) grey_dir binary_dir patient_id output_dir"
echo
exit 1
fi
bin_dir="$2"
grey_dir="$1"
output_dir="$4"
patient="$3"
echo "Generating features for patient \"$patient\"..."
octave -W -i --no-gui --eval "lna_by_file('${bin_dir}', '${grey_dir}', '$patient', '${output_dir}')" && (echo ; echo "OK" ; echo ) || (echo ; echo "FAILED" ; echo)
echo "Finished patient \"$patient\"..."