<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rcs.ucalgary.ca/index.php?action=history&amp;feed=atom&amp;title=Draft%3A_Workflow_Management_Systems</id>
	<title>Draft: Workflow Management Systems - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rcs.ucalgary.ca/index.php?action=history&amp;feed=atom&amp;title=Draft%3A_Workflow_Management_Systems"/>
	<link rel="alternate" type="text/html" href="https://rcs.ucalgary.ca/index.php?title=Draft:_Workflow_Management_Systems&amp;action=history"/>
	<updated>2026-05-22T11:10:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://rcs.ucalgary.ca/index.php?title=Draft:_Workflow_Management_Systems&amp;diff=3609&amp;oldid=prev</id>
		<title>Pemartin: /* Overview */</title>
		<link rel="alternate" type="text/html" href="https://rcs.ucalgary.ca/index.php?title=Draft:_Workflow_Management_Systems&amp;diff=3609&amp;oldid=prev"/>
		<updated>2024-10-17T15:11:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Overview&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:11, 17 October 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Overview =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Overview =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This guide gives an overview of running Workflow Management Systems (WfMS) like Prefect and Toil-CWL&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This guide gives an overview of running Workflow Management Systems (WfMS) like Prefect and Toil-CWL &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;on ARC or MARC&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Toil-CWL ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Toil-CWL ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pemartin</name></author>
	</entry>
	<entry>
		<id>https://rcs.ucalgary.ca/index.php?title=Draft:_Workflow_Management_Systems&amp;diff=3608&amp;oldid=prev</id>
		<title>Pemartin: Created page with &quot;= Overview =  This guide gives an overview of running Workflow Management Systems (WfMS) like Prefect and Toil-CWL.  == Toil-CWL ==  === Installation === There are two required environments for running toil CWL. In addition to a standard python environment we also need a node.js environment. First we create the python environment.  $ python3 -m venv /path/to/new/virtual/environment  We activate the environment with  $ source /path/to/new/virtual/environment/bin/activate...&quot;</title>
		<link rel="alternate" type="text/html" href="https://rcs.ucalgary.ca/index.php?title=Draft:_Workflow_Management_Systems&amp;diff=3608&amp;oldid=prev"/>
		<updated>2024-10-17T15:11:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Overview =  This guide gives an overview of running Workflow Management Systems (WfMS) like Prefect and Toil-CWL.  == Toil-CWL ==  === Installation === There are two required environments for running toil CWL. In addition to a standard python environment we also need a node.js environment. First we create the python environment.  $ python3 -m venv /path/to/new/virtual/environment  We activate the environment with  $ source /path/to/new/virtual/environment/bin/activate...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Overview =&lt;br /&gt;
&lt;br /&gt;
This guide gives an overview of running Workflow Management Systems (WfMS) like Prefect and Toil-CWL.&lt;br /&gt;
&lt;br /&gt;
== Toil-CWL ==&lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
There are two required environments for running toil CWL. In addition to a standard python environment we also need a node.js environment. First we create the python environment.&lt;br /&gt;
 $ python3 -m venv /path/to/new/virtual/environment&lt;br /&gt;
&lt;br /&gt;
We activate the environment with&lt;br /&gt;
 $ source /path/to/new/virtual/environment/bin/activate&lt;br /&gt;
&lt;br /&gt;
Then we can proceed to install toil and CWL with the following command&lt;br /&gt;
 $ pip install &amp;#039;toil[cwl]&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This will install the toil-cwl-runner executable&lt;br /&gt;
&lt;br /&gt;
then we proceed to install nodeenv to create an isolated node.js environment with the following command&lt;br /&gt;
 $ pip install nodeenv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We then create a node.js environment&lt;br /&gt;
 $ nodeenv node_env&lt;br /&gt;
or&lt;br /&gt;
 $ nodeenv -n 16.15.0 node_env #for a specific version&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This environment can be then activated with&lt;br /&gt;
&lt;br /&gt;
 $ . env/bin/activate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usually the two environment activation commands are grouped in a single bash script for manual launch or automatic launch by the toil script.&lt;br /&gt;
&lt;br /&gt;
== Running a workflow ==&lt;br /&gt;
There are several steps to run a CWL workflow on ARC. It is advised that all this steps are writen in a single bash file like the one below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 #!/bin/zsh&lt;br /&gt;
 source activate_envs.sh&lt;br /&gt;
&lt;br /&gt;
 module purge&lt;br /&gt;
 module load R/3.6.2&lt;br /&gt;
&lt;br /&gt;
 PATH=/home/pemartin/scripts/bioinformatics-tools/samtools-1.16.1:/home/pemartin/scripts/bioinformatics-tools/bwa:$PATH&lt;br /&gt;
 &lt;br /&gt;
 export TOIL_SLURM_ARGS=&amp;quot;-t 72:00:00 --partition cpu2023&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 toil clean /bulk/rsws/my-job-store-gridss/&lt;br /&gt;
 cwltool --validate src/pipeline_gridss.cwl src/inputs.yml&lt;br /&gt;
 toil-cwl-runner --restart --singularity --batchSystem=slurm --workDir=/bulk/rsws/work_dir --coordinationDir=/bulk/rsws/coord_dir --logFile=cwltoil-gridss.log --writeLogs=/bulk/rsws/logs --jobStore file:/bulk/rsws/my-job-store-gridss --stats --retryCount=0 --cleanWorkDir=onSuccess --bypass-file-store --outdir=/home/pemartin/scripts/bioinformatics-data/OUT/gridss src/pipeline_gridss.cwl src/inputs_gridss.yml&lt;br /&gt;
 &lt;br /&gt;
 deactivate&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
 https://www.commonwl.org/v1.2/Workflow.html&lt;br /&gt;
 https://www.commonwl.org/v1.2/CommandLineTool.html&lt;/div&gt;</summary>
		<author><name>Pemartin</name></author>
	</entry>
</feed>