<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="pandoc" />


<meta name="author" content="Kaixuan Luo" />


<title>Compare CENTIPEDE predictions for HIF1A</title>

<script src="site_libs/jquery-1.11.3/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="site_libs/bootstrap-3.3.5/css/cosmo.min.css" rel="stylesheet" />
<script src="site_libs/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<script src="site_libs/bootstrap-3.3.5/shim/html5shiv.min.js"></script>
<script src="site_libs/bootstrap-3.3.5/shim/respond.min.js"></script>
<script src="site_libs/jqueryui-1.11.4/jquery-ui.min.js"></script>
<link href="site_libs/tocify-1.9.1/jquery.tocify.css" rel="stylesheet" />
<script src="site_libs/tocify-1.9.1/jquery.tocify.js"></script>
<script src="site_libs/navigation-1.1/tabsets.js"></script>
<script src="site_libs/navigation-1.1/codefolding.js"></script>
<link href="site_libs/highlightjs-9.12.0/textmate.css" rel="stylesheet" />
<script src="site_libs/highlightjs-9.12.0/highlight.js"></script>
<link href="site_libs/font-awesome-4.5.0/css/font-awesome.min.css" rel="stylesheet" />

<style type="text/css">code{white-space: pre;}</style>
<style type="text/css">
  pre:not([class]) {
    background-color: white;
  }
</style>
<script type="text/javascript">
if (window.hljs) {
  hljs.configure({languages: []});
  hljs.initHighlightingOnLoad();
  if (document.readyState && document.readyState === "complete") {
    window.setTimeout(function() { hljs.initHighlighting(); }, 0);
  }
}
</script>



<style type="text/css">
h1 {
  font-size: 34px;
}
h1.title {
  font-size: 38px;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 24px;
}
h4 {
  font-size: 18px;
}
h5 {
  font-size: 16px;
}
h6 {
  font-size: 12px;
}
.table th:not([align]) {
  text-align: left;
}
</style>


</head>

<body>

