ass="r"><code>bases &lt;- reduce(exons)
nBases &lt;- sum(width(bases))
nCoverage &lt;- sum(Views(coverage(reads), bases))
nCoverage / nBases</code></pre>
<p>(watch out for strand)</p>
</div>
<div id="sessioninfo" class="section level2">
<h2>SessionInfo</h2>
<p></p>
<pre><code>## R version 3.3.0 (2016-05-03)
## Platform: x86_64-apple-darwin13.4.0 (64-bit)
## Running under: OS X 10.11.5 (El Capitan)
## 
## locale:
## [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
## 
## attached base packag