<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Bamtools</id>
		<title>Bamtools - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://stab.st-andrews.ac.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Bamtools"/>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Bamtools&amp;action=history"/>
		<updated>2026-05-19T03:04:31Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?title=Bamtools&amp;diff=1759&amp;oldid=prev</id>
		<title>Rf at 15:32, 12 June 2017</title>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Bamtools&amp;diff=1759&amp;oldid=prev"/>
				<updated>2017-06-12T15:32:32Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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 style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 15:32, 12 June 2017&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-l21&quot; &gt;Line 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;bamtools expects an &amp;#039;&amp;#039;&amp;#039;-in&amp;#039;&amp;#039;&amp;#039; for each bam file presented to it. If the subcommand outputs a bam file, then &amp;#039;&amp;#039;&amp;#039;-out&amp;#039;&amp;#039;&amp;#039; witht he name of bam file (probably entirely the user&amp;#039;s choice). This situation is probably likely when using the marge command.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;bamtools expects an &amp;#039;&amp;#039;&amp;#039;-in&amp;#039;&amp;#039;&amp;#039; for each bam file presented to it. If the subcommand outputs a bam file, then &amp;#039;&amp;#039;&amp;#039;-out&amp;#039;&amp;#039;&amp;#039; witht he name of bam file (probably entirely the user&amp;#039;s choice). This situation is probably likely when using the marge command.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;==count ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;This subcommands counts the number of alignments. The answer is the addition of &amp;lt;code&amp;gt;samtools view -F 4 -c&amp;lt;/code&amp;gt; (number of mapped reads) and &amp;lt;code&amp;gt;samtools view -f 4 -c&amp;lt;/code&amp;gt; (number of unmapped reads).&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;== stats ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Output from the stats subcommand:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Output from the stats subcommand:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-bwik:diff:version:1.11a:oldid:1758:newid:1759 --&gt;
