<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Numeric Tag Generation on fastqrab documentation</title><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/</link><description>Recent content in Numeric Tag Generation on fastqrab documentation</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/index.xml" rel="self" type="application/rss+xml"/><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcLength/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcLength/</guid><description>&lt;h1 id="calclength">
 CalcLength
 &lt;a class="anchor" href="#calclength">#&lt;/a>
&lt;/h1>
&lt;p>Extract the length of a read as 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;CalcLength&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;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;/code>&lt;/pre>&lt;/div>&lt;p>This transformation creates a tag containing the length of the specified read.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcExpectedError/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcExpectedError/</guid><description>&lt;h1 id="calcexpectederror">
 CalcExpectedError
 &lt;a class="anchor" href="#calcexpectederror">#&lt;/a>
&lt;/h1>
&lt;p>Compute aggregated per-base error probabilities (expected errors) for each read assuming PHRED+33 qualities.&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;CalcExpectedError&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;expected_error&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">aggregate&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;sum&amp;#34;&lt;/span> &lt;span style="color:#75715e"># or &amp;#34;max&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>If your data is not encoded as Phred+33, convert it first (for example, with &lt;code>ConvertQuality&lt;/code>) before running this step. Values outside of the Phred+33 range will lead to an stop with an error.&lt;/p>
&lt;p>Set &lt;code>aggregate = &amp;quot;sum&amp;quot;&lt;/code> to calculate the sum of per-base error probabilities.
Use &lt;code>aggregate = &amp;quot;max&amp;quot;&lt;/code> to store only the worst base&amp;rsquo;s error probability for each read or read pair.&lt;/p></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcKmers/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcKmers/</guid><description>&lt;h1 id="calckmers">
 CalcKmers
 &lt;a class="anchor" href="#calckmers">#&lt;/a>
&lt;/h1>
&lt;p>Count the number of kmers from a read that match those in a database built from reference 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;CalcKmers&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;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">filename&lt;/span> = [&lt;span style="color:#e6db74">&amp;#39;reference.fa&amp;#39;&lt;/span>, &lt;span style="color:#e6db74">&amp;#39;database.fq&amp;#39;&lt;/span>] &lt;span style="color:#75715e"># Path (string) or list of such&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">count_reverse_complement&lt;/span> = &lt;span style="color:#66d9ef">true&lt;/span> &lt;span style="color:#75715e"># whether to also include each revcomp of a kmer in the database&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">k&lt;/span> = &lt;span style="color:#ae81ff">21&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">min_count&lt;/span> = &lt;span style="color:#ae81ff">2&lt;/span> &lt;span style="color:#75715e"># optional, defaults to 1&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This transformation:&lt;/p>
&lt;ol>
&lt;li>Builds a kmer database from the specified sequence files (all &lt;a href="https://tyberiusprime.github.io/fastqrab/main/fastqrab/main/docs/reference/input-section/">input formatws&lt;/a>)&lt;/li>
&lt;li>Extracts all kmers of length &lt;code>k&lt;/code> from the reference sequences&lt;/li>
&lt;li>Filters kmers by &lt;code>min_count&lt;/code> (minimum occurrences in the reference to be included)&lt;/li>
&lt;li>For each read, counts how many of its kmers appear in the database&lt;/li>
&lt;li>Creates a numeric tag with the kmer match count&lt;/li>
&lt;/ol>
&lt;h2 id="parameters">
 Parameters
 &lt;a class="anchor" href="#parameters">#&lt;/a>
