<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tag Usage on fastqrab documentation</title><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/</link><description>Recent content in Tag Usage on fastqrab documentation</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/index.xml" rel="self" type="application/rss+xml"/><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/ConcatTags/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/ConcatTags/</guid><description>&lt;h1 id="concattags">
 ConcatTags
 &lt;a class="anchor" href="#concattags">#&lt;/a>
&lt;/h1>
&lt;p>Concatenate multiple tags into a single tag.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-toml" data-lang="toml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># ignore_in_test&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>[[&lt;span style="color:#a6e22e">step&lt;/span>]]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">action&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;ConcatTags&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">in_labels&lt;/span> = [&lt;span style="color:#e6db74">&amp;#34;mytag&amp;#34;&lt;/span>, &lt;span style="color:#e6db74">&amp;#34;mytag2&amp;#34;&lt;/span>] &lt;span style="color:#75715e"># list of tags to concatenate (minimum 2)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">out_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;combined&amp;#34;&lt;/span> &lt;span style="color:#75715e"># output tag name&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">on_missing&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;merge_present&amp;#34;&lt;/span> &lt;span style="color:#75715e"># required: &amp;#34;merge_present&amp;#34; or &amp;#34;set_missing&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">separator&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;_&amp;#34;&lt;/span> &lt;span style="color:#75715e"># (optional) separator for string concatenation&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This transformation combines multiple tags into a single output tag. The behavior depends on the types of input tags and how missing tags are handled.&lt;/p>
&lt;h2 id="behavior-by-tag-type">
 Behavior by Tag Type
 &lt;a class="anchor" href="#behavior-by-tag-type">#&lt;/a>
&lt;/h2>
&lt;h3 id="location-tags-only">
 Location Tags Only
 &lt;a class="anchor" href="#location-tags-only">#&lt;/a>
&lt;/h3>
&lt;p>When all input tags are location tags (e.g., from &lt;code>ExtractIUPAC&lt;/code>, &lt;code>ExtractAnchor&lt;/code>), the transformation:&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/ForgetAllTags/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/ForgetAllTags/</guid><description>&lt;h1 id="forgetalltags">
 ForgetAllTags
 &lt;a class="anchor" href="#forgetalltags">#&lt;/a>
&lt;/h1>
&lt;p>Remove every tag currently stored for the read batch.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-toml" data-lang="toml">&lt;span style="display:flex;">&lt;span>[[&lt;span style="color:#a6e22e">step&lt;/span>]]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">action&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;ForgetAllTags&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Use this when you want to clear all tag labels before continuing.
It is handy after persisting tags to an external table, or before running
steps that must not see previously extracted metadata.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/ForgetTag/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/ForgetTag/</guid><description>&lt;h1 id="forgettag">
 ForgetTag
 &lt;a class="anchor" href="#forgettag">#&lt;/a>
&lt;/h1>
&lt;p>Forget about a tag. Useful if you want to store tags in a table, but not this one.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-toml" data-lang="toml">&lt;span style="display:flex;">&lt;span>[[&lt;span style="color:#a6e22e">step&lt;/span>]]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">action&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;ForgetTag&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">in_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;mytag&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This transformation removes a specified tag from the molecule&amp;rsquo;s tag collection.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/StoreTagBackInSequence/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/StoreTagBackInSequence/</guid><description>&lt;h1 id="storetagbackinsequence">
 StoreTagBackInSequence
 &lt;a class="anchor" href="#storetagbackinsequence">#&lt;/a>
&lt;/h1>
&lt;p>Store the tag&amp;rsquo;s replacement in the sequence, replacing the original sequence at that location.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-toml" data-lang="toml">&lt;span style="display:flex;">&lt;span>[[&lt;span style="color:#a6e22e">step&lt;/span>]]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">action&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;StoreTagBackInSequence&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">in_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;mytag&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">ignore_missing&lt;/span> = &lt;span style="color:#66d9ef">true&lt;/span> &lt;span style="color:#75715e"># if false, an error is raised if the tag is missing&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This transformation stores the tag&amp;rsquo;s value back into the sequence, replacing the original sequence at that location.&lt;/p>
&lt;p>Note that if this changes the length of the sequence, existing location tags will loose their location data (retaining their sequence though).&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/StoreTagInComment/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/StoreTagInComment/</guid><description>&lt;h1 id="storetagincomment">
 StoreTagInComment
 &lt;a class="anchor" href="#storetagincomment">#&lt;/a>
