I am trying to execute the workflow of the Snakemake's official tutorial via Tibanna on AWS.
As instructed here,
$ snakemake --tibanna --default-remote-prefix=specific-bucket/snakemake-tutorial
However, I get an error at bwa_map rule. And the log says that:
/bin/bash: bwa: command not found
/bin/bash: samtools: command not found
For some reason, I am not able to use conda and/or packages.
I was able to solve this problem with the --precommand
flag.
snakemake --tibanna --default-remote-prefix=sm-tut-test/sm --precommand="conda install -c bioconda bwa"
I am still investigating for an elegant solution though.
Added later: I found a better solution using Integrated package management feature.