grenaud / schmutzi

Maximum a posteriori estimate of contamination for ancient samples
20 stars 2 forks source link

Incorrect path to poshap2splitbam in schmutzi.pl #4

Closed antmarge closed 6 years ago

antmarge commented 6 years ago

Line 445 of schmutzi.pl checks if the poshap2splitbam executable exists in path/to/schmutzi/src/ when it actually exists in path/to/schmutzi/src/splitEndoVsCont/. Thus an error is produced:

Executable path/to/schmutzi/src/poshap2splitbam does not exist

Editing the line to include the correct file path fixes the problem.

grenaud commented 6 years ago

Dear Margaret, thank you very much for raising this issue! The line now reads:

if(!doesFileExists(\$splitEndo)){ $splitEndo = $pathdir."/poshap2splitbam"; }

I want it to first look in src/splitEndoVsCont, then in src/. This was done to accomate make install.

Let me know if this works and if I can close the issue.