&lt;/h1>
&lt;p>Store currently present tags as comments on read names.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-toml" data-lang="toml">&lt;span style="display:flex;">&lt;span>[[&lt;span style="color:#a6e22e">step&lt;/span>]]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">action&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;StoreTagInComment&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">in_labels&lt;/span> = [&lt;span style="color:#e6db74">&amp;#34;mytag&amp;#34;&lt;/span>] &lt;span style="color:#75715e"># Store these tags. Not optional. May be a single string as well. Alias &amp;#39;in_label&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">segment&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;read1&amp;#34;&lt;/span> &lt;span style="color:#75715e"># Any of your input segments, or &amp;#39;All&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">comment_insert_char&lt;/span> = &lt;span style="color:#e6db74">&amp;#34; &amp;#34;&lt;/span> &lt;span style="color:#75715e"># (optional) char at which to insert comments&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">comment_separator&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;|&amp;#34;&lt;/span> &lt;span style="color:#75715e"># (optional) char to separate comments&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">region_separator&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;_&amp;#34;&lt;/span> &lt;span style="color:#75715e"># (optional) char to separate regions in a tag, if it has multiple&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Comments are key=value pairs, separated by &lt;code>comment_separator&lt;/code> which defaults to &amp;lsquo;|&amp;rsquo;.
They get inserted before the first &lt;code>comment_insert_char&lt;/code>, which defaults to
&lt;a href="https://tyberiusprime.github.io/fastqrab/main/fastqrab/main/docs/reference/input-section/#input-options">&lt;code>input.options.read_comment_char&lt;/code>&lt;/a>.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/StoreTagsInTable/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/StoreTagsInTable/</guid><description>&lt;h1 id="storetagsintable">
 StoreTagsInTable
 &lt;a class="anchor" href="#storetagsintable">#&lt;/a>
&lt;/h1>
&lt;p>Store the tags in a TSV table.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-toml" data-lang="toml">&lt;span style="display:flex;">&lt;span>[[&lt;span style="color:#a6e22e">step&lt;/span>]]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">action&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;StoreTagsInTable&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">infix&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;tags&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">compression&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;Raw&amp;#34;&lt;/span> &lt;span style="color:#75715e"># Raw, Gzip, Zstd&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">region_separator&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;_&amp;#34;&lt;/span> &lt;span style="color:#75715e"># (optional) char to separate regions in a tag, if it has multiple&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">in_labels&lt;/span> = [&lt;span style="color:#e6db74">&amp;#34;mytag&amp;#34;&lt;/span>, ] &lt;span style="color:#75715e"># Store just these tags. Optional, all tags store if not set&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">include_read_name&lt;/span> = &lt;span style="color:#66d9ef">true&lt;/span> &lt;span style="color:#75715e"># (optional) include the ReadName column. Default: true&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This transformation writes all current tags to a tab-separated values (TSV) table file for further analysis.&lt;/p></description></item><item><title>Store Tag In FASTQ</title><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/StoreTagInFastQ/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/StoreTagInFastQ/</guid><description>&lt;h1 id="storetaginfastq">
 StoreTagInFastQ
 &lt;a class="anchor" href="#storetaginfastq">#&lt;/a>
&lt;/h1>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-toml" data-lang="toml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># Store the content of a tag in a fastq file.&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># Needs a &amp;#39;location &amp;#39;tag&amp;#39;.&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># Can store other tags in the read name.&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># quality scores are set to &amp;#39;~&amp;#39;.&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># With demultiplexing: creates separate files per barcode&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> [[&lt;span style="color:#a6e22e">step&lt;/span>]]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">action&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;StoreTagInFastQ&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">in_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;mytag&amp;#34;&lt;/span> &lt;span style="color:#75715e"># tag to store. File name is derived with this as infix&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">format&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;Fastq&amp;#34;&lt;/span> &lt;span style="color:#75715e"># FASTQ / FASTA / BAm&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">compression&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;gz&amp;#34;&lt;/span> &lt;span style="color:#75715e"># or &amp;#34;zstd&amp;#34; | &amp;#34;none&amp;#34; # (optional) compression format, not if format == BAM&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">compression_level&lt;/span> = &lt;span style="color:#ae81ff">6&lt;/span> &lt;span style="color:#75715e"># (optional) compression level for gzip (0-9) or zstd (1-22)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> 					 &lt;span style="color:#75715e"># defaults: gzip=6, zstd=5&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">comment_tags&lt;/span> = []&lt;span style="color:#75715e"># e.g. [&amp;#34;other_tag&amp;#34;] # see StoreTagInComment&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">comment_insert_char&lt;/span> = &lt;span style="color:#e6db74">&amp;#39; &amp;#39;&lt;/span> &lt;span style="color:#75715e"># (optional) char at which to insert comments&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">comment_separator&lt;/span> = &lt;span style="color:#e6db74">&amp;#39;|&amp;#39;&lt;/span> &lt;span style="color:#75715e"># (optional) char to separate comments&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">region_separator&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;_&amp;#34;&lt;/span> &lt;span style="color:#75715e"># (optional) char to separate regions in a tag, if it has multiple&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Store the sequence of a tag in a fastq file,
with other tags (and virtual tags) optionally stored in the read name as comments.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/StoreTagInSequence/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/StoreTagInSequence/</guid><description>&lt;h1 id="storetaginsequence">
 StoreTagInSequence
 &lt;a class="anchor" href="#storetaginsequence">#&lt;/a>
