I was running the pipeline locally using the master branch and got an error message "tests/test_integration_workflow/test.local.sh: line 59: bedtools: command not found"
Actually, it can be the case. I think, I used conda env create -f install/environment.yml. I will try it. If it is the case, don't we need to provide access to bedtools for all environments?
@boersch: did you follow the instructions in README.md for installing the pipeline dependencies? I think it explains there what you have to do to (a) run the pipeline and (b) run tests. The CI pipeline seems to run fine anyway, including the test that requires bedtools. So I don't think there's really a bug anywhere, unless the docs are wrong.
@kanitz@katsanto I am sorry, it is my bad, I completely forgot about updating the environment to be able to run tests... So I removed the old rnaseq_pipeline environment and executed the following code:
ml Singularity/2.6.1git clone ssh://git@git.scicore.unibas.ch:2222/zavolan_group/pipelines/rhea.gitcd rhea/conda env create -finstall/environment.ymlconda env update -finstall/environment.dev.ymlconda activate rnaseq_pipelinenohup sh tests/test_integration_workflow/test.local.sh > nohup.local.txt
Since I don't have administrative rights on the login node, I did not install conda env update -f install/environment.dev.yml, right?
Then I get another error, which is a syntax error:
tests/test_integration_workflow/test.local.sh: command substitution: line 68: syntax error near unexpected token `('
Are you sure the branch you are in is synchronised with the master branch?
I do not understand why you need administrative rights to run conda env update -f install/environment.dev.yml, is it not like conda create? You need to run this to update the environment and have all the packages, otherwise you are left with whatever is in environment.yml
And Maria is right: you should definitely install environment.dev.yml if you want to run tests. Or have a look at what's in there and install it in any other way. Still, that probably shouldn't explain your syntax error - it's a bit weird...
It looks like something is wrong with setting up the conda environment in the first case, but I don't know what is exactly wrong. I have conda version 4.7.12. Any ideas, what is wrong with the first part?
It looks like it is indeed sh that makes the problem. I replaced sh with bash and the run was clean. I tried to read, what is the difference between sh and bash, but it is not so obvious. May be it is good to keep in mind my experience if some of pipeline users also use sh instead of bash and then report an error. @katsanto Thanks a lot for help!