Skip to content

Commit

Permalink
Deployed 57eb9cd with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-p committed Mar 3, 2024
1 parent 624b448 commit 835fee2
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 50 deletions.
84 changes: 35 additions & 49 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,27 +269,18 @@
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>

<li class="md-nav__item">
<a href="#about-oarfish" class="md-nav__link">
<a href="#basic-usage" class="md-nav__link">
<span class="md-ellipsis">
About oarfish
Basic usage
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#details-about-oarfishs-method" class="md-nav__link">
<a href="#inferential-replicates" class="md-nav__link">
<span class="md-ellipsis">
Details about oarfish's method
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#input" class="md-nav__link">
<span class="md-ellipsis">
Input
Inferential Replicates
</span>
</a>

Expand Down Expand Up @@ -348,27 +339,18 @@
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>

<li class="md-nav__item">
<a href="#about-oarfish" class="md-nav__link">
<a href="#basic-usage" class="md-nav__link">
<span class="md-ellipsis">
About oarfish
Basic usage
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#details-about-oarfishs-method" class="md-nav__link">
<a href="#inferential-replicates" class="md-nav__link">
<span class="md-ellipsis">
Details about oarfish's method
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#input" class="md-nav__link">
<span class="md-ellipsis">
Input
Inferential Replicates
</span>
</a>

Expand Down Expand Up @@ -408,31 +390,32 @@


<h1 id="oarfish-transcript-quantification-from-long-read-rna-seq-data">oarfish: transcript quantification from long-read RNA-seq data</h1>
<h3 id="about-oarfish">About <code>oarfish</code></h3>
<p><code>oarfish</code> is a program, written in <a href="https://www.rust-lang.org/"><code>rust</code></a>, for quantifying transcript-level expression from long-read (i.e. Oxford nanopore cDNA and direct RNA and PacBio) sequencing technologies. <code>oarfish</code> requires a sample of sequencing reads aligned to the <em>transcriptome</em> (currntly not to the genome). It handles multi-mapping reads through the use of probabilistic allocation via an expectation-maximization (EM) algorithm.</p>
<p>There are many methods and programs that exist for transcript <em>discovery</em> or
<em>identification</em> of novel transcripts using long-read RNA sequencing data;
<code>oarfish</code> does not tackle this problem. Rather, <code>oarfish</code> is focused entirely
on accurate <em>quantification</em> of transcripts. Of course, if you wish to add
transcripts to the catalog to be quantified, you can perform discovery upstream
of <code>oarfish</code>, and then quantify the newly-dicovered transcipts with <code>oarfish</code>.</p>
<h3 id="details-about-oarfishs-method">Details about <code>oarfish</code>'s method</h3>
<p><code>oarfish</code> evaluates alignments of the sequencing reads against the transcriptome. For reads that align to multiple transcripts, <code>oarfish</code> attempts to resolve their allocation <em>probabilistically</em> using an iterative algorithm (expectation maximization — EM).</p>
<p><code>oarfish</code> optionally employs many filters to help discard alignments that may reduce quantification accuracy. Currently, the set of filters applied in <code>oarfish</code> are directly derived from the <a href="https://github.com/a-slide/NanoCount"><code>NanoCount</code></a><sup id="fnref:Gleeson"><a class="footnote-ref" href="#fn:Gleeson">1</a></sup> tool; both the filters that exist, and the way their values are set (with the exception of the <code>--three-prime-clip</code> filter, which is not set by default in <code>oarfish</code> but is in <code>NanoCount</code>).</p>
<p>Additionally, <code>oarfish</code> provides options to make use of coverage profiles derived from the aligned reads to improve quantification accuracy. The use of this coverage model is enabled with the <code>--model-coverage</code> flag. If this flag is passed, then <code>oarfish</code> will apply the coverage model to help further ascertain the origin of each read, which can lead to improved quantification accuracy.</p>
<h3 id="basic-usage">Basic usage</h3>
<p><code>oarfish</code> is a program, written in <a href="https://www.rust-lang.org/"><code>rust</code></a>, for quantifying transcript-level expression from long-read (i.e. Oxford nanopore cDNA and direct RNA and PacBio) sequencing technologies. <code>oarfish</code> requires a sample of sequencing reads aligned to the <em>transcriptome</em> (currntly not to the genome). It handles multi-mapping reads through the use of probabilistic allocation via an expectation-maximization (EM) algorithm. </p>
<p>It optionally employs many filters to help discard alignments that may reduce quantification accuracy. Currently, the set of filters applied in <code>oarfish</code> are directly derived from the <a href="https://github.com/a-slide/NanoCount"><code>NanoCount</code></a><sup id="fnref:Gleeson"><a class="footnote-ref" href="#fn:Gleeson">1</a></sup> tool; both the filters that exist, and the way their values are set (with the exception of the <code>--three-prime-clip</code> filter, which is not set by default in <code>oarfish</code> but is in <code>NanoCount</code>).</p>
<p>Additionally, <code>oarfish</code> provides options to make use of coverage profiles derived from the aligned reads to improve quantification accuracy. The use of this coverage model is enabled with the <code>--model-coverage</code> flag. You can read more about <code>oarfish</code><sup id="fnref:preprint"><a class="footnote-ref" href="#fn:preprint">2</a></sup> in the <a href="https://www.biorxiv.org/content/10.1101/2024.02.28.582591v1">preprint</a>. Please cite the preprint if you use <code>oarfish</code> in your work or analysis.</p>
<p>The usage can be provided by passing <code>-h</code> at the command line.</p>
<pre><code>accurate transcript quantification from long-read RNA-seq data
<pre><code>A fast, accurate and versatile tool for long-read transcript quantification.

