Can anyone please help me with this code? It gives me below error in linux shell
EDIT: Added full code
./HapView_LDBlock.sh: line 27: syntax error: unexpected end of file
#--------------------------------------------------------------------
#Copyright (c) <2006>, <Chun Zhang and Affymetrix INC.>
#All rights reserved.
#This is OSI certified open source software and is distributed
#under the BSD license.For details please refer to license.txt.
#------------------------------------------------------
#This script is written by Dr. Chun Zhang
#For calculating LD using 4GAM test
#------------------------------------------------------
count=0
chrnum=14
haphead="HapView_Chr"
hapinfo=".info"
happed=".ped"
while [ $count -lt $chrnum ]
do
count=`expr $count + 1`
subcount=0
tmpped=$haphead$count$happed
tmpinfo=$haphead$count$hapinfo
echo $tmpped
echo $tmpinfo
if [ -e $tmpped ]
then
java -jar Haploview.jar -nogui -pedfile $tmpped -info $tmpinfo -dprime -blockoutput GAM
fi
done
Thank you in advance!
Your code only contains 18~20 lines. So maybe this is not the full file?
I didn't include all of the comments lines, so...Here is the complete code that was in the file
Thank you!