<style type = "text/css">
.main-container {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
code {
  color: inherit;
  background-color: rgba(0, 0, 0, 0.04);
}
img {
  max-width:100%;
  height: auto;
}
.tabbed-pane {
  padding-top: 12px;
}
button.code-folding-btn:focus {
  outline: none;
}
</style>


<style type="text/css">
/* padding for bootstrap navbar */
body {
  padding-top: 51px;
  padding-bottom: 40px;
}
/* offset scroll position for anchor links (for fixed navbar)  */
.section h1 {
  padding-top: 56px;
  margin-top: -56px;
}

.section h2 {
  padding-top: 56px;
  margin-top: -56px;
}
.section h3 {
  padding-top: 56px;
  margin-top: -56px;
}
.section h4 {
  padding-top: 56px;
  margin-top: -56px;
}
.section h5 {
  padding-top: 56px;
  margin-top: -56px;
}
.section h6 {
  padding-top: 56px;
  margin-top: -56px;
}
</style>

<script>
// manage active state of menu based on current page
$(document).ready(function () {
  // active menu anchor
  href = window.location.pathname
  href = href.substr(href.lastIndexOf('/') + 1)
  if (href === "")
    href = "index.html";
  var menuAnchor = $('a[href="' + href + '"]');

  // mark it active
  menuAnchor.parent().addClass('active');

  // if it's got a parent navbar menu mark it active as well
  menuAnchor.closest('li.dropdown').addClass('active');
});
</script>


<div class="container-fluid main-container">

<!-- tabsets -->
<script>
$(document).ready(function () {
  window.buildTabsets("TOC");
});
</script>

<!-- code folding -->
<style type="text/css">
.code-folding-btn { margin-bottom: 4px; }
</style>
<script>
$(document).ready(function () {
  window.initializeCodeFolding("hide" === "show");
});
</script>




<script>
$(document).ready(function ()  {

    // move toc-ignore selectors from section div to header
    $('div.section.toc-ignore')
        .removeClass('toc-ignore')
        .children('h1,h2,h3,h4,h5').addClass('toc-ignore');

    // establish options
    var options = {
      selectors: "h1,h2,h3",
      theme: "bootstrap3",
      context: '.toc-content',
      hashGenerator: function (text) {
        return text.replace(/[.\\/?&!#<>]/g, '').replace(/\s/g, '_').toLowerCase();
      },
      ignoreSelector: ".toc-ignore",
      scrollTo: 0
    };
    options.showAndHide = true;
    options.smoothScroll = true;

    // tocify
    var toc = $("#TOC").tocify(options).data("toc-tocify");
});
</script>

<style type="text/css">

#TOC {
  margin: 25px 0px 20px 0px;
}
@media (max-width: 768px) {
#TOC {
  position: relative;
  width: 100%;
}
}


.toc-content {
  padding-left: 30px;
  padding-right: 40px;
}

div.main-container {
  max-width: 1200px;
}

div.tocify {
  width: 20%;
  max-width: 260px;
  max-height: 85%;
}

@media (min-width: 768px) and (max-width: 991px) {
  div.tocify {
    width: 25%;
  }
}

@media (max-width: 767px) {
  div.tocify {
    width: 100%;
    max-width: none;
  }
}

.tocify ul, .tocify li {
  line-height: 20px;
}

.tocify-subheader .tocify-item {
  font-size: 0.90em;
  padding-left: 25px;
  text-indent: 0;
}

.tocify .list-group-item {
  border-radius: 0px;
}


</style>

<!-- setup 3col/9col grid for toc_float and main content  -->
<div class="row-fluid">
<div class="col-xs-12 col-sm-4 col-md-3">
<div id="TOC" class="tocify">
</div>
</div>

<div class="toc-content col-xs-12 col-sm-8 col-md-9">




<div class="navbar navbar-default  navbar-fixed-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="index.html">ATAC-seq analysis</a>
    </div>
    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li>
  <a href="index.html">Home</a>
</li>
<li>
  <a href="about.html">About</a>
</li>
<li>
  <a href="license.html">License</a>
</li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li>
  <a href="https://github.com/jdblischak/workflowr">
    <span class="fa fa-github"></span>
     
  </a>
</li>
      </ul>
    </div><!--/.nav-collapse -->
  </div><!--/.container -->
</div><!--/.navbar -->

<!-- Add a small amount of space between sections. -->
<style type="text/css">
div.section {
  padding-top: 12px;
}
</style>

<div class="fluid-row" id="header">

<div class="btn-group pull-right">
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span>Code</span> <span class="caret"></span></button>
<ul class="dropdown-menu" style="min-width: 50px;">
<li><a id="rmd-show-all-code" href="#">Show All Code</a></li>
<li><a id="rmd-hide-all-code" href="#">Hide All Code</a></li>
</ul>
</div>



<h1 class="title toc-ignore">Compare CENTIPEDE predictions for HIF1A</h1>
<h4 class="author"><em>Kaixuan Luo</em></h4>
<h4 class="date"><em>6/18/2018</em></h4>

</div>


<p><strong>Last updated:</strong> 2018-06-20</p>
<strong>workflowr checks:</strong> <small>(Click a bullet for more information)</small>
<ul>
<li>
<p><details> <summary> <strong style="color:blue;">✔</strong> <strong>R Markdown file:</strong> up-to-date </summary></p>
<p>Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.</p>
</details>
</li>
<li>
<p><details> <summary> <strong style="color:blue;">✔</strong> <strong>Environment:</strong> empty </summary></p>
<p>Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.</p>
</details>
</li>
<li>
<p><details> <summary> <strong style="color:blue;">✔</strong> <strong>Seed:</strong> <code>set.seed(20180613)</code> </summary></p>
<p>The command <code>set.seed(20180613)</code> was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.</p>
</details>
</li>
<li>
<p><details> <summary> <strong style="color:blue;">✔</strong> <strong>Session information:</strong> recorded </summary></p>
<p>Great job! Recording the operating system, R version, and package versions is critical for reproducibility.</p>
</details>
</li>
<li>
<p><details> <summary> <strong style="color:blue;">✔</strong> <strong>Repository version:</strong> 84a6174 </summary></p>
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility. The version displayed above was the version of the Git repository at the time these results were generated. <br><br> Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use <code>wflow_publish</code> or <code>wflow_git_commit</code>). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
<pre><code>
Ignored files:
    Ignored:    .DS_Store
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/

Untracked files:
    Untracked:  analysis/ATACseq_footprinting_pipeline.Rmd
    Untracked:  analysis/compare_centipede_predictions_CTCF.Rmd
    Untracked:  code_RCC/
    Untracked:  docs/figure/
    Untracked:  workflow_setup.R

