<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>mbf-fastq-processor documentation</title><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/</link><description>Recent content on mbf-fastq-processor documentation</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/index.xml" rel="self" type="application/rss+xml"/><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/postfix/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/postfix/</guid><description>&lt;h1 id="postfix">
 Postfix
 &lt;a class="anchor" href="#postfix">#&lt;/a>
&lt;/h1>
&lt;p>Add DNA to the end of read sequences.&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;Postfix&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">seq&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;agtc&amp;#34;&lt;/span> &lt;span style="color:#75715e"># DNA sequence to add at end of reads. Checked to be agtcn&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">qual&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;IIII&amp;#34;&lt;/span> &lt;span style="color:#75715e"># same length as seq. Your responsibility to have valid phred values&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&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This transformation adds a specified sequence and corresponding quality scores to the end of reads.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/prefix/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/prefix/</guid><description>&lt;h1 id="prefix">
 Prefix
 &lt;a class="anchor" href="#prefix">#&lt;/a>
&lt;/h1>
&lt;p>Add text to the beginning of read sequences.&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;Prefix&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">seq&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;agtTCAa&amp;#34;&lt;/span> &lt;span style="color:#75715e"># DNA sequence to add at beginning of reads. Checked to be agtcn&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">qual&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;IIIBIII&amp;#34;&lt;/span> &lt;span style="color:#75715e"># same length as seq. Your responsibility to have valid phred values&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&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This transformation adds a specified sequence and corresponding quality scores to the beginning of reads.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/replacetagwithletter/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/replacetagwithletter/</guid><description>&lt;h1 id="replacetagwithletter">
 ReplaceTagWithLetter
 &lt;a class="anchor" href="#replacetagwithletter">#&lt;/a>
&lt;/h1>
&lt;p>Replace sequence bases in tagged regions with a specified letter.&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;ReplaceTagWithLetter&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 containing regions to replace&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">letter&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;N&amp;#34;&lt;/span> &lt;span style="color:#75715e"># Replacement character (defaults to &amp;#39;N&amp;#39;)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This transformation replaces all sequence bases within the regions defined by a tag with a specified replacement character. Quality scores are preserved unchanged. This is commonly used to mask low-quality regions as &amp;lsquo;N&amp;rsquo; characters.&lt;/p>
&lt;h2 id="parameters">
 Parameters
 &lt;a class="anchor" href="#parameters">#&lt;/a>
&lt;/h2>
&lt;ul>
&lt;li>&lt;code>in_label&lt;/code>: Name of the tag containing regions to be replaced&lt;/li>
&lt;li>&lt;code>letter&lt;/code>: Single character to replace bases with (defaults to &amp;lsquo;N&amp;rsquo; if not specified)&lt;/li>
&lt;/ul>
&lt;h2 id="example-use-cases">
 Example Use Cases
 &lt;a class="anchor" href="#example-use-cases">#&lt;/a>
&lt;/h2>
&lt;ul>
&lt;li>Mask low-quality bases identified by &lt;a href="https://tyberiusprime.github.io/fastqrab/v0.8.1/fastqrab/v0.8.1/docs/reference/tag-steps/extract/extractregionsoflowquality/">ExtractRegionsOfLowQuality&lt;/a>&lt;/li>
&lt;li>Replace specific sequence motifs identified by other extraction steps&lt;/li>
&lt;li>Convert tagged regions to ambiguous bases for downstream analysis&lt;/li>
&lt;/ul>
&lt;p>The tag must have been created by a previous extraction step and must contain location information.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/trimattag/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/trimattag/</guid><description>&lt;h1 id="trimattag">
 TrimAtTag
 &lt;a class="anchor" href="#trimattag">#&lt;/a>
&lt;/h1>
&lt;p>Trim the read at the position of a 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;TrimAtTag&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">direction&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;Start&amp;#34;&lt;/span> &lt;span style="color:#75715e"># or &amp;#34;End&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">keep_tag&lt;/span> = &lt;span style="color:#66d9ef">false&lt;/span> &lt;span style="color:#75715e"># if true, the tag sequence is kept in the read&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This transformation trims the read at the position where a tag was found.&lt;/p>
&lt;p>The &lt;code>direction&lt;/code> parameter determines whether to trim from the start or end of the tag,
and &lt;code>keep_tag&lt;/code> determines whether the tag sequence itself is retained.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/lowercasetag/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/lowercasetag/</guid><description>&lt;h1 id="lowercasetag">
 LowercaseTag
 &lt;a class="anchor" href="#lowercasetag">#&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:#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;LowercaseTag&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>Replace the sequence of the tag with it&amp;rsquo;s lowercase version.&lt;/p>
