arundurvasula / angsd-wrapper

A project for extending ANGSD
MIT License
8 stars 12 forks source link

Syntax Errors with ANGSD-wrapper #98

Closed ChaochihL closed 9 years ago

ChaochihL commented 9 years ago

There were multiple syntax errors that prevented the ANGSD-wrapper from running. One of the errors was in the inbreeding coefficients script which wasn't able to run. Since many of the wrappers depend on having an inbreeding coefficient, I was not able to test most of the scripts.

Syntax Errors

Here is a quick overview of the issues:

Attempt to run inbreeding coefficients script

Error message 1

/home/morrellp/liux1299/Arun/angsd-wrapper/scripts/utils.sh: line 13: syntax error in conditional expression

Error message 2

/home/morrellp/liux1299/Arun/angsd-wrapper/scripts/utils.sh: line 35: syntax error in conditional expression

Error message 3

./scripts/F.sh: line 29: syntax error in conditional expression: unexpected token `;'

Error message 4

./scripts/F.sh: line 93: syntax error: unexpected end of file

Error message 1

./scripts/PCA.sh: line 25: syntax error in conditional expression: unexpected token `;' 

Error message 2

./scripts/PCA.sh: line 68: syntax error: unexpected end of file 
cd angsd; make

Tail end of error output:

g++ -O3 -D_USE_KNETFILE  -o angsd *.o -lz -lpthread
g++ -O3 -D_USE_KNETFILE  -o angsd.static *.o -lz -lpthread --static
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [angsd.static] Error 1
bash scripts/SFS.sh scripts/SFS.conf

And got the following error message

scripts/SFS.sh: line 130: syntax error: unexpected end of file

At this point I was not able to fix this error.

arundurvasula commented 9 years ago

Thanks for the great catches Chaochih! It looks like the unexpected end of file came from a block of if-else statements that were copied and pasted and but not syntax checked. I pushed an update to fix all the files where this occurred.

I added an explanation to the tutorial about sbatch and uncommented ANC and REF and added comments to FASTA.conf

rossibarra commented 9 years ago

The failed make is I think a zlib problem we've seen before in the UMN cluster isn't it? On Tue, 27 Oct 2015 at 08:50, Arun Durvasula notifications@github.com wrote:

Thanks for the great catches Chaochih! It looks like the unexpected end of file came from a block of if-else statements that were copied and pasted and but not syntax checked. I pushed an update to fix all the files where this occurred.

I added an explanation to the tutorial about sbatch and uncommented ANC and REF and added comments to FASTA.conf

— Reply to this email directly or view it on GitHub https://github.com/arundurvasula/angsd-wrapper/pull/98#issuecomment-151547514 .

mojaveazure commented 9 years ago

Yep.

tvkent commented 9 years ago

had the zlib problem on my server here, too