<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.anunna.wur.nl/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Moiti001</id>
	<title>HPCwiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.anunna.wur.nl/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Moiti001"/>
	<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/Special:Contributions/Moiti001"/>
	<updated>2026-06-22T03:16:46Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=File:Whole-genome-alignment-workflow.png&amp;diff=2178</id>
		<title>File:Whole-genome-alignment-workflow.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=File:Whole-genome-alignment-workflow.png&amp;diff=2178"/>
		<updated>2022-07-18T13:46:53Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=File:Single-cell-processing-workflow.png&amp;diff=2175</id>
		<title>File:Single-cell-processing-workflow.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=File:Single-cell-processing-workflow.png&amp;diff=2175"/>
		<updated>2022-07-18T09:03:43Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=File:Population-var-calling-workflow.png&amp;diff=2158</id>
		<title>File:Population-var-calling-workflow.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=File:Population-var-calling-workflow.png&amp;diff=2158"/>
		<updated>2022-03-02T13:45:46Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=Workflow_Engines_(Snakemake,_Nextflow)&amp;diff=2153</id>
		<title>Workflow Engines (Snakemake, Nextflow)</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=Workflow_Engines_(Snakemake,_Nextflow)&amp;diff=2153"/>
		<updated>2022-01-05T11:25:11Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: added info on how to install miniconda&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Author: Carolina Pita Barros &amp;lt;br/&amp;gt;&lt;br /&gt;
