<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://genome.sph.umich.edu/w/index.php?action=history&amp;feed=atom&amp;title=BamUtil%3A_explainFlags</id>
	<title>BamUtil: explainFlags - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://genome.sph.umich.edu/w/index.php?action=history&amp;feed=atom&amp;title=BamUtil%3A_explainFlags"/>
	<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=BamUtil:_explainFlags&amp;action=history"/>
	<updated>2026-11-14T04:58:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=BamUtil:_explainFlags&amp;diff=9316&amp;oldid=prev</id>
		<title>Mktrost: Created page with &quot;explainFlags Category:BAM Software Category:Software  = Overview of the &lt;code&gt;explainFlags&lt;/code&gt; function of &lt;code&gt;bamUtil&lt;/code&gt; = The &lt;code&gt;exp...&quot;</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=BamUtil:_explainFlags&amp;diff=9316&amp;oldid=prev"/>
		<updated>2014-01-06T23:01:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/Category:BamUtil&quot; title=&quot;Category:BamUtil&quot;&gt;explainFlags&lt;/a&gt; &lt;a href=&quot;/wiki/Category:BAM_Software&quot; title=&quot;Category:BAM Software&quot;&gt;Category:BAM Software&lt;/a&gt; &lt;a href=&quot;/wiki/Category:Software&quot; title=&quot;Category:Software&quot;&gt;Category:Software&lt;/a&gt;  = Overview of the &amp;lt;code&amp;gt;explainFlags&amp;lt;/code&amp;gt; function of &amp;lt;code&amp;gt;bamUtil&amp;lt;/code&amp;gt; = The &amp;lt;code&amp;gt;exp...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:BamUtil|explainFlags]]&lt;br /&gt;
[[Category:BAM Software]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
&lt;br /&gt;
= Overview of the &amp;lt;code&amp;gt;explainFlags&amp;lt;/code&amp;gt; function of &amp;lt;code&amp;gt;bamUtil&amp;lt;/code&amp;gt; =&lt;br /&gt;
The &amp;lt;code&amp;gt;explainFlags&amp;lt;/code&amp;gt; option on the [[bamUtil]] executable prints a text description of the specified flag value.&lt;br /&gt;
&lt;br /&gt;
This function was added in version 1.0.10.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
 ./bam explainFlags --hex|dec &amp;lt;flag&amp;gt; [--params]&lt;br /&gt;
&lt;br /&gt;
= Parameters =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	FlagValue Parameters:&lt;br /&gt;
		--hex     : Explain this hex flag&lt;br /&gt;
		--dec     : Explain this decimal flag&lt;br /&gt;
		--params  : print the parameter settings&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{PhoneHomeParamDesc}}&lt;br /&gt;
&lt;br /&gt;
== Required Parameters ==&lt;br /&gt;
=== Flag Value (&amp;lt;code&amp;gt;--hex&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--dec&amp;lt;/code&amp;gt;) ===&lt;br /&gt;
The flag to translate to text can be either a decimal integer or a hex number.&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;--dec&amp;lt;/code&amp;gt; to translate a decimal integer.&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;--hex&amp;lt;/code&amp;gt; to translate a hex number.  The hex number can be specified with or without the preceding &amp;quot;0x&amp;quot;, producing the same result either way.&lt;br /&gt;
&lt;br /&gt;
==Optional Parameters ==&lt;br /&gt;
{{paramsParameter}}&lt;br /&gt;
&lt;br /&gt;
{{PhoneHomeParameters}}&lt;br /&gt;
&lt;br /&gt;
= Return Value =&lt;br /&gt;
0 on success, non-0 on error.&lt;br /&gt;
&lt;br /&gt;
= Example Output =&lt;br /&gt;
== bin/bam explainFlags --hex 0x70C==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
0x70c (1804):&lt;br /&gt;
	unmapped&lt;br /&gt;
	mate unmapped&lt;br /&gt;
	unknown fragment&lt;br /&gt;
	secondary alignment&lt;br /&gt;
	fails QC checks&lt;br /&gt;
	duplicate&lt;br /&gt;
&lt;br /&gt;
Number of records read = 10&lt;br /&gt;
Number of records written = 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== bin/bam explainFlags --hex 704==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
0x704 (1796):&lt;br /&gt;
	unmapped&lt;br /&gt;
	unknown fragment&lt;br /&gt;
	secondary alignment&lt;br /&gt;
	fails QC checks&lt;br /&gt;
	duplicate&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== bin/bam explainFlags --dec 1804==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
0x70c (1804):&lt;br /&gt;
	unmapped&lt;br /&gt;
	mate unmapped&lt;br /&gt;
	unknown fragment&lt;br /&gt;
	secondary alignment&lt;br /&gt;
	fails QC checks&lt;br /&gt;
	duplicate&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mktrost</name></author>
	</entry>
</feed>