&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>out_label&lt;/strong>: Tag name to store the kmer count&lt;/li>
&lt;li>&lt;strong>segment&lt;/strong>: Which segment to quantify (read1, read2, index1, index2, or &amp;lsquo;All&amp;rsquo;)&lt;/li>
&lt;li>&lt;strong>files&lt;/strong>: List of sequence files to build the kmer database from&lt;/li>
&lt;li>&lt;strong>count_reverse_complement&lt;/strong>: (alias: &amp;ldquo;canonical&amp;rdquo;) Whether to include reverse complements of kmers in the database (&amp;lsquo;canonical kmers&amp;rsquo;)&lt;/li>
&lt;li>&lt;strong>k&lt;/strong>: Kmer length&lt;/li>
&lt;li>&lt;strong>min_count&lt;/strong>: Minimum number of times a kmer must appear in the reference files to be included in the database (default: 1). Sum of forward and reverse complement counts if &lt;code>count_reverse_complement&lt;/code> is true.&lt;/li>
&lt;/ul>
&lt;h2 id="use-cases">
 Use Cases
 &lt;a class="anchor" href="#use-cases">#&lt;/a>
&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>Contamination detection&lt;/strong>: Quantify or filter reads matching known contaminant sequences&lt;/li>
&lt;li>&lt;strong>Quality control&lt;/strong>: Count kmers from adapter or primer sequences&lt;/li>
&lt;li>&lt;strong>Species identification&lt;/strong>: Measure presence of species-specific kmers&lt;/li>
&lt;/ul>
&lt;h2 id="notes">
 Notes
 &lt;a class="anchor" href="#notes">#&lt;/a>
&lt;/h2>
&lt;ul>
&lt;li>Only kmers with only valid DNA bases (A, C, G, T) are counted; kmers containing N or other ambiguous bases are skipped&lt;/li>
&lt;li>Kmer matching is case-insensitive&lt;/li>
&lt;/ul></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcComplexity/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcComplexity/</guid><description>&lt;h1 id="calccomplexity">
 CalcComplexity
 &lt;a class="anchor" href="#calccomplexity">#&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;CalcComplexity&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;complexity&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>Calculate read complexity, based on the percentage of bases that are changed from their predecessor.
Ranges from 0.0 to 1.0.&lt;/p>
&lt;p>A good filter value might be 0.30, which means 30% complexity is required. See
&lt;a href="https://tyberiusprime.github.io/fastqrab/main/fastqrab/main/docs/reference/filter-steps/FilterByNumericTag/">FilterByNumericTag&lt;/a>.&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>fastp: -low_complexity_filter&lt;/li>
&lt;/ul></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcMeanQuality/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcMeanQuality/</guid><description>&lt;h3 id="calcmeanquality">
 CalcMeanQuality
 &lt;a class="anchor" href="#calcmeanquality">#&lt;/a>
&lt;/h3>
&lt;p>We don&amp;rsquo;t support calculating the &amp;lsquo;average quality&amp;rsquo;.&lt;/p>
&lt;p>This is typically a bad idea, see &lt;a href="https://www.drive5.com/usearch/manual/avgq.html">https://www.drive5.com/usearch/manual/avgq.html&lt;/a> for a discussion of the issues.&lt;/p>
&lt;p>To illustrate, 140 x Q35 + 10 x Q2 reads have an &amp;lsquo;average&amp;rsquo; phred of 33, but 6.4 expected wrong bases.
A read with 150 x Q25 has a much worse &amp;lsquo;average&amp;rsquo; phred of 25, but a much lower expected number of errors at 0.5.&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: AVGQUAL:&lt;/li>
&lt;li>fastp: &amp;ndash;average_qual&lt;/li>
&lt;/ul></description></item><item><title/><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcQualifiedBases/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcQualifiedBases/</guid><description>&lt;h1 id="calcqualifiedbases">
 CalcQualifiedBases
 &lt;a class="anchor" href="#calcqualifiedbases">#&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;CalcQualifiedBases&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">threshold&lt;/span> = &lt;span style="color:#e6db74">&amp;#39;C&amp;#39;&lt;/span> &lt;span style="color:#75715e"># the quality value &amp;gt;= which a base is qualified &lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#75715e"># In your phred encoding. Typically 33..75&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#75715e"># a byte or a number 0...255&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">op&lt;/span> = &lt;span style="color:#e6db74">&amp;#39;worse&amp;#39;&lt;/span> &lt;span style="color:#75715e"># see below.&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">out_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;tag_name&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">relative&lt;/span> = &lt;span style="color:#66d9ef">true&lt;/span> &lt;span style="color:#75715e"># a rate (true) or a count (false)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Calculate the number of bases that are &amp;lsquo;qualified&amp;rsquo;, that is