&lt;/table&gt;</summary>
		<author><name>Rf</name></author>	</entry>

	<entry>
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?title=Bamtools&amp;diff=1758&amp;oldid=prev</id>
		<title>Rf at 13:27, 12 June 2017</title>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Bamtools&amp;diff=1758&amp;oldid=prev"/>
				<updated>2017-06-12T13:27:10Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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 style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:27, 12 June 2017&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=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Introduction =&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Introduction =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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 associated tool list is as follows:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;Coded by Derek Barnett. &lt;/ins&gt;The associated tool list is as follows:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* convert&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* convert&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-l16&quot; &gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* stats&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* stats&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Introduction&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;= Usage =&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;BamTools provides &lt;/del&gt;a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;small&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;but powerful suite &lt;/del&gt;of command-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;line utility programs for manipulating&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and querying BAM files for data&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;bamtools expects an &amp;#039;&amp;#039;&amp;#039;-in&amp;#039;&amp;#039;&amp;#039; for each bam file presented to it. If the subcommand outputs &lt;/ins&gt;a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;bam file&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;then &amp;#039;&amp;#039;&amp;#039;-out&amp;#039;&amp;#039;&amp;#039; witht he name &lt;/ins&gt;of &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;bam file (probably entirely the user&amp;#039;s choice). This situation is probably likely when using the marge &lt;/ins&gt;command&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;Output from the stats subcommand:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; **********************************************&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; Stats for BAM file(s): &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; **********************************************&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; Total reads:&amp;#160; &amp;#160; &amp;#160;  3894332&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; Mapped reads:&amp;#160; &amp;#160; &amp;#160; 3733842&amp;#160; &amp;#160; &amp;#160; (95.8789%)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; Forward strand:&amp;#160; &amp;#160; 2019616&amp;#160; &amp;#160; &amp;#160; (51.8604%)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; Reverse strand:&amp;#160; &amp;#160; 1874716&amp;#160; &amp;#160; &amp;#160; (48.1396%)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; Failed QC:&amp;#160; &amp;#160; &amp;#160; &amp;#160;  0&amp;#160; &amp;#160; (0%)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; Duplicates:&amp;#160; &amp;#160; &amp;#160; &amp;#160; 0&amp;#160; &amp;#160; (0%)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; Paired-end reads:&amp;#160; 3894332&amp;#160; &amp;#160; &amp;#160; (100%)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; &amp;#039;Proper&lt;/ins&gt;-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pairs&amp;#039;:&amp;#160; &amp;#160; 3704193&amp;#160; &amp;#160; &amp;#160; (95.1175%)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; Both pairs mapped: 3719595&amp;#160; &amp;#160; &amp;#160; (95.513%)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; Read 1:&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; 1946761&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; Read 2:&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; 1947571&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt; Singletons:&amp;#160; &amp;#160; &amp;#160; &amp;#160; 14247&amp;#160; &amp;#160; &amp;#160; &amp;#160; (0&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;365839%)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;== regions of interest ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;* &amp;#039;&amp;#039;&amp;#039;-region &amp;lt;REGION&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Common Options&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;Many of the tools accept this option, which allows &lt;/ins&gt;a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;user to only consider alignments that overlap this region &lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;whether counting&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;filtering&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;merging&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;etc&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Input/Output&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;All BamTools utilities handle I/O operations using &lt;/del&gt;a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;common set of arguments. These include:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-in &amp;lt;BAM file&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The input BAM files&lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;s).&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;If a tool accepts multiple BAM files as input&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;each file gets its own &amp;quot;-in&amp;quot; option on the command&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;line. If no &amp;quot;-in&amp;quot; is provided&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the tool will attempt to read BAM data from stdin.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;To read a single BAM file&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;use a single &amp;quot;-in&amp;quot; option:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt; bamtools *tool* -in myData1&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;bam &lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;..ARGS...&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;To read multiple BAM files, use multiple &amp;quot;-in&amp;quot; options:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;�Derek Barnett – 22 March 2011&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt; bamtools *tool* -in myData1.bam -in myData2.bam ...ARGS...&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;To read from stdin (if supported), omit the &amp;quot;-in&amp;quot; option:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt; bamtools *tool* ...ARGS...&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-out &amp;lt;BAM file&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The output BAM file.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If a tool outputs a result BAM file, specify the filename using this option. If none is provided, the&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tool will typically write to stdout.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Note: Not all tools output BAM data (e.g. count, header, etc.)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-region &amp;lt;REGION&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;A region of interest. See below for accepted &amp;#039;REGION string&amp;#039; formats.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Many of the tools accept this option, which allows a user to only consider alignments that overlap&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;this region (whether counting, filtering, merging, etc.).&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;An alignment is considered to overlap a region if any part of the alignments intersects the left/right&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;An alignment is considered to overlap a region if any part of the alignments intersects the left/right&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;boundaries. Thus, a 50bp alignment at position 70 will overlap a region beginning at position 100.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;boundaries. Thus, a 50bp alignment at position 70 will overlap a region beginning at position 100.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rf</name></author>	</entry>

	<entry>
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?title=Bamtools&amp;diff=1757&amp;oldid=prev</id>
		<title>Rf: Created page with &quot;= Introduction =  The associated tool list is as follows:  * convert * count * coverage * filter * header * index * merge * random * revert * sort * split * stats  Introductio...&quot;</title>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Bamtools&amp;diff=1757&amp;oldid=prev"/>
				<updated>2017-06-12T12:07:16Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Introduction =  The associated tool list is as follows:  * convert * count * coverage * filter * header * index * merge * random * revert * sort * split * stats  Introductio...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The associated tool list is as follows:&lt;br /&gt;