Contact: carolina.pitabarros@wur.nl &amp;lt;br/&amp;gt;&lt;br /&gt;
ABG&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
You can find my pipelines [https://github.com/CarolinaPB/ here]&lt;br /&gt;
&lt;br /&gt;
The Snakemake shared here use modules loaded from the HPC and tools installed with conda.&lt;br /&gt;
&lt;br /&gt;
Click [https://github.com/CarolinaPB/snakemake-template/blob/master/Short%20introduction%20to%20Snakemake.pdf here] for an introduction to Snakemake&lt;br /&gt;
&lt;br /&gt;
== Clone the repository ==&lt;br /&gt;
&lt;br /&gt;
==== From github ====&lt;br /&gt;
&lt;br /&gt;
Go to the repository’s page, click the green “Code” button and copy the path   &amp;lt;br/&amp;gt;&lt;br /&gt;
In your terminal go to where you want to download it to and run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;git clone &amp;amp;lt;path you copied from github&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== From the the WUR HPC (Anunna) ====&lt;br /&gt;
&lt;br /&gt;
Go to &amp;lt;code&amp;gt;/lustre/nobackup/WUR/ABGC/shared/PIPELINES/&amp;lt;/code&amp;gt; and choose which pipeline you want to use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cp -r &amp;amp;lt;pipeline directory&amp;amp;gt; &amp;amp;lt;directory where you want to save it to&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First you’ll need to do some set up. Go to the pipeline’s directory.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Install &amp;lt;code&amp;gt;conda&amp;lt;/code&amp;gt; if you don’t have it&lt;br /&gt;
&#039;&#039;Update 05/01/2022:&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Here I show how to install miniconda in a linux system&amp;lt;br /&amp;gt;&lt;br /&gt;
[https://docs.conda.io/en/latest/miniconda.html Download installer]&amp;lt;br /&amp;gt;&lt;br /&gt;
[https://conda.io/projects/conda/en/latest/user-guide/install/index.html Installation instructions]&lt;br /&gt;
&lt;br /&gt;
# Download the installer to your home directory. Choose the version according to your operating system. You can right click the link, copy and download with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;wget &amp;amp;lt;link&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
At the time of writing this update, for me it would be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
To install miniconda, run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;bash &amp;amp;lt;installer name&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
installer name could be &amp;lt;code&amp;gt;Miniconda3-latest-Linux-x86_64.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set up the conda channels in this order:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda config --add channels defaults&lt;br /&gt;
conda config --add channels bioconda&lt;br /&gt;
conda config --add channels conda-forge&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create conda environment ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda create --name &amp;amp;lt;name-of-pipeline&amp;amp;gt; --file requirements.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;I recommend giving it the same name as the pipeline&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
This environment contains snakemake and the other packages that are needed to run the pipeline.&lt;br /&gt;
&lt;br /&gt;
=== Activate environment ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda activate &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== To deactivate the environment (if you want to leave the conda environment) ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda deactivate&amp;lt;/pre&amp;gt;&lt;br /&gt;
== File configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Create HPC config file ===&lt;br /&gt;
&lt;br /&gt;
Necessary for snakemake to prepare and send jobs.&lt;br /&gt;
&lt;br /&gt;
==== Start with creating the directory ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir -p ~/.config/snakemake/&amp;amp;lt;name-of-pipeline&amp;amp;gt;&lt;br /&gt;
cd ~/.config/snakemake/&amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Create config.yaml and include the following: ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;My pipelines are configured to work with SLURM&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;jobs: 10&lt;br /&gt;
cluster: &amp;amp;quot;sbatch -t 1:0:0 --mem=16000 -c 16 --job-name={rule} --exclude=fat001,fat002,fat101,fat100 --output=logs_slurm/{rule}.out --error=logs_slurm/{rule}.err&amp;amp;quot;&lt;br /&gt;
&lt;br /&gt;
use-conda: true&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Here you should configure the resources you want to use.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
=== Go to the pipeline directory and open config.yaml ===&lt;br /&gt;
&lt;br /&gt;
Configure your paths, but keep the variable names that are already in the config file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;OUTDIR: /path/to/output&lt;br /&gt;
READS_DIR: /path/to/reads/ &lt;br /&gt;
ASSEMBLY: /path/to/assembly&lt;br /&gt;
PREFIX: &amp;amp;lt;output name&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you want the results to be written to this directory (not to a new directory), open the Snakefile and comment out &amp;lt;code&amp;gt;workdir: config[&amp;amp;quot;OUTDIR&amp;amp;quot;]&amp;lt;/code&amp;gt; and ignore or comment out the &amp;lt;code&amp;gt;OUTDIR: /path/to/output&amp;lt;/code&amp;gt; in the config file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now the setup is complete&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== How to run the pipeline ==&lt;br /&gt;
&lt;br /&gt;
Since the pipelines can take a while to run, it’s best if you use a [https://linuxize.com/post/how-to-use-linux-screen/ screen session]. By using a screen session, Snakemake stays “active” in the shell while it’s running, there’s no risk of the connection going down and Snakemake stopping.&lt;br /&gt;
&lt;br /&gt;
Start by creating a screen session:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;screen -S &amp;amp;lt;name of session&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You&#039;ll need to activate the conda environment again&lt;br /&gt;
&amp;lt;pre&amp;gt;conda activate &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;snakemake -np&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will show you the steps and commands that will be executed. Check the commands and file names to see if there’s any mistake.&lt;br /&gt;
&lt;br /&gt;
If all looks ok, you can now run your pipeline&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;snakemake --profile &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If everything was set up correctly, the jobs should be submitted and you should be able to see the progress of the pipeline in your terminal.&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=File:Nanopore-assembly-workflow.png&amp;diff=2140</id>
		<title>File:Nanopore-assembly-workflow.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=File:Nanopore-assembly-workflow.png&amp;diff=2140"/>
		<updated>2021-11-01T10:03:49Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: Moiti001 uploaded a new version of File:Nanopore-assembly-workflow.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=File:Nanopore-assembly-workflow.png&amp;diff=2137</id>
		<title>File:Nanopore-assembly-workflow.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=File:Nanopore-assembly-workflow.png&amp;diff=2137"/>
		<updated>2021-10-29T08:38:21Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=File:Pop-sv-calling-workflow.png&amp;diff=2134</id>
		<title>File:Pop-sv-calling-workflow.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=File:Pop-sv-calling-workflow.png&amp;diff=2134"/>
		<updated>2021-10-28T08:43:27Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: Moiti001 uploaded a new version of File:Pop-sv-calling-workflow.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;population structural variation calling pipeline workflow&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=File:Mapping-variant-calling-workflow.png&amp;diff=2133</id>
		<title>File:Mapping-variant-calling-workflow.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=File:Mapping-variant-calling-workflow.png&amp;diff=2133"/>
		<updated>2021-10-22T11:48:00Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: workflow for mapping and variant calling pipeline&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;workflow for mapping and variant calling pipeline&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=Workflow_Engines_(Snakemake,_Nextflow)&amp;diff=2129</id>
		<title>Workflow Engines (Snakemake, Nextflow)</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=Workflow_Engines_(Snakemake,_Nextflow)&amp;diff=2129"/>
		<updated>2021-10-08T12:57:02Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Author: Carolina Pita Barros &amp;lt;br/&amp;gt;&lt;br /&gt;
Contact: carolina.pitabarros@wur.nl &amp;lt;br/&amp;gt;&lt;br /&gt;
ABG&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
You can find my pipelines [https://github.com/CarolinaPB/ here]&lt;br /&gt;
&lt;br /&gt;
The Snakemake shared here use modules loaded from the HPC and tools installed with conda.&lt;br /&gt;
&lt;br /&gt;
Click [https://github.com/CarolinaPB/snakemake-template/blob/master/Short%20introduction%20to%20Snakemake.pdf here] for an introduction to Snakemake&lt;br /&gt;
&lt;br /&gt;
== Clone the repository ==&lt;br /&gt;
&lt;br /&gt;
==== From github ====&lt;br /&gt;
&lt;br /&gt;
Go to the repository’s page, click the green “Code” button and copy the path   &amp;lt;br/&amp;gt;&lt;br /&gt;
In your terminal go to where you want to download it to and run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;git clone &amp;amp;lt;path you copied from github&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== From the the WUR HPC (Anunna) ====&lt;br /&gt;
&lt;br /&gt;
Go to &amp;lt;code&amp;gt;/lustre/nobackup/WUR/ABGC/shared/PIPELINES/&amp;lt;/code&amp;gt; and choose which pipeline you want to use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cp -r &amp;amp;lt;pipeline directory&amp;amp;gt; &amp;amp;lt;directory where you want to save it to&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First you’ll need to do some set up. Go to the pipeline’s directory.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Install &amp;lt;code&amp;gt;conda&amp;lt;/code&amp;gt; if you don’t have it&lt;br /&gt;
&lt;br /&gt;
=== Create conda environment ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda create --name &amp;amp;lt;name-of-pipeline&amp;amp;gt; --file requirements.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;I recommend giving it the same name as the pipeline&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
This environment contains snakemake and the other packages that are needed to run the pipeline.&lt;br /&gt;
&lt;br /&gt;
=== Activate environment ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda activate &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== To deactivate the environment (if you want to leave the conda environment) ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda deactivate&amp;lt;/pre&amp;gt;&lt;br /&gt;
== File configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Create HPC config file ===&lt;br /&gt;
&lt;br /&gt;
Necessary for snakemake to prepare and send jobs.&lt;br /&gt;
&lt;br /&gt;
==== Start with creating the directory ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir -p ~/.config/snakemake/&amp;amp;lt;name-of-pipeline&amp;amp;gt;&lt;br /&gt;
cd ~/.config/snakemake/&amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Create config.yaml and include the following: ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;My pipelines are configured to work with SLURM&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;jobs: 10&lt;br /&gt;
cluster: &amp;amp;quot;sbatch -t 1:0:0 --mem=16000 -c 16 --job-name={rule} --exclude=fat001,fat002,fat101,fat100 --output=logs_slurm/{rule}.out --error=logs_slurm/{rule}.err&amp;amp;quot;&lt;br /&gt;
&lt;br /&gt;
use-conda: true&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Here you should configure the resources you want to use.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
=== Go to the pipeline directory and open config.yaml ===&lt;br /&gt;
&lt;br /&gt;
Configure your paths, but keep the variable names that are already in the config file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;OUTDIR: /path/to/output&lt;br /&gt;
READS_DIR: /path/to/reads/ &lt;br /&gt;
ASSEMBLY: /path/to/assembly&lt;br /&gt;
PREFIX: &amp;amp;lt;output name&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you want the results to be written to this directory (not to a new directory), open the Snakefile and comment out &amp;lt;code&amp;gt;workdir: config[&amp;amp;quot;OUTDIR&amp;amp;quot;]&amp;lt;/code&amp;gt; and ignore or comment out the &amp;lt;code&amp;gt;OUTDIR: /path/to/output&amp;lt;/code&amp;gt; in the config file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now the setup is complete&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== How to run the pipeline ==&lt;br /&gt;
&lt;br /&gt;
Since the pipelines can take a while to run, it’s best if you use a [https://linuxize.com/post/how-to-use-linux-screen/ screen session]. By using a screen session, Snakemake stays “active” in the shell while it’s running, there’s no risk of the connection going down and Snakemake stopping.&lt;br /&gt;
&lt;br /&gt;
Start by creating a screen session:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;screen -S &amp;amp;lt;name of session&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You&#039;ll need to activate the conda environment again&lt;br /&gt;
&amp;lt;pre&amp;gt;conda activate &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;snakemake -np&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will show you the steps and commands that will be executed. Check the commands and file names to see if there’s any mistake.&lt;br /&gt;
&lt;br /&gt;
If all looks ok, you can now run your pipeline&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;snakemake --profile &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If everything was set up correctly, the jobs should be submitted and you should be able to see the progress of the pipeline in your terminal.&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=File:Population-mapping-workflow.png&amp;diff=2124</id>
		<title>File:Population-mapping-workflow.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=File:Population-mapping-workflow.png&amp;diff=2124"/>
		<updated>2021-09-29T12:51:44Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: workflow for population mapping snakemake pipeline&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;workflow for population mapping snakemake pipeline&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=File:Pop-sv-calling-workflow.png&amp;diff=2120</id>
		<title>File:Pop-sv-calling-workflow.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=File:Pop-sv-calling-workflow.png&amp;diff=2120"/>
		<updated>2021-09-22T11:30:39Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: population structural variation calling pipeline workflow&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;population structural variation calling pipeline workflow&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=Workflow_Engines_(Snakemake,_Nextflow)&amp;diff=2118</id>
		<title>Workflow Engines (Snakemake, Nextflow)</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=Workflow_Engines_(Snakemake,_Nextflow)&amp;diff=2118"/>
		<updated>2021-07-01T13:38:17Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Author: Carolina Pita Barros &amp;lt;br/&amp;gt;&lt;br /&gt;
Contact: carolina.pitabarros@wur.nl &amp;lt;br/&amp;gt;&lt;br /&gt;
ABG&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
You can find my pipelines [https://github.com/CarolinaPB/ here]&lt;br /&gt;
&lt;br /&gt;
The Snakemake shared here use modules loaded from the HPC and tools installed with conda.&lt;br /&gt;
&lt;br /&gt;
Click [https://github.com/CarolinaPB/snakemake-template/blob/master/Short%20introduction%20to%20Snakemake.pdf here] for an introduction to Snakemake&lt;br /&gt;
&lt;br /&gt;
== Clone the repository ==&lt;br /&gt;
&lt;br /&gt;
==== From github ====&lt;br /&gt;
&lt;br /&gt;
Go to the repository’s page, click the green “Code” button and copy the path   &amp;lt;br/&amp;gt;&lt;br /&gt;
In your terminal go to where you want to download it to and run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;git clone &amp;amp;lt;path you copied from github&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== From the the WUR HPC (Anunna) ====&lt;br /&gt;
&lt;br /&gt;
Go to &amp;lt;code&amp;gt;/lustre/nobackup/WUR/ABGC/shared/PIPELINES/&amp;lt;/code&amp;gt; and choose which pipeline you want to use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cp &amp;amp;lt;pipeline directory&amp;amp;gt; &amp;amp;lt;directory where you want to save it to&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First you’ll need to do some set up. Go to the pipeline’s directory.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Install &amp;lt;code&amp;gt;conda&amp;lt;/code&amp;gt; if you don’t have it&lt;br /&gt;
&lt;br /&gt;
=== Create conda environment ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda create --name &amp;amp;lt;name-of-pipeline&amp;amp;gt; --file requirements.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;I recommend giving it the same name as the pipeline&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
This environment contains snakemake and the other packages that are needed to run the pipeline.&lt;br /&gt;
&lt;br /&gt;
=== Activate environment ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda activate &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== To deactivate the environment (if you want to leave the conda environment) ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda deactivate&amp;lt;/pre&amp;gt;&lt;br /&gt;
== File configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Create HPC config file ===&lt;br /&gt;
&lt;br /&gt;
Necessary for snakemake to prepare and send jobs.&lt;br /&gt;
&lt;br /&gt;
==== Start with creating the directory ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir -p ~/.config/snakemake/&amp;amp;lt;name-of-pipeline&amp;amp;gt;&lt;br /&gt;
cd ~/.config/snakemake/&amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Create config.yaml and include the following: ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;My pipelines are configured to work with SLURM&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;jobs: 10&lt;br /&gt;
cluster: &amp;amp;quot;sbatch -t 1:0:0 --mem=16000 -c 16 --job-name={rule} --exclude=fat001,fat002,fat101,fat100 --output=logs_slurm/{rule}.out --error=logs_slurm/{rule}.err&amp;amp;quot;&lt;br /&gt;
&lt;br /&gt;
use-conda: true&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Here you should configure the resources you want to use.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
=== Go to the pipeline directory and open config.yaml ===&lt;br /&gt;
&lt;br /&gt;
Configure your paths, but keep the variable names that are already in the config file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;OUTDIR: /path/to/output&lt;br /&gt;
READS_DIR: /path/to/reads/ &lt;br /&gt;
ASSEMBLY: /path/to/assembly&lt;br /&gt;
PREFIX: &amp;amp;lt;output name&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you want the results to be written to this directory (not to a new directory), open the Snakefile and comment out &amp;lt;code&amp;gt;workdir: config[&amp;amp;quot;OUTDIR&amp;amp;quot;]&amp;lt;/code&amp;gt; and ignore or comment out the &amp;lt;code&amp;gt;OUTDIR: /path/to/output&amp;lt;/code&amp;gt; in the config file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now the setup is complete&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== How to run the pipeline ==&lt;br /&gt;
&lt;br /&gt;
Since the pipelines can take a while to run, it’s best if you use a [https://linuxize.com/post/how-to-use-linux-screen/ screen session]. By using a screen session, Snakemake stays “active” in the shell while it’s running, there’s no risk of the connection going down and Snakemake stopping.&lt;br /&gt;
&lt;br /&gt;
Start by creating a screen session:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;screen -S &amp;amp;lt;name of session&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You&#039;ll need to activate the conda environment again&lt;br /&gt;
&amp;lt;pre&amp;gt;conda activate &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;snakemake -np&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will show you the steps and commands that will be executed. Check the commands and file names to see if there’s any mistake.&lt;br /&gt;
&lt;br /&gt;
If all looks ok, you can now run your pipeline&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;snakemake --profile &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If everything was set up correctly, the jobs should be submitted and you should be able to see the progress of the pipeline in your terminal.&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=Workflow_Engines_(Snakemake,_Nextflow)&amp;diff=2117</id>
		<title>Workflow Engines (Snakemake, Nextflow)</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=Workflow_Engines_(Snakemake,_Nextflow)&amp;diff=2117"/>
		<updated>2021-07-01T08:03:10Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Author: Carolina Pita Barros &amp;lt;br/&amp;gt;&lt;br /&gt;
Contact: carolina.pitabarros@wur.nl &amp;lt;br/&amp;gt;&lt;br /&gt;
ABG&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
You can find my pipelines [https://github.com/CarolinaPB/ here]&lt;br /&gt;
&lt;br /&gt;
The Snakemake shared here use modules loaded from the HPC and tools installed with conda.&lt;br /&gt;
&lt;br /&gt;
Click [https://github.com/CarolinaPB/snakemake-template/blob/master/Short%20introduction%20to%20Snakemake.pdf here] for an introduction to Snakemake&lt;br /&gt;
&lt;br /&gt;
== Clone the repository ==&lt;br /&gt;
&lt;br /&gt;
==== From github ====&lt;br /&gt;
&lt;br /&gt;
Go to the repository’s page, click the green “Code” button and copy the path   &amp;lt;br/&amp;gt;&lt;br /&gt;
In your terminal go to where you want to download it to and run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;git clone &amp;amp;lt;path you copied from github&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== From the the WUR HPC (Anunna) ====&lt;br /&gt;
&lt;br /&gt;
Go to &amp;lt;code&amp;gt;/lustre/nobackup/WUR/ABGC/shared/PIPELINES/&amp;lt;/code&amp;gt; and choose which pipeline you want to use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cp &amp;amp;lt;pipeline directory&amp;amp;gt; &amp;amp;lt;directory where you want to save it to&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First you’ll need to do some set up. Go to the pipeline’s directory.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Install &amp;lt;code&amp;gt;conda&amp;lt;/code&amp;gt; if you don’t have it&lt;br /&gt;
&lt;br /&gt;
=== Create conda environment ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda create --name &amp;amp;lt;name-of-pipeline&amp;amp;gt; --file requirements.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;I recommend giving it the same name as the pipeline&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
This environment contains snakemake and the other packages that are needed to run the pipeline.&lt;br /&gt;
&lt;br /&gt;
=== Activate environment ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda activate &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== To deactivate the environment (if you want to leave the conda environment) ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda deactivate&amp;lt;/pre&amp;gt;&lt;br /&gt;
== File configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Create HPC config file ===&lt;br /&gt;
&lt;br /&gt;
Necessary for snakemake to prepare and send jobs.&lt;br /&gt;
&lt;br /&gt;
==== Start with creating the directory ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir -p ~/.config/snakemake/&amp;amp;lt;name-of-pipeline&amp;amp;gt;&lt;br /&gt;
cd ~/.config/snakemake/&amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Create config.yaml and include the following: ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;My pipelines are configured to work with SLURM&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;jobs: 10&lt;br /&gt;
cluster: &amp;amp;quot;sbatch -t 1:0:0 --mem=16000 -c 16 --job-name={rule} --exclude=fat001,fat002,fat101,fat100 --output=logs_slurm/{rule}.out --error=logs_slurm/{rule}.err&amp;amp;quot;&lt;br /&gt;
&lt;br /&gt;
use-conda: true&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Here you should configure the resources you want to use.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
=== Go to the pipeline directory and open config.yaml ===&lt;br /&gt;
&lt;br /&gt;
Configure your paths, but keep the variable names that are already in the config file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;OUTDIR: /path/to/output&lt;br /&gt;
READS_DIR: /path/to/reads/ &lt;br /&gt;
ASSEMBLY: /path/to/assembly&lt;br /&gt;
PREFIX: &amp;amp;lt;output name&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you want the results to be written to this directory (not to a new directory), open the Snakefile and comment out &amp;lt;code&amp;gt;workdir: config[&amp;amp;quot;OUTDIR&amp;amp;quot;]&amp;lt;/code&amp;gt; and ignore or comment out the &amp;lt;code&amp;gt;OUTDIR: /path/to/output&amp;lt;/code&amp;gt; in the config file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now the setup is complete&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== How to run the pipeline ==&lt;br /&gt;
&lt;br /&gt;
Since the pipelines can take a while to run, it’s best if you use a [https://linuxize.com/post/how-to-use-linux-screen/ screen session]. By using a screen session, Snakemake stays “active” in the shell while it’s running, there’s no risk of the connection going down and Snakemake stopping.&lt;br /&gt;
&lt;br /&gt;
Start by creating a screen session:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;screen -S &amp;amp;lt;name of session&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;snakemake -np&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will show you the steps and commands that will be executed. Check the commands and file names to see if there’s any mistake.&lt;br /&gt;
&lt;br /&gt;
If all looks ok, you can now run your pipeline&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;snakemake --profile &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If everything was set up correctly, the jobs should be submitted and you should be able to see the progress of the pipeline in your terminal.&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=Workflow_Engines_(Snakemake,_Nextflow)&amp;diff=2116</id>
		<title>Workflow Engines (Snakemake, Nextflow)</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=Workflow_Engines_(Snakemake,_Nextflow)&amp;diff=2116"/>
		<updated>2021-07-01T06:39:30Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Author: Carolina Pita Barros &amp;lt;br/&amp;gt;&lt;br /&gt;
Contact: carolina.pitabarros@wur.nl &amp;lt;br/&amp;gt;&lt;br /&gt;
ABG&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
You can find my pipelines [https://github.com/CarolinaPB/ here]&lt;br /&gt;
&lt;br /&gt;
The Snakemake shared here use modules loaded from the HPC and tools installed with conda.&lt;br /&gt;
&lt;br /&gt;
Click [https://github.com/CarolinaPB/snakemake-template/blob/master/Short%20introduction%20to%20Snakemake.pdf here] for an introduction to Snakemake&lt;br /&gt;
&lt;br /&gt;
== Clone the repository ==&lt;br /&gt;
&lt;br /&gt;
==== From github ====&lt;br /&gt;
&lt;br /&gt;
Go to the repository’s page, click the green “Code” button and copy the path In your terminal go to where you want to download it to and run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;git clone &amp;amp;lt;path you copied from github&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== From the the WUR HPC (Anunna) ====&lt;br /&gt;
&lt;br /&gt;
Go to &amp;lt;code&amp;gt;/lustre/nobackup/WUR/ABGC/shared/PIPELINES/&amp;lt;/code&amp;gt; and choose which pipeline you want to use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cp &amp;amp;lt;pipeline directory&amp;amp;gt; &amp;amp;lt;directory where you want to save it to&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First you’ll need to do some set up. Go to the pipeline’s directory.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Install &amp;lt;code&amp;gt;conda&amp;lt;/code&amp;gt; if you don’t have it&lt;br /&gt;
&lt;br /&gt;
=== Create conda environment ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda create --name &amp;amp;lt;name-of-pipeline&amp;amp;gt; --file requirements.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;I recommend giving it the same name as the pipeline&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
This environment contains snakemake and the other packages that are needed to run the pipeline.&lt;br /&gt;
&lt;br /&gt;
=== Activate environment ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda activate &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== To deactivate the environment (if you want to leave the conda environment) ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda deactivate&amp;lt;/pre&amp;gt;&lt;br /&gt;
== File configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Create HPC config file ===&lt;br /&gt;
&lt;br /&gt;
Necessary for snakemake to prepare and send jobs.&lt;br /&gt;
&lt;br /&gt;
==== Start with creating the directory ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir -p ~/.config/snakemake/&amp;amp;lt;name-of-pipeline&amp;amp;gt;&lt;br /&gt;
cd ~/.config/snakemake/&amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Create config.yaml and include the following: ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;My pipelines are configured to work with SLURM&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;jobs: 10&lt;br /&gt;
cluster: &amp;amp;quot;sbatch -t 1:0:0 --mem=16000 -c 16 --job-name={rule} --exclude=fat001,fat002,fat101,fat100 --output=logs_slurm/{rule}.out --error=logs_slurm/{rule}.err&amp;amp;quot;&lt;br /&gt;
&lt;br /&gt;
use-conda: true&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Here you should configure the resources you want to use.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
=== Go to the pipeline directory and open config.yaml ===&lt;br /&gt;
&lt;br /&gt;
Configure your paths, but keep the variable names that are already in the config file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;OUTDIR: /path/to/output&lt;br /&gt;
READS_DIR: /path/to/reads/ &lt;br /&gt;
ASSEMBLY: /path/to/assembly&lt;br /&gt;
PREFIX: &amp;amp;lt;output name&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you want the results to be written to this directory (not to a new directory), open the Snakefile and comment out &amp;lt;code&amp;gt;workdir: config[&amp;amp;quot;OUTDIR&amp;amp;quot;]&amp;lt;/code&amp;gt; and ignore or comment out the &amp;lt;code&amp;gt;OUTDIR: /path/to/output&amp;lt;/code&amp;gt; in the config file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now the setup is complete&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== How to run the pipeline ==&lt;br /&gt;
&lt;br /&gt;
Since the pipelines can take a while to run, it’s best if you use a [https://linuxize.com/post/how-to-use-linux-screen/ screen session]. By using a screen session, Snakemake stays “active” in the shell while it’s running, there’s no risk of the connection going down and Snakemake stopping.&lt;br /&gt;
&lt;br /&gt;
Start by creating a screen session:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;screen -S &amp;amp;lt;name of session&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;snakemake -np&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will show you the steps and commands that will be executed. Check the commands and file names to see if there’s any mistake.&lt;br /&gt;
&lt;br /&gt;
If all looks ok, you can now run your pipeline&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;snakemake --profile &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If everything was set up correctly, the jobs should be submitted and you should be able to see the progress of the pipeline in your terminal.&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=Workflow_Engines_(Snakemake,_Nextflow)&amp;diff=2115</id>
		<title>Workflow Engines (Snakemake, Nextflow)</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=Workflow_Engines_(Snakemake,_Nextflow)&amp;diff=2115"/>
		<updated>2021-06-30T14:24:33Z</updated>

		<summary type="html">&lt;p&gt;Moiti001: Created page with &amp;quot;Author: Carolina Pita Barros &amp;lt;br/&amp;gt; Contact: carolina.pitabarros@wur.nl &amp;lt;br/&amp;gt; ABG  &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt; You can find my pipelines [https://github.com/CarolinaPB/ here]  The Snakemake sha...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Author: Carolina Pita Barros &amp;lt;br/&amp;gt;&lt;br /&gt;
Contact: carolina.pitabarros@wur.nl &amp;lt;br/&amp;gt;&lt;br /&gt;
ABG&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
You can find my pipelines [https://github.com/CarolinaPB/ here]&lt;br /&gt;
&lt;br /&gt;
The Snakemake shared here use modules loaded from the HPC and tools installed with conda.&lt;br /&gt;
&lt;br /&gt;
Click [https://github.com/CarolinaPB/snakemake-template/blob/master/Short%20introduction%20to%20Snakemake.pdf here] for an introduction to Snakemake&lt;br /&gt;
&lt;br /&gt;
== Clone the repository ==&lt;br /&gt;
&lt;br /&gt;
==== From github ====&lt;br /&gt;
&lt;br /&gt;
Go to the repository’s page, click the green “Code” button and copy the path In your terminal go to where you want to download it to and run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;git clone &amp;amp;lt;path you copied from github&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== From the the WUR HPC (Anunna) ====&lt;br /&gt;
&lt;br /&gt;
Go to &amp;lt;code&amp;gt;/lustre/nobackup/WUR/ABGC/shared/PIPELINES/&amp;lt;/code&amp;gt; and choose which pipeline you want to use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cp &amp;amp;lt;pipeline directory&amp;amp;gt; &amp;amp;lt;directory where you want to save it to&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First you’ll need to do some set up. Go to the pipeline’s directory.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Install &amp;lt;code&amp;gt;conda&amp;lt;/code&amp;gt; if you don’t have it&lt;br /&gt;
&lt;br /&gt;
=== Create conda environment ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda create --name &amp;amp;lt;name-of-pipeline&amp;amp;gt; --file requirements.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;I recommend giving it the same name as the pipeline&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
This environment contains snakemake and the other packages that are needed to run the pipeline.&lt;br /&gt;
&lt;br /&gt;
=== Activate environment ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda activate &amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== To deactivate the environment (if you want to leave the conda environment) ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;conda deactivate&amp;lt;/pre&amp;gt;&lt;br /&gt;
== File configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Create HPC config file ===&lt;br /&gt;
&lt;br /&gt;
Necessary for snakemake to prepare and send jobs.&lt;br /&gt;
&lt;br /&gt;
==== Start with creating the directory ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir -p ~/.config/snakemake/&amp;amp;lt;name-of-pipeline&amp;amp;gt;&lt;br /&gt;
cd ~/.config/snakemake/&amp;amp;lt;name-of-pipeline&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Create config.yaml and include the following: ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;My pipelines are configured to work with SLURM&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;jobs: 10&lt;br /&gt;
cluster: &amp;amp;quot;sbatch -t 1:0:0 --mem=16000 -c 16 --job-name={rule} --exclude=fat001,fat002,fat101,fat100 --output=logs_slurm/{rule}.out --error=logs_slurm/{rule}.err&amp;amp;quot;&lt;br /&gt;
&lt;br /&gt;
use-conda: true&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Here you should configure the resources you want to use.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
=== Go to the pipeline directory and open config.yaml ===&lt;br /&gt;
&lt;br /&gt;
Configure your paths, but keep the variable names that are already in the config file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;OUTDIR: /path/to/output&lt;br /&gt;
READS_DIR: /path/to/reads/ &lt;br /&gt;
ASSEMBLY: /path/to/assembly&lt;br /&gt;
PREFIX: &amp;amp;lt;output name&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you want the results to be written to this directory (not to a new directory), open the Snakefile and comment out &amp;lt;code&amp;gt;workdir: config[&amp;amp;quot;OUTDIR&amp;amp;quot;]&amp;lt;/code&amp;gt; and ignore or comment out the &amp;lt;code&amp;gt;OUTDIR: /path/to/output&amp;lt;/code&amp;gt; in the config file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now the setup is complete&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== How to run the pipeline ==&lt;br /&gt;
&lt;br /&gt;
Since the pipelines can take a while to run, it’s best if you use a [https://linuxize.com/post/how-to-use-linux-screen/ screen session]. By using a screen session, Snakemake stays “active” in the shell while it’s running, there’s no risk of the connection going down and Snakemake stopping.&lt;br /&gt;
&lt;br /&gt;
Start by creating a screen session:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;screen -S &amp;amp;lt;name of session&amp;amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;snakemake -np&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will show you the steps and commands that will be executed. Check the commands and file names to see i&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
</feed>