abov/below a user defined threshold.&lt;/p></description></item><item><title>Calc Base Content</title><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcBaseContent/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcBaseContent/</guid><description>&lt;h1 id="calcbasecontent">
 CalcBaseContent
 &lt;a class="anchor" href="#calcbasecontent">#&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;CalcBaseContent&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">out_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;at_content&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">bases_to_count&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;AT&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">bases_to_ignore&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;N&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">relative&lt;/span> = &lt;span style="color:#66d9ef">true&lt;/span> &lt;span style="color:#75715e"># default&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Counts the rate (0..=1) of bases that match &lt;code>bases_to_count&lt;/code>, while removing any
bases listed in &lt;code>bases_to_ignore&lt;/code> from the denominator (if relative = True).&lt;/p>
&lt;p>Both lists are case-insensitive, and accept only ascii letters. When no bases
remain after filtering, the step returns &lt;code>0&lt;/code>.&lt;/p>
&lt;p>Set &lt;code>relative = false&lt;/code> to emit absolute base counts instead of a rate.
Absolute mode requires &lt;code>bases_to_ignore&lt;/code> to remain unset, otherwise the
configuration check fails.&lt;/p></description></item><item><title>Calc GC Content</title><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcGCContent/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcGCContent/</guid><description>&lt;h1 id="calcgccontent">
 CalcGCContent
 &lt;a class="anchor" href="#calcgccontent">#&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;CalcGCContent&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">out_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;gc&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">relative&lt;/span> = &lt;span style="color:#66d9ef">true&lt;/span> &lt;span style="color:#75715e"># a rate (true) or a count (false)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Count what percentage of bases are GC (as opposed to AT).
Non-AGTC bases (e.g. N) are ignored.&lt;/p>
&lt;p>Output is 0..100.&lt;/p>
&lt;p>Wrapper around &lt;a href="https://tyberiusprime.github.io/fastqrab/main/fastqrab/main/docs/reference/tag-steps/calc/CalcBaseContent/">CalcBaseContent&lt;/a> with &lt;code>bases = &amp;quot;GC&amp;quot;, ignore=&amp;quot;N&amp;quot;, relative=true&lt;/code>).&lt;/p></description></item><item><title>CalcNContent</title><link>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcNContent/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://tyberiusprime.github.io/fastqrab/main/docs/reference/tag-steps/calc/CalcNContent/</guid><description>&lt;h1 id="calcncount">
 CalcNCount
 &lt;a class="anchor" href="#calcncount">#&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;CalcNContent&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">out_label&lt;/span> = &lt;span style="color:#e6db74">&amp;#34;ncount&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">relative&lt;/span> = &lt;span style="color:#66d9ef">true&lt;/span> &lt;span style="color:#75715e"># a rate (true) or a count (false)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Count how many N are present in the read.&lt;/p>
&lt;p>This step is a convenient wrapper for
&lt;a href="./CalcBaseContent.md">&lt;code>CalcBaseContent&lt;/code>&lt;/a> with &lt;code>bases_to_count = &amp;quot;N&amp;quot;&lt;/code>.&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>fastp: &amp;ndash;n_base_limit (if combined with &lt;a href="https://tyberiusprime.github.io/fastqrab/main/fastqrab/main/docs/reference/filter-steps/FilterByNumericTag/">FilterByNumericTag&lt;/a>)&lt;/li>
&lt;/ul></description></item></channel></rss>