&lt;/h1>
&lt;p>Insert a tag&amp;rsquo;s string value into a read sequence at the position defined by another location tag.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-toml" data-lang="toml">&lt;span style="display:flex;">&lt;span>[[&lt;span style="color:#a6e22e">step&lt;/span>]]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">action&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;StoreTagInSequence&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">in_value_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;mytag&amp;#34;&lt;/span> &lt;span style="color:#75715e"># location or string tag to insert&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">in_position_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;mytag2&amp;#34;&lt;/span> &lt;span style="color:#75715e"># location tag defining where to insert&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">anchor&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;Start&amp;#34;&lt;/span> &lt;span style="color:#75715e"># &amp;#34;Start&amp;#34;/&amp;#34;left&amp;#34; or &amp;#34;End&amp;#34;/&amp;#34;right&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="parameters">
 Parameters
 &lt;a class="anchor" href="#parameters">#&lt;/a>
&lt;/h2>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Parameter&lt;/th>
 &lt;th>Type&lt;/th>
 &lt;th>Required&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>in_value_label&lt;/code>&lt;/td>
 &lt;td>location or string tag&lt;/td>
 &lt;td>yes&lt;/td>
 &lt;td>Tag whose sequence is inserted into the read&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>in_position_label&lt;/code>&lt;/td>
 &lt;td>location tag&lt;/td>
 &lt;td>yes&lt;/td>
 &lt;td>Tag that defines the insertion position&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>anchor&lt;/code>&lt;/td>
 &lt;td>&lt;code>&amp;quot;Start&amp;quot;&lt;/code> / &lt;code>&amp;quot;left&amp;quot;&lt;/code> / &lt;code>&amp;quot;End&amp;quot;&lt;/code> / &lt;code>&amp;quot;right&amp;quot;&lt;/code>&lt;/td>
 &lt;td>yes&lt;/td>
 &lt;td>Whether to insert before the leftmost position (&lt;code>Start&lt;/code>) or after the rightmost end (&lt;code>End&lt;/code>) of the position tag&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h2 id="how-it-works">
 How it works
 &lt;a class="anchor" href="#how-it-works">#&lt;/a>
&lt;/h2>
&lt;p>&lt;code>in_position_label&lt;/code> is a location tag pointing to a region (or multiple regions) in a
read. The insertion point is derived from the anchor:&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/AssignToReference/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/AssignToReference/</guid><description>&lt;h1 id="assigntoreference">
 AssignToReference
 &lt;a class="anchor" href="#assigntoreference">#&lt;/a>
&lt;/h1>
&lt;p>Assign each query sequence to the closest entry in barcodes section,
using Hamming distance.&lt;/p>
&lt;p>( As opposed to &lt;a href="https://tyberiusprime.github.io/fastqrab/main/fastqrab/main/docs/redirects/HammingCorrect/">HammingCorrect&lt;/a>
which will correct to the closest barcode sequence).&lt;/p>
&lt;p>At start-up the step builds an efficient Hamming-distance index over the database. For every read,
the tag supplied in &lt;code>in_label&lt;/code> is looked up in the index and the name of the
closest matching reference entry is written to &lt;code>out_label&lt;/code> as a string tag.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/HammingCorrect/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/using/HammingCorrect/</guid><description>&lt;h1 id="hammingcorrect">
 HammingCorrect
 &lt;a class="anchor" href="#hammingcorrect">#&lt;/a>
&lt;/h1>
&lt;p>Correct a tag to one of a predefined set of &amp;lsquo;barcodes&amp;rsquo; using closest hamming distance.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-toml" data-lang="toml">&lt;span style="display:flex;">&lt;span>[[&lt;span style="color:#a6e22e">step&lt;/span>]]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">action&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;HammingCorrect&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">in_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;mytag&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">out_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;my_corrected_tag&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">barcodes&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;mybarcodelist&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">max_hamming_distance&lt;/span> = &lt;span style="color:#ae81ff">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">on_no_match&lt;/span> = &lt;span style="color:#e6db74">&amp;#39;remove&amp;#39;&lt;/span> &lt;span style="color:#75715e"># &amp;#39;remove&amp;#39;, &amp;#39;empty&amp;#39;, &amp;#39;keep&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">name_split_character&lt;/span> = &lt;span style="color:#e6db74">&amp;#39;|&amp;#39;&lt;/span> &lt;span style="color:#75715e"># optional&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>[&lt;span style="color:#a6e22e">barcodes&lt;/span>.&lt;span style="color:#a6e22e">mybarcodelist&lt;/span>]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;AAAA&amp;#34;&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;label_ignored&amp;#34;&lt;/span> &lt;span style="color:#75715e"># only read when demultiplexing &lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>on_no_match controls what happens if the tag cannot be corrected within the max_hamming_distance:&lt;/p>
&lt;ul>
&lt;li>remove: Remove the hit (location and sequence), useful for &lt;a href="https://tyberiusprime.github.io/fastqrab/main/fastqrab/main/docs/reference/filter-steps/FilterByTag/">FilterByTag&lt;/a> later.&lt;/li>
&lt;li>keep: Keep the original tag (and location)&lt;/li>
&lt;li>empty: Keep the original location, but set the tag to empty.&lt;/li>
&lt;/ul>
&lt;p>Note that hamming_correction removes the location information on tags if
they spanned more than one region. (This is an implementation limitation, not a conceptual one).&lt;/p></description></item></channel></rss>