<?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 mbf-fastq-processor documentation</title><link>https://tyberiusprime.github.io/fastqrab/v0.8.0/docs/reference/tag-steps/using/</link><description>Recent content in Tag Usage on mbf-fastq-processor documentation</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://tyberiusprime.github.io/fastqrab/v0.8.0/docs/reference/tag-steps/using/index.xml" rel="self" type="application/rss+xml"/><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.0/docs/reference/tag-steps/using/forgetalltags/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.0/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/v0.8.0/docs/reference/tag-steps/using/forgettag/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.0/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/v0.8.0/docs/reference/tag-steps/using/storetagincomment/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.0/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_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;mytag&amp;#34;&lt;/span> &lt;span style="color:#75715e"># if set, only store this tag&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 space.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.0/docs/reference/tag-steps/using/storetaginsequence/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.0/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>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;StoreTagInSequence&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/v0.8.0/docs/reference/tag-steps/using/storetaglocationincomment/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.0/docs/reference/tag-steps/using/storetaglocationincomment/</guid><description>&lt;h1 id="storetaglocationincomment">
 StoreTagLocationInComment
 &lt;a class="anchor" href="#storetaglocationincomment">#&lt;/a>
&lt;/h1>
&lt;p>Store the coordinates of a tag in the comment (start-end, 0-based, half-open).&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;StoreTagLocationInComment&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">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;/code>&lt;/pre>&lt;/div>&lt;p>This transformation stores the location coordinates of a tag as a comment in the read name, useful for tracking where tags were extracted from.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.0/docs/reference/tag-steps/using/storetagsintable/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.0/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;/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>
&lt;p>The output filename is constructed as &lt;code>{prefix}_{infix}.tsv&lt;/code> (or with custom separator if configured).&lt;/p>
&lt;h3 id="interaction-with-demultiplexing">
 Interaction with demultiplexing
 &lt;a class="anchor" href="#interaction-with-demultiplexing">#&lt;/a>
&lt;/h3>
&lt;p>When demultiplexing is used, separate TSV files are created for each barcode: &lt;code>{prefix}_{infix}_{barcode}.tsv&lt;/code>.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.0/docs/reference/tag-steps/using/storetaginfastq/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.0/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. If no infix is set, infix = tag={in_label}&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_location_tags&lt;/span> = [&lt;span style="color:#e6db74">&amp;#34;mytag&amp;#34;&lt;/span>] &lt;span style="color:#75715e"># (optional) tags to add location info for, defaults to [in_label]&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#75715e"># set to [] to disable location tracking&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 optionally stored in the read name as comments.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.0/docs/reference/tag-steps/using/hammingcorrect/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.0/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>&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;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/v0.8.0/fastqrab/v0.8.0/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></description></item></channel></rss>