&lt;p>Follow with &lt;a href="https://tyberiusprime.github.io/fastqrab/v0.8.1/fastqrab/v0.8.1/docs/reference/tag-steps/using/storetaginsequence/">StoreTagInSequence&lt;/a> to apply the lowercase tag back onto the read.&lt;/p>
&lt;p>See &lt;a href="https://tyberiusprime.github.io/fastqrab/v0.8.1/fastqrab/v0.8.1/docs/reference/tag-steps/">the tag section&lt;/a> for tag generation.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/lowercasesequence/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/lowercasesequence/</guid><description>&lt;h1 id="lowercasesequence">
 LowercaseSequence
 &lt;a class="anchor" href="#lowercasesequence">#&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:#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;LowercaseSequence&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;/code>&lt;/pre>&lt;/div>&lt;p>Convert the complete sequence to lowercase.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/uppercasesequence/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/uppercasesequence/</guid><description>&lt;h1 id="uppercasesequence">
 UppercaseSequence
 &lt;a class="anchor" href="#uppercasesequence">#&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:#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;UppercaseSequence&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;/code>&lt;/pre>&lt;/div>&lt;p>Convert the complete sequence to uppercase.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/uppercasetag/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/uppercasetag/</guid><description>&lt;h1 id="uppercasetag">
 UppercaseTag
 &lt;a class="anchor" href="#uppercasetag">#&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:#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;UppercaseTag&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>Replace the sequence of the tag with its uppercase version.&lt;/p>
&lt;p>Follow with &lt;a href="https://tyberiusprime.github.io/fastqrab/v0.8.1/fastqrab/v0.8.1/docs/reference/tag-steps/using/storetaginsequence/">StoreTagInSequence&lt;/a> to apply the uppercase tag back onto the read.&lt;/p>
&lt;p>See &lt;a href="https://tyberiusprime.github.io/fastqrab/v0.8.1/fastqrab/v0.8.1/docs/reference/tag-steps/">the tag section&lt;/a> for tag generation.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/convertquality/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/convertquality/</guid><description>&lt;h1 id="convertquality">
 ConvertQuality
 &lt;a class="anchor" href="#convertquality">#&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:#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;ConvertQuality&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">from&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;Illumina1.8&amp;#34;&lt;/span>&lt;span style="color:#75715e"># Illumin1.8|Illumina1.3|Sanger|Solexa&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">to&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;Solexa&amp;#34;&lt;/span> &lt;span style="color:#75715e"># same range as from. Illumina1.8 is an alias for Sanger&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Convert quality scores between various encodings / meanings.&lt;/p>
&lt;p>See &lt;a href="https://en.wikipedia.org/wiki/Phred_quality_score">https://en.wikipedia.org/wiki/Phred_quality_score&lt;/a>&lt;/p>
&lt;p>Will error if from == to.&lt;/p>
&lt;p>This step introduces a &lt;a href="https://tyberiusprime.github.io/fastqrab/v0.8.1/fastqrab/v0.8.1/docs/reference/validation-steps/validatequality/">ValidateQuality&lt;/a> step automatically before it.&lt;/p>
&lt;h2 id="corresponding-options-in-other-software">
 Corresponding options in other software
 &lt;a class="anchor" href="#corresponding-options-in-other-software">#&lt;/a>
&lt;/h2>
&lt;ul>
&lt;li>trimmomatic TOPHRED33&lt;/li>
&lt;/ul></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/cutend/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/cutend/</guid><description>&lt;h1 id="cutend">
 CutEnd
 &lt;a class="anchor" href="#cutend">#&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:#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;CutEnd&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">n&lt;/span> = &lt;span style="color:#ae81ff">5&lt;/span> &lt;span style="color:#75715e"># positive integer, cut n nucleotides from the end of the read&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 (default: read1)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Cut nucleotides from the end of the read.&lt;/p>
&lt;p>May produce empty reads; filter those with &lt;a href="https://tyberiusprime.github.io/fastqrab/v0.8.1/fastqrab/v0.8.1/docs/reference/filter-steps/filterempty/">FilterEmpty&lt;/a>.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/cutstart/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/cutstart/</guid><description>&lt;h3 id="cutstart">
 CutStart
 &lt;a class="anchor" href="#cutstart">#&lt;/a>
