<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.anunna.wur.nl/index.php?action=history&amp;feed=atom&amp;title=Nanopore_assembly_and_variant_calling</id>
	<title>Nanopore assembly and variant calling - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.anunna.wur.nl/index.php?action=history&amp;feed=atom&amp;title=Nanopore_assembly_and_variant_calling"/>
	<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=Nanopore_assembly_and_variant_calling&amp;action=history"/>
	<updated>2026-04-19T03:15:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=Nanopore_assembly_and_variant_calling&amp;diff=2171&amp;oldid=prev</id>
		<title>Moiti001: added link to github repo</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=Nanopore_assembly_and_variant_calling&amp;diff=2171&amp;oldid=prev"/>
		<updated>2022-06-13T14:36:22Z</updated>

		<summary type="html">&lt;p&gt;added link to github repo&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 16:36, 13 June 2022&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-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&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;ABG&amp;lt;br /&amp;gt;&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;ABG&amp;lt;br /&amp;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 colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;For up-to-date documentation see [https://github.com/CarolinaPB/nanopore-assembly here]&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;div&gt;= Assemble nanopore reads and do variant calling with short and long reads =&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;= Assemble nanopore reads and do variant calling with short and long reads =&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;div&gt;Path to pipeline: /lustre/nobackup/WUR/ABGC/shared/PIPELINES/nanopore-assembly&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;Path to pipeline: /lustre/nobackup/WUR/ABGC/shared/PIPELINES/nanopore-assembly&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=Nanopore_assembly_and_variant_calling&amp;diff=2141&amp;oldid=prev</id>
		<title>Moiti001: added info about variant calling filtering</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=Nanopore_assembly_and_variant_calling&amp;diff=2141&amp;oldid=prev"/>
		<updated>2021-11-04T08:44:32Z</updated>

		<summary type="html">&lt;p&gt;added info about variant calling filtering&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 10:44, 4 November 2021&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-l104&quot;&gt;Line 104:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 104:&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;*** {prefix}_longreads.vcf.gz&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;*** {prefix}_longreads.vcf.gz&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;div&gt;*** {prefix}_longreads.vcf.gz.stats&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;*** {prefix}_longreads.vcf.gz.stats&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Both the short reads and long reads variant calling VCF is filtered for &amp;lt;code&amp;gt;QUAL &amp;gt; 20 &amp;lt;/code&amp;gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Freebayes (short read var calling) is ran with parameters &amp;lt;code&amp;gt;--use-best-n-alleles 4 --min-base-quality 10 --min-alternate-fraction 0.2 --haplotype-length 0 --ploidy 2 --min-alternate-count 2 &amp;lt;/code&amp;gt;. For more details check the Snakefile.&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;div&gt;** &amp;#039;&amp;#039;&amp;#039;genome_alignment&amp;#039;&amp;#039;&amp;#039; directory with results and figure from whole genome alignment&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;** &amp;#039;&amp;#039;&amp;#039;genome_alignment&amp;#039;&amp;#039;&amp;#039; directory with results and figure from whole genome alignment&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;div&gt;*** {prefix}_{species}.png&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;*** {prefix}_{species}.png&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=Nanopore_assembly_and_variant_calling&amp;diff=2139&amp;oldid=prev</id>
		<title>Moiti001: added info on var calling with short reads</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=Nanopore_assembly_and_variant_calling&amp;diff=2139&amp;oldid=prev"/>
		<updated>2021-11-01T10:03:12Z</updated>

		<summary type="html">&lt;p&gt;added info on var calling with short reads&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 12:03, 1 November 2021&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-l14&quot;&gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&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;This is a pipeline that uses &amp;lt;code&amp;gt;Flye&amp;lt;/code&amp;gt; to create a nanopore assembly. It also does variant calling with long and short reads.&amp;lt;br /&amp;gt;&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;This is a pipeline that uses &amp;lt;code&amp;gt;Flye&amp;lt;/code&amp;gt; to create a nanopore assembly. It also does variant calling with long and short reads.&amp;lt;br /&amp;gt;&lt;/div&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;The pipeline starts by using &amp;lt;code&amp;gt;porechop&amp;lt;/code&amp;gt; to trim the adaptors, then it uses &amp;lt;code&amp;gt;Flye&amp;lt;/code&amp;gt; to create the assembly. After that, &amp;lt;code&amp;gt;ntLink-arks&amp;lt;/code&amp;gt; from &amp;lt;code&amp;gt;Lonstitch&amp;lt;/code&amp;gt; is used to scaffold the assembly using the nanopore reads. The scaffolded assembly is polished with &amp;lt;code&amp;gt;polca&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Polca&lt;/del&gt;&amp;lt;/code&amp;gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;also does variant calling with &lt;/del&gt;the short reads&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, while &lt;/del&gt;&amp;lt;code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;longshot&lt;/del&gt;&amp;lt;/code&amp;gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;does &lt;/del&gt;variant calling &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;with the nanopore &lt;/del&gt;reads. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;To run &lt;/del&gt;&amp;lt;code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;longshot&lt;/del&gt;&amp;lt;/code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, first &lt;/del&gt;the long reads &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;are aligned &lt;/del&gt;to the assembly &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;with &lt;/del&gt;&amp;lt;code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;minimap2&lt;/del&gt;&amp;lt;/code&amp;gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br /&amp;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;The pipeline starts by using &amp;lt;code&amp;gt;porechop&amp;lt;/code&amp;gt; to trim the adaptors, then it uses &amp;lt;code&amp;gt;Flye&amp;lt;/code&amp;gt; to create the assembly. After that, &amp;lt;code&amp;gt;ntLink-arks&amp;lt;/code&amp;gt; from &amp;lt;code&amp;gt;Lonstitch&amp;lt;/code&amp;gt; is used to scaffold the assembly using the nanopore reads. The scaffolded assembly is polished with &amp;lt;code&amp;gt;polca&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Bwa-mem2&lt;/ins&gt;&amp;lt;/code&amp;gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;is used to map &lt;/ins&gt;the short reads &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;to the assembly and &lt;/ins&gt;&amp;lt;code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Freebayes&lt;/ins&gt;&amp;lt;/code&amp;gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;to do &lt;/ins&gt;variant calling &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;using these &lt;/ins&gt;reads. &amp;lt;code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Minimap2&lt;/ins&gt;&amp;lt;/code&amp;gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;is used to map &lt;/ins&gt;the long reads to the assembly&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, and &lt;/ins&gt;&amp;lt;code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;longshot&lt;/ins&gt;&amp;lt;/code&amp;gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;for variant calling using these&lt;/ins&gt;. In the end, in addition to your assembly and variant calling results, you&#039;ll also get assembly statistics and busco scores before and after the polishing.&lt;/div&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;In the end, in addition to your assembly and variant calling results, you&#039;ll also get assembly statistics and busco scores before and after the polishing.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;==== Tools used: ====&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;==== Tools used: ====&lt;/div&gt;&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-l24&quot;&gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&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;* [https://github.com/bcgsc/longstitch LongStitch (ntLink-arks)] - scaffolding with nanopore reads&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;* [https://github.com/bcgsc/longstitch LongStitch (ntLink-arks)] - scaffolding with nanopore reads&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;div&gt;* [https://busco.ezlab.org/ BUSCO] - assess assembly completeness&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;* [https://busco.ezlab.org/ BUSCO] - assess assembly completeness&lt;/div&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;* [https://github.com/alekseyzimin/masurca MaSuRCA (polca)] - polish assembly &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and do variant calling with short reads&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;* [https://github.com/alekseyzimin/masurca MaSuRCA (polca)] - polish assembly&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;div&gt;* Python - get assembly stats&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;* Python - get assembly stats&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;div&gt;* [https://github.com/lh3/minimap2 Minimap2] - map long reads to reference. Genome alignment&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;* [https://github.com/lh3/minimap2 Minimap2] - map long reads to reference. Genome alignment&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;div&gt;* [http://www.htslib.org/ Samtools] - sort and index mapped reads and vcf files&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;* [http://www.htslib.org/ Samtools] - sort and index mapped reads and vcf files&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;div&gt;* [https://github.com/pjedge/longshot Longshot] - variant calling with nanopore reads&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;* [https://github.com/pjedge/longshot Longshot] - variant calling with nanopore reads&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [https://github.com/bwa-mem2/bwa-mem2 Bwa-mem2] - map short reads to reference&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [https://github.com/freebayes/freebayes Freebayes] - variant calling using short reads&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;div&gt;* [https://samtools.github.io/bcftools/bcftools.html bcftools] - vcf statistics&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;* [https://samtools.github.io/bcftools/bcftools.html bcftools] - vcf statistics&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;div&gt;* R - [https://github.com/tpoorten/dotPlotly pafCoordsDotPlotly] - plot genome alignment&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;* R - [https://github.com/tpoorten/dotPlotly pafCoordsDotPlotly] - plot genome alignment&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
	<entry>
		<id>https://wiki.anunna.wur.nl/index.php?title=Nanopore_assembly_and_variant_calling&amp;diff=2136&amp;oldid=prev</id>
		<title>Moiti001: added info about nanopore pipeline</title>
		<link rel="alternate" type="text/html" href="https://wiki.anunna.wur.nl/index.php?title=Nanopore_assembly_and_variant_calling&amp;diff=2136&amp;oldid=prev"/>
		<updated>2021-10-29T08:37:36Z</updated>

		<summary type="html">&lt;p&gt;added info about nanopore pipeline&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&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&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Assemble nanopore reads and do variant calling with short and long reads =&lt;br /&gt;
Path to pipeline: /lustre/nobackup/WUR/ABGC/shared/PIPELINES/nanopore-assembly&lt;br /&gt;
&lt;br /&gt;
== First follow the instructions here: ==&lt;br /&gt;
&lt;br /&gt;
[https://carolinapb.github.io/2021-06-23-how-to-run-my-pipelines/ Step by step guide on how to use my pipelines]&amp;lt;br /&amp;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;
== ABOUT ==&lt;br /&gt;
&lt;br /&gt;
This is a pipeline that uses &amp;lt;code&amp;gt;Flye&amp;lt;/code&amp;gt; to create a nanopore assembly. It also does variant calling with long and short reads.&amp;lt;br /&amp;gt;&lt;br /&gt;
The pipeline starts by using &amp;lt;code&amp;gt;porechop&amp;lt;/code&amp;gt; to trim the adaptors, then it uses &amp;lt;code&amp;gt;Flye&amp;lt;/code&amp;gt; to create the assembly. After that, &amp;lt;code&amp;gt;ntLink-arks&amp;lt;/code&amp;gt; from &amp;lt;code&amp;gt;Lonstitch&amp;lt;/code&amp;gt; is used to scaffold the assembly using the nanopore reads. The scaffolded assembly is polished with &amp;lt;code&amp;gt;polca&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;Polca&amp;lt;/code&amp;gt; also does variant calling with the short reads, while &amp;lt;code&amp;gt;longshot&amp;lt;/code&amp;gt; does variant calling with the nanopore reads. To run &amp;lt;code&amp;gt;longshot&amp;lt;/code&amp;gt;, first the long reads are aligned to the assembly with &amp;lt;code&amp;gt;minimap2&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
In the end, in addition to your assembly and variant calling results, you&amp;#039;ll also get assembly statistics and busco scores before and after the polishing.&lt;br /&gt;
&lt;br /&gt;
==== Tools used: ====&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/rrwick/Porechop Porechop] - trim adaptors&lt;br /&gt;
* [https://github.com/fenderglass/Flye Flye] - assembly&lt;br /&gt;
* [https://github.com/lh3/seqtk Seqtk] - convert fasta to one line fasta&lt;br /&gt;
* [https://github.com/bcgsc/longstitch LongStitch (ntLink-arks)] - scaffolding with nanopore reads&lt;br /&gt;
* [https://busco.ezlab.org/ BUSCO] - assess assembly completeness&lt;br /&gt;
* [https://github.com/alekseyzimin/masurca MaSuRCA (polca)] - polish assembly and do variant calling with short reads&lt;br /&gt;
* Python - get assembly stats&lt;br /&gt;
* [https://github.com/lh3/minimap2 Minimap2] - map long reads to reference. Genome alignment&lt;br /&gt;
* [http://www.htslib.org/ Samtools] - sort and index mapped reads and vcf files&lt;br /&gt;
* [https://github.com/pjedge/longshot Longshot] - variant calling with nanopore reads&lt;br /&gt;
* [https://samtools.github.io/bcftools/bcftools.html bcftools] - vcf statistics&lt;br /&gt;
* R - [https://github.com/tpoorten/dotPlotly pafCoordsDotPlotly] - plot genome alignment&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!align=&amp;quot;center&amp;quot;| [[File:nanopore-assembly-workflow.png]]&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;#039;&amp;#039;Pipeline workflow&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Edit config.yaml with the paths to your files ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;LONGREADS: &amp;amp;lt;nanopore_reads.fq.gz&amp;amp;gt;&lt;br /&gt;
SHORTREADS:&lt;br /&gt;
  - /path/to/short/reads_1.fq.gz&lt;br /&gt;
  - /path/to/short/reads_2.fq.gz&lt;br /&gt;
GENOME_SIZE: &amp;amp;lt;approximate genome size&amp;amp;gt;&lt;br /&gt;
PREFIX: &amp;amp;lt;prefix&amp;amp;gt;&lt;br /&gt;
OUTDIR: /path/to/outdir&lt;br /&gt;
BUSCO_LINEAGE:&lt;br /&gt;
  - &amp;amp;lt;lineage&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
# genome alignment parameters:&lt;br /&gt;
COMPARISON_GENOME: &lt;br /&gt;
  &amp;amp;lt;species&amp;amp;gt;: /path/to/genome/fasta&lt;br /&gt;
&lt;br /&gt;
# filter alignments less than cutoff X bp&lt;br /&gt;
MIN_ALIGNMENT_LENGTH: 10000&lt;br /&gt;
MIN_QUERY_LENGTH: 50000&amp;lt;/pre&amp;gt;&lt;br /&gt;
* LONGREADS - name of file with long reads. This file should be in the working directory (where this config and the Snakefile are)&lt;br /&gt;
* SHORTREADS - paths to short reads fq.gz&lt;br /&gt;
* GENOME_SIZE - approximate genome size &amp;lt;code&amp;gt;haploid genome size (bp)(e.g. &amp;#039;3e9&amp;#039; for human genome)&amp;lt;/code&amp;gt; from [https://github.com/bcgsc/longstitch#full-help-page longstitch]&lt;br /&gt;
* PREFIX - prefix for the created files&lt;br /&gt;
* OUTDIR - directory where snakemake will run and where the results will be written to&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want the results to be written to this directory (not to a new directory), open config.yaml and comment out &amp;lt;code&amp;gt;OUTDIR: /path/to/outdir&amp;lt;/code&amp;gt;&lt;br /&gt;
* BUSCO_LINEAGE - lineage used for busco. Can be one or more (one per line). To see available lineages run &amp;lt;code&amp;gt;busco --list-datasets&amp;lt;/code&amp;gt;&lt;br /&gt;
* COMPARISON_GENOME - genome for whole genome comparison. Add your species name and the path to the fasta file. ex: &amp;lt;code&amp;gt;chicken: /path/to/chicken.fna.gz&amp;lt;/code&amp;gt;. You can add several genomes, one on each line.&lt;br /&gt;
** If you don&amp;#039;t want to run the genome alignment step, comment out&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;COMPARISON_GENOME: &lt;br /&gt;
  &amp;amp;lt;species&amp;amp;gt;: /path/to/genome/fasta&amp;lt;/pre&amp;gt;&lt;br /&gt;
* MIN_ALIGNMENT_LENGTH and MIN_QUERY_LENGTH - parameters for plotting. If your plot is coming out blank or if there&amp;#039;s an error with the plotting step, try lowering these thresholds. This happens because the alignments are not large enough.&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
If you have your long reads in several fastq files and need to create one file compressed file with all the reads:&lt;br /&gt;
&lt;br /&gt;
# In your pipeline directory create one file with all the reads&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /path/to/fastq/directory/*.fastq &amp;amp;gt; &amp;amp;lt;name of file&amp;amp;gt;.fq&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Compress the file you just created:&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;gzip &amp;amp;lt;name of file&amp;amp;gt;.fq&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== After installing the conda environment (first step of this guide) you&amp;#039;ll need to edit the polca.sh file. ===&lt;br /&gt;
&lt;br /&gt;
First go to the directory where miniconda3 is installed (usually your home directory). Go to &amp;lt;code&amp;gt;/&amp;amp;lt;home&amp;amp;gt;/miniconda/envs/&amp;amp;lt;env_name&amp;amp;gt;/bin&amp;lt;/code&amp;gt; and open the file &amp;lt;code&amp;gt;polca.sh&amp;lt;/code&amp;gt;. In my case the path looks like this: &amp;lt;code&amp;gt;/home/WUR/&amp;amp;lt;username&amp;amp;gt;/miniconda3/envs/&amp;amp;lt;env_name&amp;amp;gt;/bin/&amp;lt;/code&amp;gt;. In your editor open &amp;lt;code&amp;gt;polca.sh&amp;lt;/code&amp;gt; and replace this line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;$SAMTOOLS sort -m $MEM -@ $NUM_THREADS &amp;amp;lt;(samtools view -uhS $BASM.unSorted.sam) $BASM.alignSorted 2&amp;amp;gt;&amp;amp;gt;samtools.err &amp;amp;amp;&amp;amp;amp; \&amp;lt;/pre&amp;gt;&lt;br /&gt;
With this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;$SAMTOOLS sort -m $MEM -@ $NUM_THREADS &amp;amp;lt;(samtools view -uhS $BASM.unSorted.sam) -o $BASM.alignSorted.bam 2&amp;amp;gt;&amp;amp;gt;samtools.err &amp;amp;amp;&amp;amp;amp; \&amp;lt;/pre&amp;gt;&lt;br /&gt;
== RESULTS ==&lt;br /&gt;
&lt;br /&gt;
The most important files are and directories are:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;amp;lt;run_date&amp;amp;gt;_files.txt&amp;#039;&amp;#039;&amp;#039; dated file with an overview of the files used to run the pipeline (for documentation purposes)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;results&amp;#039;&amp;#039;&amp;#039; directory that contains&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;{prefix}_oneline.k32.w100.ntLink-arks.longstitch-scaffolds.fa.PolcaCorrected.fa&amp;#039;&amp;#039;&amp;#039; final assembly&lt;br /&gt;
** assembly_stats_&amp;amp;lt;prefix&amp;amp;gt;.txt file with assembly statistics for the final assembly&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;variant_calling&amp;#039;&amp;#039;&amp;#039; directory with variant calling VCF files with long and short reads, as well as VCF stats&lt;br /&gt;
*** {prefix}_shortreads.vcf.gz&lt;br /&gt;
*** {prefix}_shortreads.vcf.gz.stats&lt;br /&gt;
*** {prefix}_longreads.vcf.gz&lt;br /&gt;
*** {prefix}_longreads.vcf.gz.stats&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;genome_alignment&amp;#039;&amp;#039;&amp;#039; directory with results and figure from whole genome alignment&lt;br /&gt;
*** {prefix}_{species}.png&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;mapped&amp;#039;&amp;#039;&amp;#039; directory that contains the bam file with long reads mapped to the new assembly&lt;br /&gt;
** {prefix}_longreads.mapped.sorted.bam&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;busco_{prefix}_before_polish_&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;busco_{prefix}_after_polish&amp;#039;&amp;#039;&amp;#039; directories - contain busco results before and after polishing&lt;br /&gt;
** short_summary.specific.{lineage}.{prefix}_before_polish.txt&lt;br /&gt;
** short_summary.specific.{lineage}.{prefix}_after_polish.txt&amp;amp;quot;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;other_files&amp;#039;&amp;#039;&amp;#039; - directory containing other files created during the pipeline&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;assembly&amp;#039;&amp;#039;&amp;#039; - directory containing files created during the assembly step&lt;/div&gt;</summary>
		<author><name>Moiti001</name></author>
	</entry>
</feed>