e>
<pre class="r"><code>vi[[1]]</code></pre>
<pre><code>## Views on a 12-length Rle subject
## 
## views:
##     start end width
## [1]     2   7     6 [2 3 3 3 3 3]</code></pre>
</div>
<div id="biology-usecase" class="section level2">
<h2>Biology Usecase</h2>
<p>Suppose we want to compute the average coverage of bases belonging to (known) exons.</p>
<p>Input objects are<br />
<strong>reads</strong>: a <code>GRanges</code>.<br />
<strong>exons</strong>: a <code>GRanges</code>.</p>
<p>pseudocode:</p>
<pre cl