<!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="Siming Zhao" /> <title>Quality_metrics</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> <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-5.0.13/css/fa-svg-with-js.css" rel="stylesheet" /> <script src="site_libs/font-awesome-5.0.13/js/fontawesome-all.min.js"></script> <script src="site_libs/font-awesome-5.0.13/js/fa-v4-shims.min.js"></script> <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; } .html-widget { margin-bottom: 20px; } 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 --> <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">cropseq</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/simingz/cropseq"> <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"> <h1 class="title toc-ignore">Quality_metrics</h1> <h4 class="author"><em>Siming Zhao</em></h4> </div> <p><strong>Last updated:</strong> 2018-12-14</p> <strong>workflowr checks:</strong> <small>(Click a bullet for more information)</small> <ul> <li> <p><details> <summary> <strong style="color:red;">✖</strong> <strong>R Markdown file:</strong> uncommitted changes </summary> The R Markdown file has unstaged changes. To know which version of the R Markdown file created these results, you’ll want to first commit it to the Git repo. If you’re still working on the analysis, you can ignore this warning. When you’re finished, you can run <code>wflow_publish</code> to commit the R Markdown file and build the HTML.</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(20181119)</code> </summary></p> <p>The command <code>set.seed(20181119)</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> <a href="https://github.com/simingz/cropseq/tree/21193c89db26120ec5344823fb290ff92eedca88" target="_blank">21193c8</a> </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: .Rhistory Ignored: .Rproj.user/ Ignored: analysis/Quality_metrics_cache/ Ignored: analysis/figure/ Unstaged changes: Modified: analysis/Quality_metrics.Rmd Modified: data/DE_input.Rd </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;"> <a href="https://github.com/simingz/cropseq/blob/8ce79ed3ec7d44f3ad745fd88b4e9eab6affcd0a/analysis/Quality_metrics.Rmd" target="_blank">8ce79ed</a> </td> <td style="text-align:left;"> simingz </td> <td style="text-align:left;"> 2018-12-05 </td> <td style="text-align:left;"> de_anlysis </td> </tr> <tr> <td style="text-align:left;"> html </td> <td style="text-align:left;"> <a href="https://cdn.rawgit.com/simingz/cropseq/8ce79ed3ec7d44f3ad745fd88b4e9eab6affcd0a/docs/Quality_metrics.html" target="_blank">8ce79ed</a> </td> <td style="text-align:left;"> simingz </td> <td style="text-align:left;"> 2018-12-05 </td> <td style="text-align:left;"> de_anlysis </td> </tr> <tr> <td style="text-align:left;"> Rmd </td> <td style="text-align:left;"> <a href="https://github.com/simingz/cropseq/blob/275d5d865e08b6de5e4c9d3d038522c52b998039/analysis/Quality_metrics.Rmd" target="_blank">275d5d8</a> </td> <td style="text-align:left;"> simingz </td> <td style="text-align:left;"> 2018-12-02 </td> <td style="text-align:left;"> qc </td> </tr> <tr> <td style="text-align:left;"> html </td> <td style="text-align:left;"> <a href="https://cdn.rawgit.com/simingz/cropseq/275d5d865e08b6de5e4c9d3d038522c52b998039/docs/Quality_metrics.html" target="_blank">275d5d8</a> </td> <td style="text-align:left;"> simingz </td> <td style="text-align:left;"> 2018-12-02 </td> <td style="text-align:left;"> qc </td> </tr> <tr> <td style="text-align:left;"> Rmd </td> <td style="text-align:left;"> <a href="https://github.com/simingz/cropseq/blob/f5dda86f5471ff786625c5809a81d7e984730d04/analysis/Quality_metrics.Rmd" target="_blank">f5dda86</a> </td> <td style="text-align:left;"> simingz </td> <td style="text-align:left;"> 2018-12-02 </td> <td style="text-align:left;"> qc </td> </tr> <tr> <td style="text-align:left;"> html </td> <td style="text-align:left;"> <a href="https://cdn.rawgit.com/simingz/cropseq/f5dda86f5471ff786625c5809a81d7e984730d04/docs/Quality_metrics.html" target="_blank">f5dda86</a> </td> <td style="text-align:left;"> simingz </td> <td style="text-align:left;"> 2018-12-02 </td> <td style="text-align:left;"> qc </td> </tr> <tr> <td style="text-align:left;"> Rmd </td> <td style="text-align:left;"> <a href="https://github.com/simingz/cropseq/blob/8754cad65d01c5766bac60611204c4cdd22bb23a/analysis/Quality_metrics.Rmd" target="_blank">8754cad</a> </td> <td style="text-align:left;"> szhao06 </td> <td style="text-align:left;"> 2018-12-02 </td> <td style="text-align:left;"> qc </td> </tr> <tr> <td style="text-align:left;"> html </td> <td style="text-align:left;"> <a href="https://cdn.rawgit.com/simingz/cropseq/8754cad65d01c5766bac60611204c4cdd22bb23a/docs/Quality_metrics.html" target="_blank">8754cad</a> </td> <td style="text-align:left;"> szhao06 </td> <td style="text-align:left;"> 2018-12-02 </td> <td style="text-align:left;"> qc </td> </tr> <tr> <td style="text-align:left;"> Rmd </td> <td style="text-align:left;"> <a href="https://github.com/simingz/cropseq/blob/c206c9d2a24d343aaf9dae5f78737a21d719db50/analysis/Quality_metrics.Rmd" target="_blank">c206c9d</a> </td> <td style="text-align:left;"> szhao06 </td> <td style="text-align:left;"> 2018-12-01 </td> <td style="text-align:left;"> qc </td> </tr> <tr> <td style="text-align:left;"> Rmd </td> <td style="text-align:left;"> <a href="https://github.com/simingz/cropseq/blob/fdd56472119b02d3dfe1fadd755df6b8b1db3682/analysis/Quality_metrics.Rmd" target="_blank">fdd5647</a> </td> <td style="text-align:left;"> szhao06 </td> <td style="text-align:left;"> 2018-12-01 </td> <td style="text-align:left;"> qc </td> </tr> <tr> <td style="text-align:left;"> html </td> <td style="text-align:left;"> <a href="https://cdn.rawgit.com/simingz/cropseq/fdd56472119b02d3dfe1fadd755df6b8b1db3682/docs/Quality_metrics.html" target="_blank">fdd5647</a> </td> <td style="text-align:left;"> szhao06 </td> <td style="text-align:left;"> 2018-12-01 </td> <td style="text-align:left;"> qc </td> </tr> </tbody> </table> </ul> <p></details></p> <hr /> <div id="number-of-guide-rnas-per-cell" class="section level2"> <h2>Number of guide RNAs per cell</h2> <ul> <li>number of cells with guide RNA reads =1 From Siwei’s cellranger run:</li> </ul> <pre class="r"><code>library(Matrix) matrix_dir = "/Volumes/CROP-seq/data_from_Siwei/Xin_scRNA_seq_05Nov2018/filtered_gene_bc_matrices/CellRanger_index/" matrix.path <- paste0(matrix_dir, "matrix.mtx") dm <- readMM(file = matrix.path) dm1 <- tail(dm,n=76) length(colSums(dm1)[colSums(dm1)==1])</code></pre> <pre><code>[1] 440</code></pre> <p>From Alan’s cellranger run:</p> <pre class="r"><code>matrix_dir1 = "/Volumes/CROP-seq/NSC0507_cellranger/outs/filtered_gene_bc_matrices/cellranger_ref/" matrix.path1 <- paste0(matrix_dir1, "matrix.mtx") mattemp1 <- readMM(file = matrix.path1) mattemp11 <- tail(mattemp1,n=76) length(colSums(mattemp11)[colSums(mattemp11)==1])</code></pre> <pre><code>[1] 266</code></pre> <pre class="r"><code>matrix_dir2 = "/Volumes/CROP-seq/NSC08_cellranger/outs/filtered_gene_bc_matrices/cellranger_ref/" matrix.path2 <- paste0(matrix_dir2, "matrix.mtx") mattemp2 <- readMM(file = matrix.path2) mattemp21 <- tail(mattemp2,n=76) length(colSums(mattemp21)[colSums(mattemp21)==1])</code></pre> <pre><code>[1] 190</code></pre> <p>Note: in Alan’s original analysis conversion from h5 to csv step didn’t seem to work properly. if starting from matrix.mtx files. Siwei and Alan’s analyses gave the same results. So from now on, we will always start from Siwei’s matrix.mtx file.</p> <ul> <li>distribution of gRNA types per cell</li> </ul> <pre class="r"><code>barcode.path <- paste0(matrix_dir, "barcodes.tsv") features.path <- paste0(matrix_dir, "genes.tsv") feature.names = read.delim(features.path, header = FALSE, stringsAsFactors = FALSE) barcode.names = read.delim(barcode.path, header = FALSE, stringsAsFactors = FALSE) colnames(dm) = barcode.names$V1 rownames(dm) = feature.names$V1 dm1 <- tail(dm,n=76) hist(apply(dm1, 2, function(x) length(x[x>0])),breaks=300,xlim=c(0,15),ylim=c(0,2500), main="Distribution of number of gRNA types per cell", xlab= "# gRNA type per cell")</code></pre> <p><img src="figure/Quality_metrics.Rmd/gRNAdist-1.png" width="672" style="display: block; margin: auto;" /></p> <details> <summary><em>Expand here to see past versions of gRNAdist-1.png:</em></summary> <table style="border-collapse:separate; border-spacing:5px;"> <thead> <tr> <th style="text-align:left;"> Version </th> <th style="text-align:left;"> Author </th> <th style="text-align:left;"> Date </th> </tr> </thead> <tbody> <tr> <td style="text-align:left;"> <a href="https://github.com/simingz/cropseq/blob/fdd56472119b02d3dfe1fadd755df6b8b1db3682/docs/figure/Quality_metrics.Rmd/gRNAdist-1.png" target="_blank">fdd5647</a> </td> <td style="text-align:left;"> szhao06 </td> <td style="text-align:left;"> 2018-12-01 </td> </tr> </tbody> </table> <p></details></p> </div> <div id="number-of-cells-targeted-for-each-locus" class="section level2"> <h2>number of cells targeted for each locus</h2> <pre class="r"><code>library(dplyr) dm1df <- as.data.frame(as.matrix(dm1)) dm1df$label = sapply(strsplit(rownames(dm1),split = '_'), function(x){x[1]}) dm1dfagg = as.data.frame(dm1df %>% group_by(label) %>% summarise_all(funs(sum))) row.names(dm1dfagg) =dm1dfagg$label dm1dfagg$label =NULL</code></pre> <ul> <li>number of cells targeted for each locus</li> </ul> <pre class="r"><code>ncell <- apply(dm1dfagg,1, function (x) length(x[x>=1])) barplot(ncell,las=2,cex.lab=1, main= "# cells targted for each locus")</code></pre> <p><img src="figure/Quality_metrics.Rmd/celldist1-1.png" width="672" style="display: block; margin: auto;" /></p> <details> <summary><em>Expand here to see past versions of celldist1-1.png:</em></summary> <table style="border-collapse:separate; border-spacing:5px;"> <thead> <tr> <th style="text-align:left;"> Version </th> <th style="text-align:left;"> Author </th> <th style="text-align:left;"> Date </th> </tr> </thead> <tbody> <tr> <td style="text-align:left;"> <a href="https://github.com/simingz/cropseq/blob/8754cad65d01c5766bac60611204c4cdd22bb23a/docs/figure/Quality_metrics.Rmd/celldist1-1.png" target="_blank">8754cad</a> </td> <td style="text-align:left;"> szhao06 </td> <td style="text-align:left;"> 2018-12-02 </td> </tr> <tr> <td style="text-align:left;"> <a href="https://github.com/simingz/cropseq/blob/fdd56472119b02d3dfe1fadd755df6b8b1db3682/docs/figure/Quality_metrics.Rmd/celldist1-1.png" target="_blank">fdd5647</a> </td> <td style="text-align:left;"> szhao06 </td> <td style="text-align:left;"> 2018-12-01 </td> </tr> </tbody> </table> <p></details></p> <ul> <li>number of cells only targeted for that locus</li> </ul> <pre class="r"><code># Singletons (cells with only 1 gRNA) nlocus <- apply(dm1dfagg, 2, function (x) length(x[x>=1])) hist(nlocus,breaks=100, main="number of targeted locus each cell")</code></pre> <p><img src="figure/Quality_metrics.Rmd/unnamed-chunk-1-1.png" width="672" style="display: block; margin: auto;" /></p> <details> <summary><em>Expand here to see past versions of unnamed-chunk-1-1.png:</em></summary> <table style="border-collapse:separate; border-spacing:5px;"> <thead> <tr> <th style="text-align:left;"> Version </th> <th style="text-align:left;"> Author </th> <th style="text-align:left;"> Date </th> </tr> </thead> <tbody> <tr> <td style="text-align:left;"> <a href="https://github.com/simingz/cropseq/blob/8754cad65d01c5766bac60611204c4cdd22bb23a/docs/figure/Quality_metrics.Rmd/unnamed-chunk-1-1.png" target="_blank">8754cad</a> </td> <td style="text-align:left;"> szhao06 </td> <td style="text-align:left;"> 2018-12-02 </td> </tr> </tbody> </table> <p></details></p> <pre class="r"><code>dm1dfagg.uni= dm1dfagg[,nlocus==1] ncell.uni <- apply(dm1dfagg.uni,1, function (x) length(x[x>=1])) barplot(ncell.uni,las=2,cex.lab=1,main= "# cells uniquely targted for each locus")</code></pre> <p><img src="figure/Quality_metrics.Rmd/unnamed-chunk-1-2.png" width="672" style="display: block; margin: auto;" /></p> <details> <summary><em>Expand here to see past versions of unnamed-chunk-1-2.png:</em></summary> <table style="border-collapse:separate; border-spacing:5px;"> <thead> <tr> <th style="text-align:left;"> Version </th> <th style="text-align:left;"> Author </th> <th style="text-align:left;"> Date </th> </tr> </thead> <tbody> <tr> <td style="text-align:left;"> <a href="https://github.com/simingz/cropseq/blob/8754cad65d01c5766bac60611204c4cdd22bb23a/docs/figure/Quality_metrics.Rmd/unnamed-chunk-1-2.png" target="_blank">8754cad</a> </td> <td style="text-align:left;"> szhao06 </td> <td style="text-align:left;"> 2018-12-02 </td> </tr> </tbody> </table> <p></details></p> </div> <div id="umi-count-distribution-for-cells-with-unique-targeted-locus" class="section level2"> <h2>UMI count distribution for cells with unique targeted locus</h2> <pre class="r"><code># Singletons (cells with only 1 targeted locus) dm.uni <- dm[,nlocus==1] nUMI <- colSums(dm.uni) hist(nUMI,breaks=100,xlim=c(0,1e5)) </code></pre> <p><img src="figure/Quality_metrics.Rmd/UMI-1.png" width="672" style="display: block; margin: auto;" /></p> <details> <summary><em>Expand here to see past versions of UMI-1.png:</em></summary> <table style="border-collapse:separate; border-spacing:5px;"> <thead> <tr> <th style="text-align:left;"> Version </th> <th style="text-align:left;"> Author </th> <th style="text-align:left;"> Date </th> </tr> </thead> <tbody> <tr> <td style="text-align:left;"> <a href="https://github.com/simingz/cropseq/blob/8754cad65d01c5766bac60611204c4cdd22bb23a/docs/figure/Quality_metrics.Rmd/UMI-1.png" target="_blank">8754cad</a> </td> <td style="text-align:left;"> szhao06 </td> <td style="text-align:left;"> 2018-12-02 </td> </tr> </tbody> </table> <p></details></p> </div> <div id="umi-count-distribution-for-grnas-in-cells-with-unique-targeted-locus" class="section level2"> <h2>UMI count distribution for gRNAs in cells with unique targeted locus</h2> <pre class="r"><code># Singletons (cells with only 1 targeted locus) nUMIgRNA <- colSums(tail(dm.uni,76)) hist(nUMIgRNA,breaks=500,xlim=c(0,20), main = "Histogram of nUMI for gRNAs") </code></pre> <p><img src="figure/Quality_metrics.Rmd/UMIgRNA-1.png" width="672" style="display: block; margin: auto;" /></p> </div> <div id="prepare-data-for-differential-gene-expression" class="section level2"> <h2>Prepare data for differential gene expression</h2> <pre class="r"><code>save(dm,dm1dfagg,nlocus, file="data/DE_input.Rd")</code></pre> <p>Parameters used:</p> <ul> <li><p>for a cell to be considered targeted uniquely at a locus: total read counts for the 3 gRNAs targeting that locus >1, total read counts for gRNA of other locus=0.</p></li> <li><p>negative control: neg_EGFP and neg_CTRL are pooled together.</p></li> <li><p>cells to be exluded due to low total UMI count: no filtering</p></li> </ul> </div> <div id="session-information" class="section level2"> <h2>Session information</h2> <pre class="r"><code>sessionInfo()</code></pre> <pre><code>R version 3.3.2 (2016-10-31) Platform: x86_64-apple-darwin11.4.2 (64-bit) Running under: OS X El Capitan 10.11.6 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] stats graphics grDevices utils datasets methods base other attached packages: [1] dplyr_0.7.5 Matrix_1.2-10 loaded via a namespace (and not attached): [1] Rcpp_0.12.17 knitr_1.20 bindr_0.1.1 [4] whisker_0.3-2 magrittr_1.5 workflowr_1.1.1 [7] tidyselect_0.2.4 lattice_0.20-35 R6_2.2.2 [10] rlang_0.2.1 stringr_1.2.0 tools_3.3.2 [13] grid_3.3.2 R.oo_1.22.0 git2r_0.18.0 [16] htmltools_0.3.6 yaml_2.1.16 rprojroot_1.2 [19] digest_0.6.12 assertthat_0.2.0 tibble_1.4.2 [22] bindrcpp_0.2.2 purrr_0.2.5 R.utils_2.7.0 [25] glue_1.2.0 evaluate_0.10 rmarkdown_1.10 [28] stringi_1.1.5 pillar_1.2.3 backports_1.0.5 [31] R.methodsS3_1.7.1 pkgconfig_2.0.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.1.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>