Skip to content

Commit

Permalink
Deploying to bioc_devel from @ 6b0db5d 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
js2264 committed Oct 30, 2023
1 parent 6c8e64a commit 2ad6ca8
Show file tree
Hide file tree
Showing 35 changed files with 628 additions and 1,371 deletions.
827 changes: 234 additions & 593 deletions data-representation.html

Large diffs are not rendered by default.

102 changes: 51 additions & 51 deletions index.html

Large diffs are not rendered by default.

214 changes: 66 additions & 148 deletions interactions-centric.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified interactions-centric_files/figure-html/unnamed-chunk-11-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified interactions-centric_files/figure-html/unnamed-chunk-11-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified interactions-centric_files/figure-html/unnamed-chunk-16-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified interactions-centric_files/figure-html/unnamed-chunk-17-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
163 changes: 63 additions & 100 deletions interoperability.html

Large diffs are not rendered by default.

45 changes: 7 additions & 38 deletions matrix-centric.html
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ <h1 class="title">
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="va">hic</span></span>
<span><span class="co">## `HiCExperiment` object with 471,364 contacts over 407 regions </span></span>
<span><span class="co">## -------</span></span>
<span><span class="co">## fileName: "/github/home/.cache/R/ExperimentHub/1a9a4dc30249_7752" </span></span>
<span><span class="co">## fileName: "/github/home/.cache/R/ExperimentHub/1a92248c093f_7752" </span></span>
<span><span class="co">## focus: "II" </span></span>
<span><span class="co">## resolutions(5): 1000 2000 4000 8000 16000</span></span>
<span><span class="co">## active resolution: 2000 </span></span>
Expand All @@ -399,13 +399,13 @@ <h1 class="title">
<section id="balancing-a-raw-interaction-count-map" class="level3 page-columns page-full" data-number="5.1.1"><h3 data-number="5.1.1" class="anchored" data-anchor-id="balancing-a-raw-interaction-count-map">
<span class="header-section-number">5.1.1</span> Balancing a raw interaction count map</h3>
<p>Hi-C sequencing coverage is systematically affected by multiple confounding factors, e.g.&nbsp; density of restriction sites, GC%, genome mappability, etc.. Overall, it generally ends up not homogenous throughout the entire genome and this leads to artifacts in un-normalized <code>count</code> matrices.</p>
<p>To correct for sequencing coverage heterogeneity of raw <code>count</code> maps, Hi-C data can be normalized using matrix balancing approaches (<span class="citation" data-cites="Cournac_2012">Cournac et al. (<a href="interoperability.html#ref-Cournac_2012" role="doc-biblioref">2012</a>)</span>, <span class="citation" data-cites="Imakaev_2012">Imakaev et al. (<a href="interoperability.html#ref-Imakaev_2012" role="doc-biblioref">2012</a>)</span>). This is generally done directly on the disk-stored matrices using out-of-memory strategies (e.g.&nbsp;with <code>cooler balance &lt;.cool&gt;</code>). However, if contact matrix files are imported into a <code>HiCExperiment</code> object but no <code>balanced</code> scores are available, in-memory balancing can be performed using the <code>normalize</code> function.</p>
<p>To correct for sequencing coverage heterogeneity of raw <code>count</code> maps, Hi-C data can be normalized using matrix balancing approaches (<span class="citation" data-cites="Cournac_2012">Cournac et al. (<a href="interoperability.html#ref-Cournac_2012" role="doc-biblioref">2012</a>)</span>, <span class="citation" data-cites="Imakaev_2012">Imakaev et al. (<a href="interoperability.html#ref-Imakaev_2012" role="doc-biblioref">2012</a>)</span>). This is generally done directly on the disk-stored matrices using out-of-memory strategies (e.g.&nbsp;with <code>cooler balance &lt;.cool&gt;</code>). However, if contact matrix files are imported into a <code>HiCExperiment</code> object but no <code>balanced</code> scores are available, in-memory balancing can be performed using the <code>normalize</code> function. This adds an extra <code>ICE</code> element in <code>scores</code> list (while the <code>interactions</code> themselves are unmodified).</p>
<div class="cell" data-layout-align="center" data-hash="matrix-centric_cache/html/unnamed-chunk-4_a8656a185d0ffb0d8086dac30b97c407">
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="va">normalized_hic</span> <span class="op">&lt;-</span> <span class="fu">normalize</span><span class="op">(</span><span class="va">hic</span><span class="op">)</span></span>
<span><span class="va">normalized_hic</span></span>
<span><span class="co">## `HiCExperiment` object with 471,364 contacts over 407 regions </span></span>
<span><span class="co">## -------</span></span>
<span><span class="co">## fileName: "/github/home/.cache/R/ExperimentHub/1a9a4dc30249_7752" </span></span>
<span><span class="co">## fileName: "/github/home/.cache/R/ExperimentHub/1a92248c093f_7752" </span></span>
<span><span class="co">## focus: "II" </span></span>
<span><span class="co">## resolutions(5): 1000 2000 4000 8000 16000</span></span>
<span><span class="co">## active resolution: 2000 </span></span>
Expand All @@ -415,19 +415,6 @@ <h1 class="title">
<span><span class="co">## pairsFile: N/A </span></span>
<span><span class="co">## metadata(0):</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Note
</div>
</div>
<div class="callout-body-container callout-body">
<p>The only change done to the <code>HiCExperiment</code> object by the <code>normalize</code> function is the addition of a single extra <code>ICE</code> in <code>scores</code> list. The <code>interactions</code> themselves are unmodified.</p>
</div>
</div>
<p>It is possible to plot the different <code>scores</code> of the resulting object to visualize the newly computed <code>scores</code>. In this example, <code>ICE</code> scores should be nearly identical to <code>balanced</code> scores, which were originally imported from the disk-stored contact matrix.</p>
<div class="column-body-outset-right">
<div class="cell" data-layout-align="center" data-fig.asp="0.33" data-hash="matrix-centric_cache/html/unnamed-chunk-5_9b77e4d5d8fd72d4e870f30ae52a903b">
Expand All @@ -449,13 +436,13 @@ <h1 class="title">
<span class="header-section-number">5.1.2</span> Computing observed/expected (O/E) map</h3>
<p>The most prominent feature of a balanced Hi-C matrix is the strong main diagonal. This main diagonal is observed because interactions between immediate adjacent genomic loci are more prone to happen than interactions spanning longer genomic distances. This “expected” behavior is due to the polymer nature of the chromosomes being studied, and can be locally estimated using the distance-dependent interaction frequency (a.k.a. the “distance law”, or P(s)). It can be used to compute an <code>expected</code> matrix on interactions.</p>
<p>When it is desirable to “mask” this polymer behavior to emphasize topological structures formed by chromosomes, one can divide a given balanced matrix by its <code>expected</code> matrix, i.e.&nbsp;calculate the observed/expected (O/E) map. This is sometimes called “detrending”, as it effectively removes the average polymer behavior from the balanced matrix.</p>
<p>The <code>detrend</code> function performs this operation on a given <code>HiCExperiment</code> object.</p>
<p>The <code>detrend</code> function performs this operation on a given <code>HiCExperiment</code> object. It adds two extra elements in <code>scores</code> list: <code>expected</code> and <code>detrended</code> metrics (while the <code>interactions</code> themselves are unmodified).</p>
<div class="cell" data-layout-align="center" data-hash="matrix-centric_cache/html/unnamed-chunk-6_b8aedc537c56a184a21a7ea3e72251fd">
<div class="sourceCode" id="cb5"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="va">detrended_hic</span> <span class="op">&lt;-</span> <span class="fu">detrend</span><span class="op">(</span><span class="va">hic</span><span class="op">)</span></span>
<span><span class="va">detrended_hic</span></span>
<span><span class="co">## `HiCExperiment` object with 471,364 contacts over 407 regions </span></span>
<span><span class="co">## -------</span></span>
<span><span class="co">## fileName: "/github/home/.cache/R/ExperimentHub/1a9a4dc30249_7752" </span></span>
<span><span class="co">## fileName: "/github/home/.cache/R/ExperimentHub/1a92248c093f_7752" </span></span>
<span><span class="co">## focus: "II" </span></span>
<span><span class="co">## resolutions(5): 1000 2000 4000 8000 16000</span></span>
<span><span class="co">## active resolution: 2000 </span></span>
Expand All @@ -465,24 +452,6 @@ <h1 class="title">
<span><span class="co">## pairsFile: N/A </span></span>
<span><span class="co">## metadata(0):</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Note
</div>
</div>
<div class="callout-body-container callout-body">
<p>The only change done to the <code>HiCExperiment</code> object by the <code>detrend</code> function is the addition of two extra <code>scores</code>:</p>
<ol type="1">
<li><code>expected</code></li>
<li><code>detrended</code></li>
</ol>
<p>The <code>interactions</code> themselves are unmodified.</p>
</div>
</div>
<p>Topological features will be visually more prominent in the O/E <code>detrended</code> Hi-C map.</p>
<div class="column-page-right">
<div class="cell" data-layout-align="center" data-fig.asp="0.33" data-hash="matrix-centric_cache/html/unnamed-chunk-7_9b26c58ef5ba7e47a5812caf94a517de">
Expand Down Expand Up @@ -528,7 +497,7 @@ <h1 class="title">
<span><span class="va">autocorr_hic</span></span>
<span><span class="co">## `HiCExperiment` object with 471,364 contacts over 407 regions </span></span>
<span><span class="co">## -------</span></span>
<span><span class="co">## fileName: "/github/home/.cache/R/ExperimentHub/1a9a4dc30249_7752" </span></span>
<span><span class="co">## fileName: "/github/home/.cache/R/ExperimentHub/1a92248c093f_7752" </span></span>
<span><span class="co">## focus: "II" </span></span>
<span><span class="co">## resolutions(5): 1000 2000 4000 8000 16000</span></span>
<span><span class="co">## active resolution: 2000 </span></span>
Expand Down Expand Up @@ -600,7 +569,7 @@ <h1 class="title">
<span><span class="va">hic2</span></span>
<span><span class="co">## `HiCExperiment` object with 168,785 contacts over 150 regions </span></span>
<span><span class="co">## -------</span></span>
<span><span class="co">## fileName: "/github/home/.cache/R/ExperimentHub/1a9a4dc30249_7752" </span></span>
<span><span class="co">## fileName: "/github/home/.cache/R/ExperimentHub/1a92248c093f_7752" </span></span>
<span><span class="co">## focus: "II:400,000-700,000" </span></span>
<span><span class="co">## resolutions(5): 1000 2000 4000 8000 16000</span></span>
<span><span class="co">## active resolution: 2000 </span></span>
Expand Down
Binary file modified matrix-centric_files/figure-html/unnamed-chunk-10-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified matrix-centric_files/figure-html/unnamed-chunk-13-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified matrix-centric_files/figure-html/unnamed-chunk-16-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2ad6ca8

Please sign in to comment.