</code></pre>
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes. </details>
</li>
</ul>
<details> <summary> <small><strong>Expand here to see past versions:</strong></small> </summary>
<ul>
<table style="border-collapse:separate; border-spacing:5px;">
<thead>
<tr>
<th style="text-align:left;">
File
</th>
<th style="text-align:left;">
Version
</th>
<th style="text-align:left;">
Author
</th>
<th style="text-align:left;">
Date
</th>
<th style="text-align:left;">
Message
</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;">
Rmd
</td>
<td style="text-align:left;">
84a6174
</td>
<td style="text-align:left;">
kevinlkx
</td>
<td style="text-align:left;">
2018-06-20
</td>
<td style="text-align:left;">
compare centipede predictions for HIF1A
</td>
</tr>
</tbody>
</table>
</ul>
<p></details></p>
<hr />
<pre class="r"><code>library(ggplot2)
library(grid)
library(gridExtra)
library(limma)
library(edgeR)</code></pre>
<div id="select-tf" class="section level2">
<h2>select TF</h2>
<pre class="r"><code>tf_name &lt;- &quot;HIF1A&quot;
pwm_name &lt;- &quot;HIF1A::ARNT_MA0259.1_1e-4&quot;

thresh_PostPr_bound &lt;- 0.99
cat(pwm_name, &quot;\n&quot;)</code></pre>
<pre><code>HIF1A::ARNT_MA0259.1_1e-4 </code></pre>
</div>
<div id="load-centipede-predictions" class="section level2">
<h2>load CENTIPEDE predictions</h2>
<pre class="r"><code>dir_predictions &lt;- paste0(&quot;~/Dropbox/research//ATAC-seq/for_Olivia_Gray/results/centipede_predictions/&quot;, pwm_name)

## condition: N
bam_namelist_N &lt;- c(&quot;N1_nomito_rdup.bam&quot;, &quot;N2_nomito_rdup.bam&quot;, &quot;N3_nomito_rdup.bam&quot;)

site_predictions_N.l &lt;- vector(&quot;list&quot;, 3)
names(site_predictions_N.l) &lt;- bam_namelist_N

for(i in 1:length(bam_namelist_N)){
  bam_basename &lt;- tools::file_path_sans_ext(basename(bam_namelist_N[[i]]))
  site_predictions_N.l[[i]] &lt;- read.table(paste0(dir_predictions, &quot;/&quot;, pwm_name, &quot;_&quot;, bam_basename, &quot;_predictions.txt.gz&quot;), header = T, stringsAsFactors = F)
}

CentPostPr_N.df &lt;- data.frame(N1 = site_predictions_N.l[[1]]$CentPostPr, 
                              N2 = site_predictions_N.l[[2]]$CentPostPr, 
                              N3 = site_predictions_N.l[[3]]$CentPostPr)

CentLogRatios_N.df &lt;- data.frame(N1 = site_predictions_N.l[[1]]$CentLogRatios, 
                                 N2 = site_predictions_N.l[[2]]$CentLogRatios, 
                                 N3 = site_predictions_N.l[[3]]$CentLogRatios)


## condition: H
bam_namelist_H &lt;- c(&quot;H1_nomito_rdup.bam&quot;, &quot;H2_nomito_rdup.bam&quot;, &quot;H3_nomito_rdup.bam&quot;)

site_predictions_H.l &lt;- vector(&quot;list&quot;, 3)
names(site_predictions_H.l) &lt;- bam_namelist_H

for(i in 1:length(bam_namelist_H)){
  bam_basename &lt;- tools::file_path_sans_ext(basename(bam_namelist_H[[i]]))
  site_predictions_H.l[[i]] &lt;- read.table(paste0(dir_predictions, &quot;/&quot;, pwm_name, &quot;_&quot;, bam_basename, &quot;_predictions.txt.gz&quot;), header = T, stringsAsFactors = F)
}

name_sites &lt;- site_predictions_H.l[[1]]$name

CentPostPr_H.df &lt;- data.frame(H1 = site_predictions_H.l[[1]]$CentPostPr, 
                              H2 = site_predictions_H.l[[2]]$CentPostPr, 
                              H3 = site_predictions_H.l[[3]]$CentPostPr)

CentLogRatios_H.df &lt;- data.frame(H1 = site_predictions_H.l[[1]]$CentLogRatios, 
                                 H2 = site_predictions_H.l[[2]]$CentLogRatios, 
                                 H3 = site_predictions_H.l[[3]]$CentLogRatios)

CentPostPr.df &lt;- cbind(CentPostPr_N.df, CentPostPr_H.df)
CentLogRatios.df &lt;- cbind(CentLogRatios_N.df, CentLogRatios_H.df)</code></pre>
</div>
<div id="binarize-to-bound-and-unbound" class="section level2">
<h2>binarize to bound and unbound</h2>
<pre class="r"><code>cat(&quot;Number of bound sites: \n&quot;)</code></pre>
<pre><code>Number of bound sites: </code></pre>
<pre class="r"><code>colSums(CentPostPr.df &gt; thresh_PostPr_bound)</code></pre>
<pre><code>  N1   N2   N3   H1   H2   H3 
4139 3834 3539 2334 2213 2788 </code></pre>
<pre class="r"><code>idx_bound &lt;- which(rowSums(CentPostPr.df &gt; thresh_PostPr_bound) &gt;= 2)
cat(length(idx_bound), &quot;sites are bound in at least two samples \n&quot;)</code></pre>
<pre><code>3882 sites are bound in at least two samples </code></pre>
<pre class="r"><code>cat(length(idx_bound), &quot;(&quot;,round(length(idx_bound)/nrow(CentPostPr.df) *100, 2), &quot;% ) sites are bound in at least two samples \n&quot;)</code></pre>
<pre><code>3882 ( 6.85 % ) sites are bound in at least two samples </code></pre>
</div>
<div id="plot-average-binding-and-average-logratios" class="section level2">
<h2>Plot average binding and average logRatios</h2>
<div id="all-sites" class="section level3">
<h3>all sites</h3>
<pre class="r"><code>par(pty=&quot;s&quot;)
plot(rowMeans(CentPostPr_N.df), rowMeans(CentPostPr_H.df), 
     xlab = &quot;N average P(Bound)&quot;, ylab = &quot;H average P(Bound)&quot;, main = tf_name,
     pch = &quot;.&quot;, col = rgb(0,0,1,0.7))
abline(a=0,b=1)</code></pre>
<p><img src="figure/compare_centipede_predictions_HIF1A.Rmd/unnamed-chunk-5-1.png" width="672" style="display: block; margin: auto;" /></p>
<pre class="r"><code>par(mfrow = c(1,2))
par(pty=&quot;s&quot;)
plot(rowMeans(CentLogRatios_N.df), rowMeans(CentLogRatios_H.df), 
     xlab = &quot;N average logRatios&quot;, ylab = &quot;H average logRatios&quot;, main = tf_name, 
     pch = &quot;.&quot;, col = rgb(0,0,1,0.7))
abline(a=0,b=1,col = &quot;darkgray&quot;)

plot(x = (rowMeans(CentLogRatios_H.df)+rowMeans(CentLogRatios_N.df))/2, 
     y = rowMeans(CentLogRatios_H.df) - rowMeans(CentLogRatios_N.df),
     xlab = &quot;average logRatios&quot;, ylab = &quot;Difference in logRatios (H - N)&quot;, main = tf_name,
     pch = &quot;.&quot;, col = rgb(0,0,1,0.7))
abline(v=0, h=0, col = &quot;darkgray&quot;)</code></pre>
<p><img src="figure/compare_centipede_predictions_HIF1A.Rmd/unnamed-chunk-5-2.png" width="672" style="display: block; margin: auto;" /></p>
</div>
<div id="bound-sites" class="section level3">
<h3>bound sites</h3>
<pre class="r"><code>par(pty=&quot;s&quot;)
plot(rowMeans(CentPostPr_N.df[idx_bound,]), rowMeans(CentPostPr_H.df[idx_bound,]), 
     xlab = &quot;N average P(Bound)&quot;, ylab = &quot;H average P(Bound)&quot;, main = paste(tf_name, &quot;bound sites&quot;),
     pch = &quot;.&quot;, col = rgb(0,0,1,0.7))
abline(a=0,b=1)</code></pre>
<p><img src="figure/compare_centipede_predictions_HIF1A.Rmd/unnamed-chunk-6-1.png" width="672" style="display: block; margin: auto;" /></p>
<pre class="r"><code>par(mfrow = c(1,2))
par(pty=&quot;s&quot;)
plot(rowMeans(CentLogRatios_N.df[idx_bound,]), rowMeans(CentLogRatios_H.df[idx_bound,]), 
     xlab = &quot;N average logRatios&quot;, ylab = &quot;H average logRatios&quot;, main = tf_name, 
     pch = &quot;.&quot;, col = rgb(0,0,1,0.7))
abline(a=0,b=1,col = &quot;darkgray&quot;)

plot(x = (rowMeans(CentLogRatios_H.df[idx_bound,])+rowMeans(CentLogRatios_N.df[idx_bound,]))/2, 
     y = rowMeans(CentLogRatios_H.df[idx_bound,]) - rowMeans(CentLogRatios_N.df[idx_bound,]),
     xlab = &quot;average logRatios&quot;, ylab = &quot;Difference in logRatios (H - N)&quot;, main = tf_name,
     pch = &quot;.&quot;, col = rgb(0,0,1,0.7))
abline(v=0, h=0, col = &quot;darkgray&quot;)</code></pre>
<p><img src="figure/compare_centipede_predictions_HIF1A.Rmd/unnamed-chunk-6-2.png" width="672" style="display: block; margin: auto;" /></p>
</div>
</div>
<div id="pca" class="section level2">
<h2>PCA</h2>
<div id="all-sites-1" class="section level3">
<h3>all sites</h3>
<pre class="r"><code>pca_logRatios &lt;- prcomp(t(CentLogRatios.df))
percentage &lt;- round(pca_logRatios$sdev / sum(pca_logRatios$sdev) * 100, 2)
percentage &lt;- paste0( colnames(pca_logRatios$x), &quot; (&quot;, paste( as.character(percentage), &quot;%)&quot;) )

pca_logRatios.df &lt;- as.data.frame(pca_logRatios$x)
pca_logRatios.df$group &lt;- rep(c(&quot;N&quot;,&quot;H&quot;), each = 3)
p &lt;- ggplot(pca_logRatios.df, aes(x=PC1,y=PC2,color=group,label=row.names(pca_logRatios.df)))
p &lt;- p + geom_point() + geom_text(size = 3, show.legend = F, vjust = 2, nudge_y = 0.5) + 
  labs(title = tf_name, x = percentage[1], y = percentage[2])
p</code></pre>
<p><img src="figure/compare_centipede_predictions_HIF1A.Rmd/unnamed-chunk-7-1.png" width="672" style="display: block; margin: auto;" /></p>
</div>
<div id="bound-sites-1" class="section level3">
<h3>bound sites</h3>
<pre class="r"><code>pca_logRatios &lt;- prcomp(t(CentLogRatios.df[idx_bound, ]))
percentage &lt;- round(pca_logRatios$sdev / sum(pca_logRatios$sdev) * 100, 2)
percentage &lt;- paste0( colnames(pca_logRatios$x), &quot; (&quot;, paste( as.character(percentage), &quot;%)&quot;) )

pca_logRatios.df &lt;- as.data.frame(pca_logRatios$x)
pca_logRatios.df$group &lt;- rep(c(&quot;N&quot;,&quot;H&quot;), each = 3)
p &lt;- ggplot(pca_logRatios.df, aes(x=PC1,y=PC2,color=group,label=row.names(pca_logRatios.df)))
p &lt;- p + geom_point() + geom_text(size = 3, show.legend = F, vjust = 2, nudge_y = 0.5) + 
  labs(title = tf_name, x = percentage[1], y = percentage[2])
p</code></pre>
<p><img src="figure/compare_centipede_predictions_HIF1A.Rmd/unnamed-chunk-8-1.png" width="672" style="display: block; margin: auto;" /></p>
</div>
</div>
<div id="differential-logratios-for-bound-sites-using-limma" class="section level2">
<h2>Differential logRatios for bound sites using limma</h2>
<pre class="r"><code>targets &lt;- data.frame(bam = c(bam_namelist_N, bam_namelist_H), 
                      label = colnames(CentLogRatios.df), 
                      condition = rep(c(&quot;N&quot;, &quot;H&quot;), each = 3))

print(targets)</code></pre>
<pre><code>                 bam label condition
1 N1_nomito_rdup.bam    N1         N
2 N2_nomito_rdup.bam    N2         N
3 N3_nomito_rdup.bam    N3         N
4 H1_nomito_rdup.bam    H1         H
5 H2_nomito_rdup.bam    H2         H
6 H3_nomito_rdup.bam    H3         H</code></pre>
<pre class="r"><code>condition &lt;- factor(targets$condition, levels = c(&quot;N&quot;, &quot;H&quot;))
design &lt;- model.matrix(~0+condition)
colnames(design) &lt;- levels(condition)
print(design)</code></pre>
<pre><code>  N H
1 1 0
2 1 0
3 1 0
4 0 1
5 0 1
6 0 1
attr(,&quot;assign&quot;)
[1] 1 1
attr(,&quot;contrasts&quot;)
attr(,&quot;contrasts&quot;)$condition
[1] &quot;contr.treatment&quot;</code></pre>
<pre class="r"><code>CentLogRatios_Bound.df &lt;- CentLogRatios.df[idx_bound, ]

fit &lt;- lmFit(CentLogRatios_Bound.df, design)
contrasts &lt;- makeContrasts(H-N, levels=design)
fit2 &lt;- contrasts.fit(fit, contrasts)
fit2 &lt;- eBayes(fit2, trend=TRUE)
num_diffbind &lt;- summary(decideTests(fit2))
percent_diffbind &lt;- round(num_diffbind / sum(num_diffbind) * 100, 2)
cat(percent_diffbind[1], &quot;% down in H vs. N,&quot;, percent_diffbind[3], &quot;% up in H vs. N \n&quot;)</code></pre>
<pre><code>63.34 % down in H vs. N, 0.52 % up in H vs. N </code></pre>
<pre class="r"><code># volcanoplot(fit2, main=&quot;H vs. N&quot;, xlab = &quot;Difference in logRatios (H - N)&quot;)

plot(x = fit2$coef, y = -log10(fit2$p.value),
     xlab = &quot;Difference in logRatios (H - N)&quot;, ylab = &quot;-log10(P-value)&quot;, main= paste(tf_name, &quot;H vs. N&quot;),
     pch = 16, cex = 0.35)</code></pre>
<p><img src="figure/compare_centipede_predictions_HIF1A.Rmd/unnamed-chunk-9-1.png" width="672" style="display: block; margin: auto;" /></p>
</div>
<div id="session-information" class="section level2">
<h2>Session information</h2>
<pre class="r"><code>sessionInfo()</code></pre>
<pre><code>R version 3.4.3 (2017-11-30)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.4

Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib

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 packages:
[1] grid      stats     graphics  grDevices utils     datasets  methods  
[8] base     

other attached packages:
[1] edgeR_3.20.9  limma_3.34.9  gridExtra_2.3 ggplot2_2.2.1

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.16      knitr_1.20        whisker_0.3-2    
 [4] magrittr_1.5      workflowr_1.0.1   splines_3.4.3    
 [7] munsell_0.4.3     lattice_0.20-35   colorspace_1.3-2 
[10] rlang_0.2.0       stringr_1.3.0     plyr_1.8.4       
[13] tools_3.4.3       gtable_0.2.0      R.oo_1.22.0      
[16] git2r_0.21.0      htmltools_0.3.6   yaml_2.1.18      
[19] lazyeval_0.2.1    rprojroot_1.3-2   digest_0.6.15    
[22] tibble_1.4.2      R.utils_2.6.0     evaluate_0.10.1  
[25] rmarkdown_1.9     labeling_0.3      stringi_1.1.7    
[28] pillar_1.2.2      compiler_3.4.3    scales_0.5.0     
[31] backports_1.1.2   R.methodsS3_1.7.1 locfit_1.5-9.1   </code></pre>
</div>

<!-- Adjust MathJax settings so that all math formulae are shown using
TeX fonts only; see
http://docs.mathjax.org/en/latest/configuration.html.  This will make
the presentation more consistent at the cost of the webpage sometimes
taking slightly longer to load. Note that this only works because the
footer is added to webpages before the MathJax javascript. -->
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    "HTML-CSS": { availableFonts: ["TeX"] }
  });
</script>

<hr>
<p>
  This reproducible <a href="http://rmarkdown.rstudio.com">R Markdown</a>
  analysis was created with
  <a href="https://github.com/jdblischak/workflowr">workflowr</a> 1.0.1
</p>
<hr>


</div>
</div>

</div>

<script>

// add bootstrap table styles to pandoc tables
function bootstrapStylePandocTables() {
  $('tr.header').parent('thead').parent('table').addClass('table table-condensed');
}
$(document).ready(function () {
  bootstrapStylePandocTables();
});


</script>

<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
  (function () {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.src  = "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
    document.getElementsByTagName("head")[0].appendChild(script);
  })();
</script>

</body>
</html>