&lt;/h3>
&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;CutStart&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">n&lt;/span> = &lt;span style="color:#ae81ff">5&lt;/span> &lt;span style="color:#75715e"># positive integer, cut n nucleotides from the start of the read&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&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Cut nucleotides from the start of the read.&lt;/p>
&lt;p>May produce empty reads; filter those with &lt;a href="https://tyberiusprime.github.io/fastqrab/v0.8.1/fastqrab/v0.8.1/docs/reference/filter-steps/filterempty/">FilterEmpty&lt;/a>.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/extracttoname/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/extracttoname/</guid><description>&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;ExtractRegions&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">regions&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:#a6e22e">start&lt;/span> = &lt;span style="color:#ae81ff">0&lt;/span>, &lt;span style="color:#a6e22e">length&lt;/span> = &lt;span style="color:#ae81ff">8&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:#a6e22e">start&lt;/span> = &lt;span style="color:#ae81ff">12&lt;/span>, &lt;span style="color:#a6e22e">length&lt;/span> = &lt;span style="color:#ae81ff">4&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">out_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;umi&amp;#34;&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) str, what to put between the regions, defaults to &amp;#39;_&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">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;umi&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Extract a sequence from the read and place it in the read name&amp;rsquo;s comment section,
so a (space separated) &amp;lsquo;key=value&amp;rsquo; pair is added to the read name.&lt;/p>
&lt;p>Supports multiple region-extraction.&lt;/p>
&lt;p>See &lt;a href="https://tyberiusprime.github.io/fastqrab/v0.8.1/fastqrab/v0.8.1/docs/reference/tag-steps/">the tag section&lt;/a> for more tag generation options.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/head/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/head/</guid><description>&lt;h1 id="head">
 Head
 &lt;a class="anchor" href="#head">#&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:#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;Head&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">n&lt;/span> = &lt;span style="color:#ae81ff">1000&lt;/span> &lt;span style="color:#75715e"># positive integer, number of reads to keep&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Output just the first n molecules.&lt;/p>
&lt;h3 id="demultiplex-interaction">
 Demultiplex interaction
 &lt;a class="anchor" href="#demultiplex-interaction">#&lt;/a>
&lt;/h3>
&lt;p>If present after a demultiplex step, includes n molecules in each stream.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/mergereads/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/mergereads/</guid><description>&lt;h1 id="mergereads">
 MergeReads
 &lt;a class="anchor" href="#mergereads">#&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:#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;MergeReads&amp;#34;&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">segment1&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;read1&amp;#34;&lt;/span> &lt;span style="color:#75715e"># First segment&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">segment2&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;read2&amp;#34;&lt;/span> &lt;span style="color:#75715e"># Second segment&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">reverse_complement_segment2&lt;/span> = &lt;span style="color:#66d9ef">true&lt;/span> &lt;span style="color:#75715e"># Whether to reverse complement segment2 (suggested: true)&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">algorithm&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;FastpSeemsWeird&amp;#34;&lt;/span> &lt;span style="color:#75715e"># Algorithm: &amp;#34;fastp_seems_weird&amp;#34;. Further algorithms are in planning&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">min_overlap&lt;/span> = &lt;span style="color:#ae81ff">30&lt;/span> &lt;span style="color:#75715e"># Minimum overlap length required&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">max_mismatch_rate&lt;/span> = &lt;span style="color:#ae81ff">0.2&lt;/span> &lt;span style="color:#75715e"># Maximum allowed mismatch rate (0.0-1.0) (suggested: 0.2)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">max_mismatch_count&lt;/span> = &lt;span style="color:#ae81ff">5&lt;/span> &lt;span style="color:#75715e"># Maximum allowed absolute mismatches (suggested: 5)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">no_overlap_strategy&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;as_is&amp;#34;&lt;/span> &lt;span style="color:#75715e"># What to do when no overlap found: &amp;#34;as_is&amp;#34; or &amp;#34;concatenate&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">concatenate_spacer&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;NNNN&amp;#34;&lt;/span> &lt;span style="color:#75715e"># (optional) Required if no_overlap_strategy = &amp;#34;concatenate&amp;#34;. Spacer sequence to insert between reads&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">spacer_quality_char&lt;/span> = &lt;span style="color:#ae81ff">33&lt;/span> &lt;span style="color:#75715e"># (optional) Quality score for spacer bases (suggested: 33 = Phred quality 0)&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:#75715e"># out_label = &amp;#34;merged&amp;#34; # (optional) output Tag label for boolean merge status&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Merges paired-end reads from two segments by detecting their overlap and resolving mismatches.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/rename/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/rename/</guid><description>&lt;h3 id="rename">
 Rename
 &lt;a class="anchor" href="#rename">#&lt;/a>
&lt;/h3>
&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;Rename&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">search&lt;/span> = &lt;span style="color:#e6db74">&amp;#39;(.)/([1/2])$&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">replacement&lt;/span> = &lt;span style="color:#e6db74">&amp;#39;$1 $2&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Apply a regular expression based renaming to the reads.&lt;/p>
&lt;p>It is always applied to all available segments (read1, read2, index1, index2).&lt;/p>
&lt;p>The example above fixes old school MGI reads for downstream processing, like
fastp&amp;rsquo;s &amp;lsquo;&amp;ndash;fix_mgi&amp;rsquo; option&lt;/p>
&lt;p>You can use the full power of the &lt;a href="https://docs.rs/regex/latest/regex/">rust regex crate&lt;/a> here.&lt;/p>
&lt;h4 id="read-index-placeholder">
 Read index placeholder
 &lt;a class="anchor" href="#read-index-placeholder">#&lt;/a>