Usage: oarfish [OPTIONS] --alignments &lt;ALIGNMENTS&gt; --output &lt;OUTPUT&gt;

Options:
--quiet be quiet (i.e. don't output log messages that aren't at least warnings)
--verbose be verbose (i.e. output all non-developer logging messages)
-a, --alignments &lt;ALIGNMENTS&gt; path to the file containing the input alignments
-o, --output &lt;OUTPUT&gt; location where output quantification file should be written
-t, --threads &lt;THREADS&gt; maximum number of cores that the oarfish can use to obtain binomial probability [default: 1]
-h, --help Print help
-V, --version Print version
--quiet
be quiet (i.e. don't output log messages that aren't at least warnings)
--verbose
be verbose (i.e. output all non-developer logging messages)
-a, --alignments &lt;ALIGNMENTS&gt;
path to the file containing the input alignments
-o, --output &lt;OUTPUT&gt;
location where output quantification file should be written
-j, --threads &lt;THREADS&gt;
maximum number of cores that the oarfish can use to obtain binomial probability [default: 1]
--num-bootstraps &lt;NUM_BOOTSTRAPS&gt;
number of bootstrap replicates to produce to assess quantification uncertainty [default: 0]
-h, --help
Print help
-V, --version
Print version

filters:
--filter-group &lt;FILTER_GROUP&gt;
Expand Down Expand Up @@ -462,15 +445,15 @@ <h3 id="details-about-oarfishs-method">Details about <code>oarfish</code>'s meth
-q, --short-quant &lt;SHORT_QUANT&gt;
location of short read quantification (if provided)
</code></pre>
<p>You can set the various <em>filters</em> using the options listed above. Alternatively, <code>oarfish</code> exposes a <code>--filter-group</code> option. This filter-group option applies a collection of values to the filter options at once. Currently, the available filter groups are <code>nanocount-filters</code> which seeks to match the filter parameters of <code>NanoCount</code> as closely as possible. It's worth noting that, like <code>NanoCount</code> these flags are primarily designed for direct RNA-seq data as negative-strand alignments (which may be expected in ONT cNDA sequencing) will be discarded. Likewise the <code>no-filters</code> flag disables as many filters as possible, leaving it entirely up to the quantification algorithm to determine the best placement of each read, and having to account for each read even if all of the alignments are of rather poor quality.</p>
<h3 id="input">Input</h3>
<p>The input should be a <code>bam</code> format file, with reads aligned using <a href="https://github.com/lh3/minimap2"><code>minimap2</code></a> against the <em>transcriptome</em>. That is, <code>oarfish</code> does not currently handle spliced alignment to the genome. Further, the output alignments should be name sorted (the default order produced by <code>minimap2</code> should be fine). <em>Specifically</em>, <code>oarfish</code> relies on the existence of the <code>AS</code> tag in the <code>bam</code> records that encodes the alignment score in order to obtain the score for each alignment (which is used in probabilistic read assignment), and the score of the best alignment, overall, for each read.</p>
<p><strong>Note</strong>: The actual characteristics required by <code>oarfish</code> are that the provided alignments align each read to the transcriptome, and report all alignments that should be considered for each read (i.e. multimappings are allowed). Likewise, the alignments for a given read should be adjacent in the input <code>bam</code> file, and each valid alignment should have an <code>AS</code> flag. If you'd like support for an alternative aligner that meets these requirements, please reach out (e.g. open a GitHub issue), and we'd be happy to consider adding support.</p>
<h3 id="inferential-replicates">Inferential Replicates</h3>
<p><code>oarfish</code> has the ability to compute <a href="https://academic.oup.com/nar/article/47/18/e105/5542870"><em>inferential replicates</em></a> of its quantification estimates. This is performed by bootstrap sampling of the original read mappings, and subsequently performing inference under each resampling. These inferential replicates allow assessing the variance of the point estimate of transcript abundance, and can lead to improved differential analysis at the transcript level, if using a differential testing tool that takes advantage of this information. The generation of inferential replicates is controlled by the <code>--num-bootstraps</code> argument to <code>oarfish</code>. The default value is <code>0</code>, meaning that no inferential replicates are generated. If you set this to some value greater than <code>0</code>, the the requested number of inferential replicates will be generated. It is recommended, if generating inferential replicates, to run <code>oarfish</code> with multiple threads, since replicate generation is highly-parallelized. Finally, if replicates are generated, they are written to a <a href="https://parquet.apache.org/"><code>Parquet</code></a>, starting with the specified output stem and ending with <code>infreps.pq</code>.</p>
<h3 id="output">Output</h3>
<p>The <code>--output</code> option passed to <code>oarfish</code> corresponds to a path prefix (this prefix can contain the path separator character and if it refers to a directory that does not yeat exist, that directory will be created). Based on this path prefix, say <code>P</code>, <code>oarfish</code> will create 2 files:</p>
<ul>
<li><code>P.meta_info.json</code> - a JSON format file containing information about relevant parameters with which <code>oarfish</code> was run, and other relevant inforamtion from the processed sample apart from the actual transcript quantifications.</li>
<li><code>P.quant</code> - a tab separated file listing the quantified targets, as well as information about their length and other metadata. The <code>num_reads</code> column provides the estimate of the number of reads originating from each target.</li>
<li><code>P.infreps.pq</code> - a <a href="https://parquet.apache.org/"><code>Parquet</code></a> table where each row is a transcript and each column is an inferential replicate, containing the estimated counts for each transcript under each computed inferential replicate.</li>
</ul>
<h3 id="references">References</h3>
<div class="footnote">
Expand All @@ -479,6 +462,9 @@ <h3 id="references">References</h3>
<li id="fn:Gleeson">
<p>Josie Gleeson, Adrien Leger, Yair D J Prawer, Tracy A Lane, Paul J Harrison, Wilfried Haerty, Michael B Clark, Accurate expression quantification from nanopore direct RNA sequencing with NanoCount, Nucleic Acids Research, Volume 50, Issue 4, 28 February 2022, Page e19, <a href="https://doi.org/10.1093/nar/gkab1129">https://doi.org/10.1093/nar/gkab1129</a>&#160;<a class="footnote-backref" href="#fnref:Gleeson" title="Jump back to footnote 1 in the text">&#8617;</a></p>
</li>
<li id="fn:preprint">
<p>Zahra Zare Jousheghani, Rob Patro. Oarfish: Enhanced probabilistic modeling leads to improved accuracy in long read transcriptome quantification, bioRxiv 2024.02.28.582591; doi: <a href="https://doi.org/10.1101/2024.02.28.582591">https://doi.org/10.1101/2024.02.28.582591</a>&#160;<a class="footnote-backref" href="#fnref:preprint" title="Jump back to footnote 2 in the text">&#8617;</a></p>
</li>
</ol>
</div>

Expand Down
Loading

0 comments on commit 835fee2

Please sign in to comment.