Skip to content

Tag: snakemake

Snakemake doesn’t activate conda environment correctly

I have a Python module modulename installed in a conda environment called myenvname. My snakemake file consists of one simple rule: The contents of the test2.py are the following: When I run the above snakemake file with the command snakemake -j 1 –use-conda –conda-frontend conda I get ModuleNotFo…

Snakemake use all samples as one input with porechop

I’m trying to use porechop on several data with a Snakemake workflow. In my Snakefile, there are three rules, a fastqc rule and a porechop rule, in addition to the all rule. The fastqc rule works very well, I have all three out for my three fastq. But for porechop, instead of running the command three t…

Snakemake – How to set conda environment path

In Snakemake, conda environments can be easily set up by defining rules as such conda: “envs/my_environment.yaml”. This way, YAML files specify which packages to install prior to running the pipeline. Some software requires a path to third-party-software, to execute specific commands. An example o…