&lt;/h4>
&lt;p>After the regex replacement runs, the special literal &lt;code>{{READ_INDEX}}&lt;/code> is expanded to
the running 1-based index of each logical read. When multiple segments are present
(for example &lt;code>read1&lt;/code>/&lt;code>read2&lt;/code> pairs), every segment for the same read receives the
same index so pairs stay aligned. This makes it easy to re-sequence identifiers:&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/reversecomplement/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/reversecomplement/</guid><description>&lt;h1 id="reversecomplement">
 ReverseComplement
 &lt;a class="anchor" href="#reversecomplement">#&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:#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;ReverseComplement&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 (default: read1)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Reverse-complements the read sequence (and reverses the quality).&lt;/p>
&lt;p>This supports IUPAC codes (U is complemented to A, so it&amp;rsquo;s not strictly
reversible). Unknown letters are output verbatim.&lt;/p>
&lt;p>Useful to combine with &lt;a href="https://tyberiusprime.github.io/fastqrab/v0.8.1/fastqrab/v0.8.1/docs/reference/modification-steps/swapconditional/">SwapConditional&lt;/a>.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/reversecomplementconditional/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/reversecomplementconditional/</guid><description>&lt;h1 id="reversecomplementconditional">
 ReverseComplementConditional
 &lt;a class="anchor" href="#reversecomplementconditional">#&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:#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;ReverseComplementConditional&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"># Boolean tag that determines whether to reverse complement&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 (default: read1)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Conditionally reverse-complements the read sequence (and reverses the quality) based on a boolean tag value.&lt;/p>
&lt;p>For each read, if the boolean tag is &lt;code>true&lt;/code>, the read is reverse-complemented.
If the tag is &lt;code>false&lt;/code>, the read is left unchanged.&lt;/p>
&lt;p>This is useful for conditionally orienting reads based on strand information,
adapter detection, or other criteria determined by prior steps.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/skip/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/skip/</guid><description>&lt;h1 id="skip">
 Skip
 &lt;a class="anchor" href="#skip">#&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:#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;Skip&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">n&lt;/span> = &lt;span style="color:#ae81ff">1000&lt;/span> &lt;span style="color:#75715e"># positive integer, number of reads to skip&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Skips the first n molecules.&lt;/p>
&lt;h3 id="demultiplex-interaction">
 Demultiplex interaction
 &lt;a class="anchor" href="#demultiplex-interaction">#&lt;/a>
&lt;/h3>
&lt;p>If present after a demultiplex step, skips the first n molecules in that stream.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/swap/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/swap/</guid><description>&lt;h1 id="swap">
 Swap
 &lt;a class="anchor" href="#swap">#&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:#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;Swap&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">segment_a&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;read1&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">segment_b&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;read2&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Swaps exactly two segments.&lt;/p>
&lt;p>Arguments &lt;code>segment_a&lt;/code>/&lt;code>segment_b&lt;/code> are only necessary if there are more than two segments defined in the input.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/swapconditional/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/swapconditional/</guid><description>&lt;h1 id="swapconditional">
 SwapConditional
 &lt;a class="anchor" href="#swapconditional">#&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:#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;SwapConditional&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"># Boolean tag that determines whether to swap&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">segment_a&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;read1&amp;#34;&lt;/span> &lt;span style="color:#75715e"># Optional&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">segment_b&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;read2&amp;#34;&lt;/span> &lt;span style="color:#75715e"># Optional&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Conditionally swaps exactly two segments based on a boolean tag value.&lt;/p>
&lt;p>For each read, if the boolean tag is &lt;code>true&lt;/code>, the segments are swapped for that specific read.
If the tag is &lt;code>false&lt;/code>, the read is left unchanged.&lt;/p>
&lt;p>This is useful for conditionally reorganizing paired-end data based on read properties,
such as swapping reads based on length, quality, or other criteria determined by prior steps.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/truncate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/v0.8.1/docs/reference/modification-steps/truncate/</guid><description>&lt;h1 id="maxlen">
 MaxLen
 &lt;a class="anchor" href="#maxlen">#&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:#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;Truncate&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">n&lt;/span> = &lt;span style="color:#ae81ff">100&lt;/span> &lt;span style="color:#75715e"># the maximum length of the read. Cut at end if longer&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 (default: read1)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Cut the read down to `n&amp;rsquo; bases.&lt;/p></description></item></channel></rss>