&lt;br /&gt;
* convert&lt;br /&gt;
* count&lt;br /&gt;
* coverage&lt;br /&gt;
* filter&lt;br /&gt;
* header&lt;br /&gt;
* index&lt;br /&gt;
* merge&lt;br /&gt;
* random&lt;br /&gt;
* revert&lt;br /&gt;
* sort&lt;br /&gt;
* split&lt;br /&gt;
* stats&lt;br /&gt;
&lt;br /&gt;
Introduction&lt;br /&gt;
BamTools provides a small, but powerful suite of command-line utility programs for manipulating&lt;br /&gt;
and querying BAM files for data.&lt;br /&gt;
&lt;br /&gt;
Common Options&lt;br /&gt;
Input/Output&lt;br /&gt;
All BamTools utilities handle I/O operations using a common set of arguments. These include:&lt;br /&gt;
-in &amp;lt;BAM file&amp;gt;&lt;br /&gt;
The input BAM files(s).&lt;br /&gt;
If a tool accepts multiple BAM files as input, each file gets its own &amp;quot;-in&amp;quot; option on the command&lt;br /&gt;
line. If no &amp;quot;-in&amp;quot; is provided, the tool will attempt to read BAM data from stdin.&lt;br /&gt;
To read a single BAM file, use a single &amp;quot;-in&amp;quot; option:&lt;br /&gt;
&amp;gt; bamtools *tool* -in myData1.bam ...ARGS...&lt;br /&gt;
To read multiple BAM files, use multiple &amp;quot;-in&amp;quot; options:&lt;br /&gt;
&lt;br /&gt;
�Derek Barnett – 22 March 2011&lt;br /&gt;
&amp;gt; bamtools *tool* -in myData1.bam -in myData2.bam ...ARGS...&lt;br /&gt;
To read from stdin (if supported), omit the &amp;quot;-in&amp;quot; option:&lt;br /&gt;
&amp;gt; bamtools *tool* ...ARGS...&lt;br /&gt;
-out &amp;lt;BAM file&amp;gt;&lt;br /&gt;
The output BAM file.&lt;br /&gt;
If a tool outputs a result BAM file, specify the filename using this option. If none is provided, the&lt;br /&gt;
tool will typically write to stdout.&lt;br /&gt;
Note: Not all tools output BAM data (e.g. count, header, etc.)&lt;br /&gt;
-region &amp;lt;REGION&amp;gt;&lt;br /&gt;
A region of interest. See below for accepted &amp;#039;REGION string&amp;#039; formats.&lt;br /&gt;
Many of the tools accept this option, which allows a user to only consider alignments that overlap&lt;br /&gt;
this region (whether counting, filtering, merging, etc.).&lt;br /&gt;
An alignment is considered to overlap a region if any part of the alignments intersects the left/right&lt;br /&gt;
boundaries. Thus, a 50bp alignment at position 70 will overlap a region beginning at position 100.&lt;br /&gt;
REGION string format: A proper REGION string can be formatted like any of the following&lt;br /&gt;
examples (where &amp;#039;chr1&amp;#039; is the name of a reference (not its ID)and &amp;#039;&amp;#039; is any valid integer position&lt;br /&gt;
within that reference.) :&lt;br /&gt;
-region chr1&lt;br /&gt;
only alignments on (entire) reference &amp;#039;chr1&amp;#039;&lt;br /&gt;
-region chr1:500&lt;br /&gt;
only alignments overlapping the region starting at chr1:500 and continuing to the end of chr1&lt;br /&gt;
-region chr1:500..1000&lt;br /&gt;
only alignments overlapping the region starting at chr1:500 and continuing to chr1:1000&lt;br /&gt;
-region chr1:500..chr3:750&lt;br /&gt;
only alignments overlapping the region starting at chr1:500 and continuing to chr3:750. This&lt;br /&gt;
&amp;#039;spanning&amp;#039; region assumes that the reference specified as the right boundary will occur somewhere&lt;br /&gt;
in the file after the left boundary. On a sorted BAM, a REGION of &amp;#039;chr4:500..chr2:1500&amp;#039; will produce&lt;br /&gt;
undefined (incorrect) results. So don&amp;#039;t do it. :)&lt;br /&gt;
Note: Most of the tools that accept a REGION string will perform without an index file, but typically&lt;br /&gt;
at great cost to performance (having to plow through the entire file until the region of interest is&lt;br /&gt;
found). For optimum speed, be sure that index files are available for your data.&lt;br /&gt;
&lt;br /&gt;
�Derek Barnett – 22 March 2011&lt;br /&gt;
&lt;br /&gt;
-forceCompression&lt;br /&gt;
Force compression of BAM output.&lt;br /&gt;
When tools are piped together (see details below), the default behavior is to turn off compression.&lt;br /&gt;
This can greatly increase performance when the data does not have to be constantly&lt;br /&gt;
decompressed and recompressed. This option is ignored any time an output BAM file is specified&lt;br /&gt;
using &amp;quot;-out&amp;quot;.&lt;br /&gt;
Piping&lt;br /&gt;
Many of the tools in BamTools can be chained together by piping. Any tool that accepts stdin can&lt;br /&gt;
be piped into, and any that can output stdout can be piped from. For example:&lt;br /&gt;
&amp;gt; bamtools filter -in data1.bam -in data2.bam -mapQuality &amp;quot;&amp;gt;50&amp;quot; | bamtools count&lt;br /&gt;
will give a count of all alignments in your 2 BAM files with a mapQuality of greater than 50. And of&lt;br /&gt;
course, any tool writing to stdout can be piped into other utilities.&lt;br /&gt;
&lt;br /&gt;
The Tools&lt;br /&gt;
Fix formatting and add more details for each tool.&lt;br /&gt;
convert&lt;br /&gt;
Description: converts BAM to a number of other formats&lt;br /&gt;
Currently supported output formats ( BAM -&amp;gt; X )&lt;br /&gt;
&lt;br /&gt;
Format type&lt;br /&gt;
&lt;br /&gt;
FORMAT&lt;br /&gt;
(command-line argument)&lt;br /&gt;
&lt;br /&gt;
BED&lt;br /&gt;
&lt;br /&gt;
bed&lt;br /&gt;
&lt;br /&gt;
FASTA&lt;br /&gt;
&lt;br /&gt;
fasta&lt;br /&gt;
&lt;br /&gt;
FASTQ&lt;br /&gt;
&lt;br /&gt;
fastq&lt;br /&gt;
&lt;br /&gt;
JSON&lt;br /&gt;
&lt;br /&gt;
json&lt;br /&gt;
&lt;br /&gt;
Pileup&lt;br /&gt;
&lt;br /&gt;
pileup&lt;br /&gt;
&lt;br /&gt;
SAM&lt;br /&gt;
&lt;br /&gt;
sam&lt;br /&gt;
&lt;br /&gt;
YAML&lt;br /&gt;
&lt;br /&gt;
yaml&lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&amp;gt; bamtools convert -format json -in myData.bam -out myData.json&lt;br /&gt;
&lt;br /&gt;
�Derek Barnett – 22 March 2011&lt;br /&gt;
Pileup Options have no effect on formats other than &amp;quot;pileup&amp;quot;&lt;br /&gt;
SAM Options have no effect on formats other than &amp;quot;sam&amp;quot;&lt;br /&gt;
count&lt;br /&gt;
Description: prints number of alignments in BAM file(s).&lt;br /&gt;
coverage&lt;br /&gt;
Description: prints coverage data for a single BAM file.&lt;br /&gt;
filter&lt;br /&gt;
Description: filters BAM file(s).&lt;br /&gt;
In addition to the command line options, the BamTools filter tool allows you to use an external filter&lt;br /&gt;
script to define complex filtering behavior. This script uses what I&amp;#039;m calling properties, filters, and&lt;br /&gt;
a rule - all implemented in a JSON syntax.&lt;br /&gt;
Properties&lt;br /&gt;
A &amp;#039;property&amp;#039; is a typical JSON entry of the form:&lt;br /&gt;
&amp;quot;propertyName&amp;quot; : &amp;quot;value&amp;quot;&lt;br /&gt;
Here are the property names that BamTools will recognize:&lt;br /&gt;
alignmentFlag&lt;br /&gt;
cigar&lt;br /&gt;
insertSize&lt;br /&gt;
isDuplicate&lt;br /&gt;
isFailedQC&lt;br /&gt;
isFirstMate&lt;br /&gt;
isMapped&lt;br /&gt;
isMateMapped&lt;br /&gt;
isMateReverseStrand&lt;br /&gt;
isPaired&lt;br /&gt;
isPrimaryAlignment&lt;br /&gt;
isProperPair&lt;br /&gt;
isReverseStrand&lt;br /&gt;
isSecondMate&lt;br /&gt;
mapQuality&lt;br /&gt;
matePosition&lt;br /&gt;
mateReference&lt;br /&gt;
name&lt;br /&gt;
position&lt;br /&gt;
queryBases&lt;br /&gt;
&lt;br /&gt;
�Derek Barnett – 22 March 2011&lt;br /&gt;
reference&lt;br /&gt;
tag&lt;br /&gt;
For properties with boolean values, use the words &amp;quot;true&amp;quot; or &amp;quot;false&amp;quot;.&lt;br /&gt;
For example,&lt;br /&gt;
&amp;quot;isMapped&amp;quot; : &amp;quot;true&amp;quot;&lt;br /&gt;
will keep only alignments that are flagged as &amp;#039;mapped&amp;#039;.&lt;br /&gt;
For properties with numeric values, use the desired number with optional comparison operators&lt;br /&gt;
( &amp;gt;, &amp;gt;=, &amp;lt;, &amp;lt;=, !). For example,&lt;br /&gt;
&amp;quot;mapQuality&amp;quot; : &amp;quot;&amp;gt;=75&amp;quot;&lt;br /&gt;
will keep only alignments with mapQuality greater than or equal to 75.&lt;br /&gt;
If you&amp;#039;re familiar with JSON, you know that integers can be bare (without quotes). However, if you&lt;br /&gt;
use a comparison operator, be sure to enclose in quotes.&lt;br /&gt;
For string-based properties, the above operators are available. In addition, you can also use some&lt;br /&gt;
basic pattern-matching operators, using the &amp;#039;*&amp;#039; character as a wildcard. For example,&lt;br /&gt;
&amp;quot;reference&amp;quot; : &amp;quot;ALU*&amp;quot; // reference starts-with &amp;#039;ALU&amp;#039;&lt;br /&gt;
&amp;quot;name&amp;quot; : &amp;quot;*foo&amp;quot;&lt;br /&gt;
// name ends-with &amp;#039;foo&amp;#039;&lt;br /&gt;
&amp;quot;cigar&amp;quot; : &amp;quot;*D*&amp;quot;&lt;br /&gt;
// cigar contains a &amp;#039;D&amp;#039; anywhere&lt;br /&gt;
Additional notes:&lt;br /&gt;
The reference property refers to the reference name, not the BAM reference numeric ID.&lt;br /&gt;
The tag property has an extra layer, so that the syntax will look like this:&lt;br /&gt;
&amp;quot;tag&amp;quot; : &amp;quot;XX:value&amp;quot;&lt;br /&gt;
where XX is the 2-letter SAM/BAM tag and value is, well, the value. Comparison operators can still&lt;br /&gt;
apply to values, so tag properties of:&lt;br /&gt;
&amp;quot;tag&amp;quot; : &amp;quot;AS:&amp;gt;60&amp;quot;&lt;br /&gt;
&amp;quot;tag&amp;quot; : &amp;quot;RG:foo*&amp;quot;&lt;br /&gt;
are perfectly valid.&lt;br /&gt;
&lt;br /&gt;
�Derek Barnett – 22 March 2011&lt;br /&gt;
Filters&lt;br /&gt;
A &amp;#039;filter&amp;#039; is a JSON container of properties that will be AND-ed together. For example,&lt;br /&gt;
{&lt;br /&gt;
&amp;quot;reference&amp;quot; : &amp;quot;chr1&amp;quot;,&lt;br /&gt;
&amp;quot;mapQuality&amp;quot; : &amp;quot;&amp;gt;50&amp;quot;,&lt;br /&gt;
&amp;quot;tag&amp;quot; : &amp;quot;NM:&amp;lt;4&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
would result in an output BAM file containing only alignments from chr1 with a mapQuality &amp;gt;50&lt;br /&gt;
and edit distance of less than 4.&lt;br /&gt;
A single, unnamed filter like this is the minimum necessary for a complete filter script. Save this&lt;br /&gt;
file and use as the -script parameter and you should be all set.&lt;br /&gt;
Moving on to more potent filtering...&lt;br /&gt;
You can also define multiple filters. To do so, you just need to use the &amp;quot;filters&amp;quot; keyword along with&lt;br /&gt;
JSON array syntax, like this:&lt;br /&gt;
{&lt;br /&gt;
&amp;quot;filters&amp;quot; :&lt;br /&gt;
[&lt;br /&gt;
{&lt;br /&gt;
&amp;quot;reference&amp;quot; : &amp;quot;chr1&amp;quot;,&lt;br /&gt;
&amp;quot;mapQuality&amp;quot; : &amp;quot;&amp;gt;50&amp;quot;&lt;br /&gt;
},&lt;br /&gt;
{&lt;br /&gt;
&amp;quot;reference&amp;quot; : &amp;quot;chr1&amp;quot;,&lt;br /&gt;
&amp;quot;isReverseStrand&amp;quot; : &amp;quot;true&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
]&lt;br /&gt;
}&lt;br /&gt;
These filters will be (inclusive) OR-ed together by default. So you&amp;#039;d get a resulting BAM with only&lt;br /&gt;
alignments from chr1 that had either mapQuality &amp;gt;50 or on the reverse strand (or both).&lt;br /&gt;
Rule&lt;br /&gt;
Alternatively to anonymous OR-ed filters, you can also provide what I&amp;#039;ve called a &amp;quot;rule&amp;quot;. By giving&lt;br /&gt;
each filter an &amp;quot;id&amp;quot;, using this &amp;quot;rule&amp;quot; keyword you can describe boolean relationships between your&lt;br /&gt;
filter sets.&lt;br /&gt;
&lt;br /&gt;
�Derek Barnett – 22 March 2011&lt;br /&gt;
Available rule operators:&lt;br /&gt;
&amp;amp; // and&lt;br /&gt;
| // or&lt;br /&gt;
! // not&lt;br /&gt;
This might sound a little fuzzy at this point, so let&amp;#039;s get back to an example:&lt;br /&gt;
{&lt;br /&gt;
&amp;quot;filters&amp;quot; : [&lt;br /&gt;
{ &amp;quot;id&amp;quot; : &amp;quot;inAnyErrorReadGroup&amp;quot;,&lt;br /&gt;
&amp;quot;tag&amp;quot; : &amp;quot;RG:ERR*&amp;quot;&lt;br /&gt;
},&lt;br /&gt;
{ &amp;quot;id&amp;quot; : &amp;quot;highMapQuality&amp;quot;,&lt;br /&gt;
&amp;quot;mapQuality” : “&amp;gt;=75”&lt;br /&gt;
},&lt;br /&gt;
{ &amp;quot;id&amp;quot; : &amp;quot;bothMatesMapped&amp;quot;,&lt;br /&gt;
&amp;quot;isMapped&amp;quot; : &amp;quot;true&amp;quot;,&lt;br /&gt;
&amp;quot;isMateMapped&amp;quot; : &amp;quot;true&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
],&lt;br /&gt;
&amp;quot;rule&amp;quot; : &amp;quot; !inAnyErrorReadGroup &amp;amp; (highMapQuality | bothMatesMapped) &amp;quot;&lt;br /&gt;
}&lt;br /&gt;
In this case, we would only retain aligments that had high map quality OR both mates mapped&lt;br /&gt;
(inclusive), while excluding all alignments from read groups that start with “ERR”.&lt;br /&gt;
header&lt;br /&gt;
Description: prints header from BAM file(s).&lt;br /&gt;
index&lt;br /&gt;
Description: creates index for BAM file.&lt;br /&gt;
merge&lt;br /&gt;
Description: merges multiple BAM files into one.&lt;br /&gt;
random&lt;br /&gt;
Description: grab a random subset of alignments.&lt;br /&gt;
revert&lt;br /&gt;
Description: removes duplicate marks and restores original (non-recalibrated) base qualities.&lt;br /&gt;
&lt;br /&gt;
�Derek Barnett – 22 March 2011&lt;br /&gt;
sort&lt;br /&gt;
Description: sorts a BAM file.&lt;br /&gt;
split&lt;br /&gt;
Description: splits a BAM file on user-specified property, creating a new BAM output file for each&lt;br /&gt;
value found.&lt;br /&gt;
stats&lt;br /&gt;
Description: prints general alignment statistics.&lt;br /&gt;
&lt;br /&gt;
Conclusion&lt;br /&gt;
This document is a work-in-progress, more details will be added for most of the tools. Feel free to&lt;br /&gt;
contact me if there is anything specific you would like to see added to this tutorial.&lt;br /&gt;
Thanks.&lt;br /&gt;
Derek Barnett&lt;br /&gt;
Marth Lab, Boston College&lt;br /&gt;
derekwbarnett@gmail.com&lt;br /&gt;
&lt;br /&gt;
�&lt;/div&gt;</summary>
		<author><name>Rf</name></author>	</entry>

	</feed>