Skip to content
Snippets Groups Projects
Crossover-identification-with-sscocaller-and-comapr.html 189 KiB
Newer Older
Ruqian Lyu's avatar
Ruqian Lyu committed
<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />


<meta name="author" content="Ruqian Lyu" />


Ruqian Lyu's avatar
Ruqian Lyu committed
<title>Crossover-identification-with-sgcocaller-and-comapr</title>
Ruqian Lyu's avatar
Ruqian Lyu committed

Ruqian Lyu's avatar
Ruqian Lyu committed
<script src="site_libs/header-attrs-2.11/header-attrs.js"></script>
<script src="site_libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
Ruqian Lyu's avatar
Ruqian Lyu committed
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="site_libs/bootstrap-3.3.5/css/journal.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>
Ruqian Lyu's avatar
Ruqian Lyu committed
<style>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;}
       code {color: inherit; background-color: rgba(0, 0, 0, 0.04);}
       pre:not([class]) { background-color: white }</style>
Ruqian Lyu's avatar
Ruqian Lyu committed
<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/font-awesome-5.1.0/css/all.css" rel="stylesheet" />
<link href="site_libs/font-awesome-5.1.0/css/v4-shims.css" rel="stylesheet" />

<link rel="icon" href="https://github.com/workflowr/workflowr-assets/raw/master/img/reproducible.png">
<!-- Add a small amount of space between sections. -->
<style type="text/css">
div.section {
  padding-top: 12px;
}
</style>

Ruqian Lyu's avatar
Ruqian Lyu committed
<style type="text/css">
  code{white-space: pre-wrap;}
  span.smallcaps{font-variant: small-caps;}
  span.underline{text-decoration: underline;}
  div.column{display: inline-block; vertical-align: top; width: 50%;}
  div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
  ul.task-list{list-style: none;}
    </style>


Ruqian Lyu's avatar
Ruqian Lyu committed
<style type="text/css">
  code {
    white-space: pre;
  }
  .sourceCode {
    overflow: visible;
  }
</style>
Ruqian Lyu's avatar
Ruqian Lyu committed
<style type="text/css" data-origin="pandoc">
Ruqian Lyu's avatar
Ruqian Lyu committed
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
Ruqian Lyu's avatar
Ruqian Lyu committed
.sourceCode { overflow: visible; }
Ruqian Lyu's avatar
Ruqian Lyu committed
code.sourceCode > span { color: inherit; text-decoration: inherit; }
Ruqian Lyu's avatar
Ruqian Lyu committed
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
Ruqian Lyu's avatar
Ruqian Lyu committed
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
Ruqian Lyu's avatar
Ruqian Lyu committed
}
pre.numberSource code
  { counter-reset: source-line 0; }
pre.numberSource code > span
  { position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
  { content: counter(source-line);
    position: relative; left: -1em; text-align: right; vertical-align: baseline;
    border: none; display: inline-block;
    -webkit-touch-callout: none; -webkit-user-select: none;
    -khtml-user-select: none; -moz-user-select: none;
    -ms-user-select: none; user-select: none;
    padding: 0 4px; width: 4em;
    color: #aaaaaa;
  }
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa;  padding-left: 4px; }
div.sourceCode
  {   }
@media screen {
Ruqian Lyu's avatar
Ruqian Lyu committed
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
Ruqian Lyu's avatar
Ruqian Lyu committed
}
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */

.sourceCode .row {
  width: 100%;
}
.sourceCode {
  overflow-x: auto;
}
.code-folding-btn {
  margin-right: -30px;
}
</style>
<script>
// apply pandoc div.sourceCode style to pre.sourceCode instead
(function() {
  var sheets = document.styleSheets;
  for (var i = 0; i < sheets.length; i++) {
    if (sheets[i].ownerNode.dataset["origin"] !== "pandoc") continue;
    try { var rules = sheets[i].cssRules; } catch (e) { continue; }
    for (var j = 0; j < rules.length; j++) {
      var rule = rules[j];
      // check if there is a div.sourceCode rule
      if (rule.type !== rule.STYLE_RULE || rule.selectorText !== "div.sourceCode") continue;
      var style = rule.style.cssText;
      // check if color or background-color is set
      if (rule.style.color === '' && rule.style.backgroundColor === '') continue;
      // replace div.sourceCode by a pre.sourceCode rule
      sheets[i].deleteRule(j);
      sheets[i].insertRule('pre.sourceCode{' + style + '}', j);
    }
  }
})();
</script>
Ruqian Lyu's avatar
Ruqian Lyu committed


<style type="text/css">
Ruqian Lyu's avatar
Ruqian Lyu committed
/* for pandoc --citeproc since 2.11 */
div.csl-bib-body { }
div.csl-entry {
  clear: both;
Ruqian Lyu's avatar
Ruqian Lyu committed
}
Ruqian Lyu's avatar
Ruqian Lyu committed
.hanging div.csl-entry {
  margin-left:2em;
  text-indent:-2em;
Ruqian Lyu's avatar
Ruqian Lyu committed
}
Ruqian Lyu's avatar
Ruqian Lyu committed
div.csl-left-margin {
  min-width:2em;
  float:left;
Ruqian Lyu's avatar
Ruqian Lyu committed
}
Ruqian Lyu's avatar
Ruqian Lyu committed
div.csl-right-inline {
  margin-left:2em;
  padding-left:1em;
Ruqian Lyu's avatar
Ruqian Lyu committed
}
Ruqian Lyu's avatar
Ruqian Lyu committed
div.csl-indent {
  margin-left: 2em;
Ruqian Lyu's avatar
Ruqian Lyu committed
}
</style>




<style type = "text/css">
.main-container {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
img {
  max-width:100%;
}
.tabbed-pane {
  padding-top: 12px;
}
.html-widget {
  margin-bottom: 20px;
}
button.code-folding-btn:focus {
  outline: none;
}
summary {
  display: list-item;
}
Ruqian Lyu's avatar
Ruqian Lyu committed
pre code {
  padding: 0;
}
Ruqian Lyu's avatar
Ruqian Lyu committed
</style>


<style type="text/css">
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  border-radius: 0 6px 6px 6px;
}
.dropdown-submenu:hover>.dropdown-menu {
  display: block;
}
.dropdown-submenu>a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #cccccc;
  margin-top: 5px;
  margin-right: -10px;
}
.dropdown-submenu:hover>a:after {
Ruqian Lyu's avatar
Ruqian Lyu committed
  border-left-color: #adb5bd;
Ruqian Lyu's avatar
Ruqian Lyu committed
}
.dropdown-submenu.pull-left {
  float: none;
}
.dropdown-submenu.pull-left>.dropdown-menu {
  left: -100%;
  margin-left: 10px;
  border-radius: 6px 0 6px 6px;
}
</style>

Ruqian Lyu's avatar
Ruqian Lyu committed
<script type="text/javascript">
Ruqian Lyu's avatar
Ruqian Lyu committed
// 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
Ruqian Lyu's avatar
Ruqian Lyu committed
  menuAnchor.tab('show');
Ruqian Lyu's avatar
Ruqian Lyu committed

  // if it's got a parent navbar menu mark it active as well
  menuAnchor.closest('li.dropdown').addClass('active');
Ruqian Lyu's avatar
Ruqian Lyu committed

  // Navbar adjustments
  var navHeight = $(".navbar").first().height() + 15;
  var style = document.createElement('style');
  var pt = "padding-top: " + navHeight + "px; ";
  var mt = "margin-top: -" + navHeight + "px; ";
  var css = "";
  // offset scroll position for anchor links (for fixed navbar)
  for (var i = 1; i <= 6; i++) {
    css += ".section h" + i + "{ " + pt + mt + "}\n";
  }
  style.innerHTML = "body {" + pt + "padding-bottom: 40px; }\n" + css;
  document.head.appendChild(style);
Ruqian Lyu's avatar
Ruqian Lyu committed
});
</script>

<!-- tabsets -->

<style type="text/css">
.tabset-dropdown > .nav-tabs {
  display: inline-table;
  max-height: 500px;
  min-height: 44px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.tabset-dropdown > .nav-tabs > li.active:before {
  content: "";
  font-family: 'Glyphicons Halflings';
  display: inline-block;
  padding: 10px;
  border-right: 1px solid #ddd;
}

.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
  content: "&#xe258;";
  border: none;
}

.tabset-dropdown > .nav-tabs.nav-tabs-open:before {
  content: "";
  font-family: 'Glyphicons Halflings';
  display: inline-block;
  padding: 10px;
  border-right: 1px solid #ddd;
}

.tabset-dropdown > .nav-tabs > li.active {
  display: block;
}

.tabset-dropdown > .nav-tabs > li > a,
.tabset-dropdown > .nav-tabs > li > a:focus,
.tabset-dropdown > .nav-tabs > li > a:hover {
  border: none;
  display: inline-block;
  border-radius: 4px;
  background-color: transparent;
}

.tabset-dropdown > .nav-tabs.nav-tabs-open > li {
  display: block;
  float: none;
}

.tabset-dropdown > .nav-tabs > li {
  display: none;
}
</style>

<!-- code folding -->
<style type="text/css">
.code-folding-btn { margin-bottom: 4px; }
</style>



<style type="text/css">

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

@media print {
.toc-content {
  /* see https://github.com/w3c/csswg-drafts/issues/4434 */
  float: right;
}
}

.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;
}

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


</style>



</head>

<body>


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


<!-- setup 3col/9col grid for toc_float and main content  -->
Ruqian Lyu's avatar
Ruqian Lyu committed
<div class="row">
Ruqian Lyu's avatar
Ruqian Lyu committed
<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>
Ruqian Lyu's avatar
Ruqian Lyu committed
      <a class="navbar-brand" href="index.html">Crossover-calling-single-gamete-mouse</a>
Ruqian Lyu's avatar
Ruqian Lyu committed
    </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>
Ruqian Lyu's avatar
Ruqian Lyu committed
  <a href="https://gitlab.svi.edu.au/biocellgen-public/hinch-single-sperm-DNA-seq-processing">
Ruqian Lyu's avatar
Ruqian Lyu committed
    <span class="fa fa-github"></span>
     
  </a>
</li>
      </ul>
    </div><!--/.nav-collapse -->
  </div><!--/.container -->
</div><!--/.navbar -->

Ruqian Lyu's avatar
Ruqian Lyu committed
<div id="header">
Ruqian Lyu's avatar
Ruqian Lyu committed

Ruqian Lyu's avatar
Ruqian Lyu committed
<div class="btn-group pull-right float-right">
<button type="button" class="btn btn-default btn-xs btn-secondary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span>Code</span> <span class="caret"></span></button>
<ul class="dropdown-menu dropdown-menu-right" style="min-width: 50px;">
Ruqian Lyu's avatar
Ruqian Lyu committed
<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>



Ruqian Lyu's avatar
Ruqian Lyu committed
<h1 class="title toc-ignore">Crossover-identification-with-sgcocaller-and-comapr</h1>
Ruqian Lyu's avatar
Ruqian Lyu committed
<h4 class="author">Ruqian Lyu</h4>

</div>


<p>
<button type="button" class="btn btn-default btn-workflowr btn-workflowr-report" data-toggle="collapse" data-target="#workflowr-report">
<span class="glyphicon glyphicon-list" aria-hidden="true"></span> workflowr <span class="glyphicon glyphicon-exclamation-sign text-danger" aria-hidden="true"></span>
</button>
</p>
<div id="workflowr-report" class="collapse">
<ul class="nav nav-tabs">
<li class="active">
<a data-toggle="tab" href="#summary">Summary</a>
</li>
<li>
<a data-toggle="tab" href="#checks"> Checks <span class="glyphicon glyphicon-exclamation-sign text-danger" aria-hidden="true"></span> </a>
</li>
<li>
<a data-toggle="tab" href="#versions">Past versions</a>
</li>
</ul>
<div class="tab-content">
<div id="summary" class="tab-pane fade in active">
<p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<strong>Last updated:</strong> 2022-01-10
Ruqian Lyu's avatar
Ruqian Lyu committed
</p>
<p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<strong>Checks:</strong> <span class="glyphicon glyphicon-ok text-success" aria-hidden="true"></span> 5 <span class="glyphicon glyphicon-exclamation-sign text-danger" aria-hidden="true"></span> 2
Ruqian Lyu's avatar
Ruqian Lyu committed
</p>
<p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<strong>Knit directory:</strong> <code>Hinch2019/</code> <span class="glyphicon glyphicon-question-sign" aria-hidden="true" title="This is the local directory in which the code in this file was executed."> </span>
Ruqian Lyu's avatar
Ruqian Lyu committed
</p>
<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> (version 1.6.2). The <em>Checks</em> tab describes the reproducibility checks that were applied when the results were created. The <em>Past versions</em> tab lists the development history.
</p>
<hr>
</div>
<div id="checks" class="tab-pane fade">
<div id="workflowr-checks" class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<p class="panel-title">
<a data-toggle="collapse" data-parent="#workflowr-checks" href="#strongRMarkdownfilestronguncommittedchanges"> <span class="glyphicon glyphicon-exclamation-sign text-danger" aria-hidden="true"></span> <strong>R Markdown file:</strong> uncommitted changes </a>
</p>
</div>
<div id="strongRMarkdownfilestronguncommittedchanges" class="panel-collapse collapse">
<div class="panel-body">
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>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>
Ruqian Lyu's avatar
Ruqian Lyu committed
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<p class="panel-title">
<a data-toggle="collapse" data-parent="#workflowr-checks" href="#strongEnvironmentstrongempty"> <span class="glyphicon glyphicon-ok text-success" aria-hidden="true"></span> <strong>Environment:</strong> empty </a>
</p>
</div>
<div id="strongEnvironmentstrongempty" class="panel-collapse collapse">
<div class="panel-body">
<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>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<p class="panel-title">
Ruqian Lyu's avatar
Ruqian Lyu committed
<a data-toggle="collapse" data-parent="#workflowr-checks" href="#strongSeedstrongcodesetseed20220102code"> <span class="glyphicon glyphicon-ok text-success" aria-hidden="true"></span> <strong>Seed:</strong> <code>set.seed(20220102)</code> </a>
Ruqian Lyu's avatar
Ruqian Lyu committed
</p>
</div>
Ruqian Lyu's avatar
Ruqian Lyu committed
<div id="strongSeedstrongcodesetseed20220102code" class="panel-collapse collapse">
Ruqian Lyu's avatar
Ruqian Lyu committed
<div class="panel-body">
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>The command <code>set.seed(20220102)</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>
Ruqian Lyu's avatar
Ruqian Lyu committed
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<p class="panel-title">
<a data-toggle="collapse" data-parent="#workflowr-checks" href="#strongSessioninformationstrongrecorded"> <span class="glyphicon glyphicon-ok text-success" aria-hidden="true"></span> <strong>Session information:</strong> recorded </a>
</p>
</div>
<div id="strongSessioninformationstrongrecorded" class="panel-collapse collapse">
<div class="panel-body">
<p>Great job! Recording the operating system, R version, and package versions is critical for reproducibility.</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<p class="panel-title">
<a data-toggle="collapse" data-parent="#workflowr-checks" href="#strongCachestrongnone"> <span class="glyphicon glyphicon-ok text-success" aria-hidden="true"></span> <strong>Cache:</strong> none </a>
</p>
</div>
<div id="strongCachestrongnone" class="panel-collapse collapse">
<div class="panel-body">
<p>Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<p class="panel-title">
Ruqian Lyu's avatar
Ruqian Lyu committed
<a data-toggle="collapse" data-parent="#workflowr-checks" href="#strongFilepathsstrongabsolute"> <span class="glyphicon glyphicon-exclamation-sign text-danger" aria-hidden="true"></span> <strong>File paths:</strong> absolute </a>
Ruqian Lyu's avatar
Ruqian Lyu committed
</p>
</div>
Ruqian Lyu's avatar
Ruqian Lyu committed
<div id="strongFilepathsstrongabsolute" class="panel-collapse collapse">
Ruqian Lyu's avatar
Ruqian Lyu committed
<div class="panel-body">
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>
Using absolute paths to the files within your workflowr project makes it difficult for you and others to run your code on a different machine. Change the absolute path(s) below to the suggested relative path(s) to make your code more reproducible.
</p>
<table class="table table-condensed table-hover">
<thead>
<tr>
<th style="text-align:left;">
absolute
</th>
<th style="text-align:left;">
relative
</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;">
/mnt/beegfs/mccarthy/scratch/general/Datasets/Hinch2019/
</td>
<td style="text-align:left;">
.
</td>
</tr>
</tbody>
</table>
Ruqian Lyu's avatar
Ruqian Lyu committed
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<p class="panel-title">
Ruqian Lyu's avatar
Ruqian Lyu committed
<a data-toggle="collapse" data-parent="#workflowr-checks" href="#strongRepositoryversionstrongahrefhttpsgitlabsvieduaubiocellgenpublichinchsinglespermDNAseqprocessingtreec9092bedad3f751962d2c8a34dfad9068d146ca0targetblankc9092bea"> <span class="glyphicon glyphicon-ok text-success" aria-hidden="true"></span> <strong>Repository version:</strong> <a href="https://gitlab.svi.edu.au/biocellgen-public/hinch-single-sperm-DNA-seq-processing/tree/c9092bedad3f751962d2c8a34dfad9068d146ca0" target="_blank">c9092be</a> </a>
Ruqian Lyu's avatar
Ruqian Lyu committed
</p>
</div>
Ruqian Lyu's avatar
Ruqian Lyu committed
<div id="strongRepositoryversionstrongahrefhttpsgitlabsvieduaubiocellgenpublichinchsinglespermDNAseqprocessingtreec9092bedad3f751962d2c8a34dfad9068d146ca0targetblankc9092bea" class="panel-collapse collapse">
Ruqian Lyu's avatar
Ruqian Lyu committed
<div class="panel-body">
<p>
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
</p>
<p>
Ruqian Lyu's avatar
Ruqian Lyu committed
The results in this page were generated with repository version <a href="https://gitlab.svi.edu.au/biocellgen-public/hinch-single-sperm-DNA-seq-processing/tree/c9092bedad3f751962d2c8a34dfad9068d146ca0" target="_blank">c9092be</a>. See the <em>Past versions</em> tab to see a history of the changes made to the R Markdown and HTML files.
Ruqian Lyu's avatar
Ruqian Lyu committed
</p>
<p>
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:
</p>
<pre><code>
Ignored files:
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/

Untracked files:
    Untracked:  .Renviron
    Untracked:  .gitignore
    Untracked:  .snakemake/
Ruqian Lyu's avatar
Ruqian Lyu committed
    Untracked:  Hinch2019.Rproj
    Untracked:  Rplots.pdf
    Untracked:  Snakefile_hc.log.out
    Untracked:  Snakefile_hinch.log.out
    Untracked:  Snakefile_plotDia.log.out
    Untracked:  Snakefile_scale.log.out
    Untracked:  Snakefile_sgcocaller.log.out
    Untracked:  SraRunTable_hinch.txt
Ruqian Lyu's avatar
Ruqian Lyu committed
    Untracked:  _workflowr.yml
    Untracked:  analysis/figure/
Ruqian Lyu's avatar
Ruqian Lyu committed
    Untracked:  benchmarks/
    Untracked:  code/
Ruqian Lyu's avatar
Ruqian Lyu committed
    Untracked:  data/
Ruqian Lyu's avatar
Ruqian Lyu committed
    Untracked:  debugSwphase/
    Untracked:  e.nimq
    Untracked:  envs/
    Untracked:  fastp.html
    Untracked:  fastp.json
    Untracked:  log/
    Untracked:  output/
    Untracked:  reduceSNPsRunPhase.log.out
Ruqian Lyu's avatar
Ruqian Lyu committed
    Untracked:  references/
Ruqian Lyu's avatar
Ruqian Lyu committed
    Untracked:  runPhase.log.out
    Untracked:  run_phase.snk
    Untracked:  run_phase_reducedSNPs.snk
    Untracked:  run_phase_usingEntireReads.snk
    Untracked:  run_plot_diagnostic.snk
Ruqian Lyu's avatar
Ruqian Lyu committed
    Untracked:  run_scalability.snk
Ruqian Lyu's avatar
Ruqian Lyu committed
    Untracked:  run_swphase.snk
    Untracked:  runsFilterHC.out
    Untracked:  sampleNames.txt
    Untracked:  sbatchTest.sh
    Untracked:  sgcocaller/
    Untracked:  slurm-100266.out
    Untracked:  slurm-100267.out
    Untracked:  slurm-100326.out
    Untracked:  srr_failed.txt
    Untracked:  submit-runPhase.sh
    Untracked:  submit-runPhaseEntireReads.sh
    Untracked:  submit-runPhaseReduceSNPs.sh
    Untracked:  submit-runPlot.sh
    Untracked:  submit-runScale.sh
    Untracked:  submit-runSgcocaller.sh
    Untracked:  submit-runSwPhaseLargeBinsize.sh
    Untracked:  submit-subsample.sh
    Untracked:  submit-tagCBMerge.sh
    Untracked:  success.txt
    Untracked:  tagCBandMerge.snk
    Untracked:  tagMergeCB.log.out
Ruqian Lyu's avatar
Ruqian Lyu committed

Unstaged changes:
Ruqian Lyu's avatar
Ruqian Lyu committed
    Modified:   analysis/Crossover-identification-with-sscocaller-and-comapr.Rmd
    Modified:   analysis/index.Rmd
    Modified:   analysis/rejy.bib
    Modified:   run_alignment.snk
    Modified:   run_sscocaller.snk
    Modified:   run_vcalling.snk
    Modified:   sampleNames_meta.txt
    Modified:   submit-mergeBams.sh
    Modified:   submit-runDenovoVC.sh
    Modified:   submit-wgetSRAFastqdump.sh
Ruqian Lyu's avatar
Ruqian Lyu committed

</code></pre>
<p>
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.
</p>
</div>
</div>
</div>
</div>
<hr>
</div>
<div id="versions" class="tab-pane fade">
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>
Ruqian Lyu's avatar
Ruqian Lyu committed
These are the previous versions of the repository in which changes were made to the R Markdown (<code>analysis/Crossover-identification-with-sscocaller-and-comapr.Rmd</code>) and HTML (<code>public/Crossover-identification-with-sscocaller-and-comapr.html</code>) files. If you’ve configured a remote Git repository (see <code>?wflow_git_remote</code>), click on the hyperlinks in the table below to view the files as they were in that past version.
Ruqian Lyu's avatar
Ruqian Lyu committed
</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<div class="table-responsive">
<table class="table table-condensed table-hover">
<thead>
<tr>
<th>
File
</th>
<th>
Version
</th>
<th>
Author
</th>
<th>
Date
</th>
<th>
Message
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Rmd
</td>
<td>
<a href="https://gitlab.svi.edu.au/biocellgen-public/hinch-single-sperm-DNA-seq-processing/blob/5ccd8cb8fc4659b452d1a6f4449da2b5d03ae434/analysis/Crossover-identification-with-sscocaller-and-comapr.Rmd" target="_blank">5ccd8cb</a>
</td>
<td>
rlyu
</td>
<td>
2021-12-17
</td>
<td>
update readme
</td>
</tr>
<tr>
<td>
html
</td>
<td>
<a href="https://gitlab.svi.edu.au/biocellgen-public/hinch-single-sperm-DNA-seq-processing/blob/a5f11c9c9e71b4c9cdae10b3930a48a292825fe2/public/Crossover-identification-with-sscocaller-and-comapr.html" target="_blank">a5f11c9</a>
</td>
<td>
rlyu
</td>
<td>
2021-05-25
</td>
<td>
update hinch dataset analysis report
</td>
</tr>
<tr>
<td>
html
</td>
<td>
<a href="https://gitlab.svi.edu.au/biocellgen-public/hinch-single-sperm-DNA-seq-processing/blob/b017d7f95f384fe9c718236a1621b9e571f9a218/public/Crossover-identification-with-sscocaller-and-comapr.html" target="_blank">b017d7f</a>
</td>
<td>
rlyu
</td>
<td>
2021-05-17
</td>
<td>
update analysis rmd
</td>
</tr>
<tr>
<td>
html
</td>
<td>
<a href="https://gitlab.svi.edu.au/biocellgen-public/hinch-single-sperm-DNA-seq-processing/blob/625fb5bbd8df452c3367fb6f53cf39530fe8c023/public/Crossover-identification-with-sscocaller-and-comapr.html" target="_blank">625fb5b</a>
</td>
<td>
rlyu
</td>
<td>
2021-05-17
</td>
<td>
add html
</td>
</tr>
</tbody>
</table>
</div>
Ruqian Lyu's avatar
Ruqian Lyu committed
<hr>
</div>
</div>
</div>
<div id="introduction" class="section level2">
<h2>Introduction</h2>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>We will demonstrate the usage of <a href="https://gitlab.svi.edu.au/biocellgen-public/sgcocaller"><code>sgcocaller</code></a> and <a href="https://github.com/ruqianl/comapr"><code>comapr</code></a> for identifying and visualizing crossovers regions from single-sperm DNA sequencing dataset.</p>
<p><code>sgcocaller</code>(<a href="https://gitlab.svi.edu.au/biocellgen-public/sgcocaller" class="uri">https://gitlab.svi.edu.au/biocellgen-public/sgcocaller</a>) applies a binomial Hidden Markov Model for inferring haplotypes of single sperm genomes from the aligned DNA reads in a BAM file. The inferred haplotype sequence can then be used for calling crossovers by identifying haplotype shifts (see <a href="https://github.com/ruqianl/comapr"><code>comapr</code></a> ).</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
</div>
<div id="downloading-example-dataset" class="section level2">
<h2>Downloading example dataset</h2>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>An individual mouse genetic map was constructed by DNA sequencing of 217 sperm cells from a F1 hybrid mouse (B6 X CAST) <span class="citation">(Hinch et al. 2019)</span>. We will apply <code>sgcocaller</code> on this dataset and it can be downloaded from GEO (Gene Expression Omnibus) with accession <a href="https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE125326">GSE125326</a></p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>The slurm submission script <code>submit-wgetSRAFastqdump.sh</code> at <a href="https://gitlab.svi.edu.au/biocellgen-public/hinch-single-sperm-DNA-seq-processing.git">repo</a> can be used for downloading the <code>.sra</code> files and dumping them into paired fastq files for each sperm (including two bulk sperm samples).</p>
</div>
<div id="dataset-preprocessing" class="section level2">
<h2>Dataset preprocessing</h2>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>The preprocessing steps include read filtering and mapping, subsample reads and append cell barcodes to reads, merge bams, and find informative SNP markers.</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<div id="alignment" class="section level3">
<h3>1 Alignment</h3>
<p>The downloaded fastq files for each sperm cells (and the bulk sperm samples) were aligned to mouse reference genome mm10. The workflow <a href="https://gitlab.svi.edu.au/biocellgen-public/hinch-single-sperm-DNA-seq-processing.git"><code>run_alignment.snk</code></a> which is a <a href="https://snakemake.readthedocs.io/en/stable/">Snakemake</a> file that defined steps/rules including</p>
<ul>
<li>running <a href="https://github.com/OpenGene/fastp"><code>fastp</code></a> for filtering reads and adapter trimming</li>
<li>running <a href="https://github.com/lh3/minimap2"><code>minimap2</code></a> for mapping reads to reference genome mm10</li>
<li>running GATK MarkDuplicates</li>
<li>running GATK AddOrReplaceReadGroup</li>
<li>running sorting and indexing bam files using <code>samtools</code></li>
</ul>
</div>
<div id="subsample-reads-and-append-cb-tag" class="section level3">
<h3>2 Subsample reads and append CB tag</h3>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p><code>sgcocaller</code> is designed to process DNA reads with CB (cell barcode) tags from all single sperm cells stored in one BAM file. And to reduce some processing burdens, the mapped reads for each sperm were de-duplicated and subsamples to a fraction of 0.5.</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>In addition, before merging reads from each sperm, the CB (cell barcode, the SRR ID) tag was appended to each DNA read using <a href="https://github.com/ruqianl/appendCB">appendCB</a>. Refer to steps defined in <code>run_subsample.snk</code>.</p>
</div>
<div id="merge-single-sperm-bam-files-into-one-bam" class="section level3">
<h3>3 Merge single-sperm bam files into one Bam</h3>
<p><code>samtools</code> was used for merge CB-taged reads from all single sperm to one BAM file. See <code>submit-mergeBams.sh</code>.</p>
</div>
Ruqian Lyu's avatar
Ruqian Lyu committed
<div id="find-informative-snp-markers" class="section level3">
<h3>4 Find informative SNP markers</h3>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>The informative SNP markers are those SNPs which differ between the two mouse stains that were used to generate the F1 hybrid mouse (CAST and BL6). The following steps were applied which largely align with what has been described in the original paper <span class="citation">(Hinch et al. 2019)</span>.</p>
<p>The bulk sperm sample <code>SRR8454653</code> was used for calling de no vo variants for this mouse individual using GATK HaplotypeCaller. Only the HET SNPs with <code>MQ&gt;50</code> AND <code>DP&gt;10</code> AND <code>DP&lt;80</code> were kept. The SNPs were further filtered to only keep the positions which have been called as Homo_alternative <code>CAST_EiJ.mgp.v5.snps.dbSNP142.vcf.gz</code> downloaded from the dbsnp database from Mouse Genome Project<span class="citation">(Keane et al. 2011)</span>.</p>
</div>
</div>
Ruqian Lyu's avatar
Ruqian Lyu committed
<div id="running-sgcocaller" class="section level2">
<h2>Running sgcocaller</h2>
<p>With the DNA reads from each sperm were tagged and merged into one BAM file, we can run <code>sgcocaller</code> for inferring the haplotype states against the list of informative SNP markers for each chromosome in each sperm.</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>The required input files are:</p>
<pre><code>mergedBam = &quot;output/alignment/mergedBam/mergedAll.bam&quot;,
vcfRef=&quot;output/variants/denovoVar/SRR8454653.mkdup.sort.rg.filter.snps.castVar.vcf.gz&quot;,
bcFile=&quot;output/alignment/mergedBam/mergedAll.bam.barcodes.txt&quot;</code></pre>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p><code>run_sgcocaller.snk</code> defines the rule for running <code>sgcocaller</code> on each chromosome for sperm cells. The command line was:</p>
<pre><code>sgcocaller --threads 4 --chrom &quot;chr1&quot; --chrName chr {input.mergedBam} \
Ruqian Lyu's avatar
Ruqian Lyu committed
           {input.vcfRef} {input.bcFile} --maxTotalReads 150 --maxDP 10 \
Ruqian Lyu's avatar
Ruqian Lyu committed
           sgcocaller/hinch/hinch_
Ruqian Lyu's avatar
Ruqian Lyu committed
</code></pre>
</div>
<div id="output-files" class="section level2">
<h2>Output files</h2>
<p>The generated output files (for each chromosome, here showing chr1):</p>
<ul>
<li>hinch_chr1_altCount.mtx, sparse matrix file, containing the alternative allele counts (the CAST alleles)</li>
<li>hinch_chr1_totalCount.mtx, sparse matrix file, containing the total allele counts (the CAST + BL6 alleles)</li>
<li>hinch_chr1_vi.mtx, sparse matrix file, containing the inferred Viterbi state (haplotype state) for each chromosome against the list of SNP markers in "_snpAnnot.txt".</li>
<li>hinch_chr1_viSegInfo.txt, txt file, containing the inferred Viterbi state segments information. Details below</li>
<li>hinch_chr1_snpAnnot.txt, txt file, containing the row annotations (SNPs) for the above sparse matrices.</li>
</ul>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p><em>Note</em>, the columns in these sparse matrices correspond to cells in the input <code>bcFile</code>.</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>**_viSegInfo.txt** contains summary statistics of inferred Viterbi state segments.</p>
<p>A Viterbi segment is defined by a list of consecutive SNPs having the same Viterbi state.</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>The columns in the <code>*_viSegInfo.txt</code> are:</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<ul>
<li>ithSperm,</li>
<li>Starting SNP position,</li>
<li>Ending SNP position,</li>
<li>the number of SNPs supporting the segment</li>
<li>the log likelihood ratio of the Viterbi segment</li>
<li>the inferred hidden state</li>
</ul>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p><strong>log likelihood ratio</strong></p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>The loglikelihood ratio is calculated by taking the inferred log likelihood and subtract the reversed log likelihood.</p>
<p>For example, the segment with two SNPs in the figure below: <img src="../public/meta_images/ratio_ll.png" /> The numbers in brackets indicating the (alternative allele counts, total allele counts) aligned to the two SNP positions.</p>
<p>The inferred log likelihood can be expressed as:</p>
<p><span class="math display">\[
inferredLogll = log(Trans_L)+log(dbinom(3,4,0.9))+log(dbinom(4,4,0.9))+log(Trans_R)
\]</span> The reversed log likelihood is then:</p>
<p><span class="math display">\[
reversedLogll = log(noTrans_L)+log(dbinom(3,4,0.1))+log(dbinom(4,4,0.1))+log(noTrans_R)
\]</span> Hence the logllRatio:</p>
<p><span class="math display">\[
logllRatio = inferredLogll - reversedLogll
\]</span></p>
<p>A larger <code>logllRatio</code> indicating we are more confident with the inferred Viterbi states for markers in the segment.</p>
</div>
<div id="diagnosic-plots" class="section level2">
<h2>Diagnosic plots</h2>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>The output files from <code>sgcocaller</code> can be directly parsed through <code>readHapState</code> function. However, we have a look at some cell-level metrics and segment-level metrics before we parse the <code>sgcocaller</code> output files.</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<div id="per-cell-qc" class="section level3">
<h3>Per cell QC</h3>
<p>The function <code>perCellQC</code> generates cell-level metrics in a data.frame and the plots in a list.</p>
<p>We first identify the relevant file paths:</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p><code>dataset_dir</code> is the ouput directory from running <code>sgcocaller</code> and <code>barcodeFile_path</code> points to the file containing the list of cell barcodes.</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="fu">suppressPackageStartupMessages</span>({</span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a>  <span class="fu">library</span>(comapr)</span>
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a>  <span class="fu">library</span>(ggplot2)</span>
<span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a>  <span class="fu">library</span>(dplyr)</span>
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a>  <span class="fu">library</span>(Gviz)</span>
<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a>  <span class="fu">library</span>(BiocParallel)</span>
<span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a>  <span class="fu">library</span>(SummarizedExperiment)</span>
<span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a>})</span></code></pre></div>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>path_dir <span class="ot">&lt;-</span> <span class="st">&quot;/mnt/beegfs/mccarthy/scratch/general/Datasets/Hinch2019/&quot;</span></span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a>dataset_dir <span class="ot">&lt;-</span> <span class="fu">paste0</span>(path_dir,<span class="st">&quot;output/sgcocaller/hinch/&quot;</span>)</span>
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a>barcodeFile_path <span class="ot">&lt;-</span><span class="fu">paste0</span>(path_dir,<span class="st">&quot;output/alignment/mergedBam/mergedAll.bam.barcodes.txt&quot;</span>)</span></code></pre></div>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>We can locate the files and list the files to have a look:</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="fu">list.files</span>(<span class="at">path=</span>dataset_dir)[<span class="dv">1</span><span class="sc">:</span><span class="dv">5</span>]</span></code></pre></div>
Ruqian Lyu's avatar
Ruqian Lyu committed
<pre><code>[1] &quot;hinch_chr1_altCount.mtx&quot;   &quot;hinch_chr1_snpAnnot.txt&quot;  
[3] &quot;hinch_chr1_totalCount.mtx&quot; &quot;hinch_chr1_vi.mtx&quot;        
[5] &quot;hinch_chr1_viSegInfo.txt&quot; </code></pre>
Ruqian Lyu's avatar
Ruqian Lyu committed
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a>BiocParallel<span class="sc">::</span><span class="fu">register</span>(BiocParallel<span class="sc">::</span><span class="fu">MulticoreParam</span>(<span class="at">workers =</span> <span class="dv">4</span>))</span>
<span id="cb7-2"><a href="#cb7-2" aria-hidden="true" tabindex="-1"></a><span class="co">#BiocParallel::register(BiocParallel::SerialParam())</span></span></code></pre></div>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>Running <code>perCellChrQC</code> function to find the cell-level statistics:</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<div class="sourceCode" id="cb8"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a>pcqc <span class="ot">&lt;-</span> <span class="fu">perCellChrQC</span>(<span class="st">&quot;hinch&quot;</span>,</span>
<span id="cb8-2"><a href="#cb8-2" aria-hidden="true" tabindex="-1"></a>                     <span class="at">chroms=</span><span class="fu">paste0</span>(<span class="st">&quot;chr&quot;</span>,<span class="dv">1</span><span class="sc">:</span><span class="dv">19</span>),</span>
<span id="cb8-3"><a href="#cb8-3" aria-hidden="true" tabindex="-1"></a>                     <span class="at">path=</span>dataset_dir,</span>
<span id="cb8-4"><a href="#cb8-4" aria-hidden="true" tabindex="-1"></a>                     <span class="at">barcodeFile=</span>barcodeFile_path)</span></code></pre></div>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>The generated scatter plots for selected chromosomes:</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<div class="sourceCode" id="cb9"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>pcqc<span class="sc">$</span>plot</span></code></pre></div>
Ruqian Lyu's avatar
Ruqian Lyu committed
<pre><code>Warning: Transformation introduced infinite values in continuous x-axis</code></pre>
<p><img src="figure/Crossover-identification-with-sscocaller-and-comapr.Rmd/unnamed-chunk-6-1.png" width="672" style="display: block; margin: auto;" /></p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>
<button type="button" class="btn btn-default btn-xs btn-workflowr btn-workflowr-fig" data-toggle="collapse" data-target="#fig-unnamed-chunk-6-1">
Past versions of unnamed-chunk-6-1.png
</button>
</p>
<div id="fig-unnamed-chunk-6-1" class="collapse">
<div class="table-responsive">
<table class="table table-condensed table-hover">
<thead>
<tr>
<th>
Version
</th>
<th>
Author
</th>
<th>
Date
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="https://gitlab.svi.edu.au/biocellgen-public/hinch-single-sperm-DNA-seq-processing/blob/625fb5bbd8df452c3367fb6f53cf39530fe8c023/public/figure/Crossover-identification-with-sscocaller-and-comapr.Rmd/unnamed-chunk-6-1.png" target="_blank">625fb5b</a>
</td>
<td>
rlyu
</td>
<td>
2021-05-17
</td>
</tr>
</tbody>
</table>
</div>
</div>
Ruqian Lyu's avatar
Ruqian Lyu committed
<p>X-axis plots the number of haplotype transitions (<code>nCORaw</code>) for each cell and Y-axis plots the number of total SNPs detected in a cell. A large <code>nCORaw</code> might indicate the cell being a diploid cell included by accident or doublets. Cells with a lower <code>totalSNPs</code> might indicate poor cell quality.</p>
<p>A data.frame with cell-level metric is also returned:</p>
Ruqian Lyu's avatar
Ruqian Lyu committed
<div class="sourceCode" id="cb11"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></a>pcqc<span class="sc">$</span>cellQC</span></code></pre></div>
<pre><code># A tibble: 3,686 × 4
Ruqian Lyu's avatar
Ruqian Lyu committed
   Chrom totalSNP nCORaw barcode   
   &lt;fct&gt;    &lt;int&gt;  &lt;dbl&gt; &lt;chr&gt;     
Ruqian Lyu's avatar
Ruqian Lyu committed
 1 chr1    217857     22 SRR8454655
 2 chr10   158079     27 SRR8454655
 3 chr11   141643     10 SRR8454655
 4 chr12   141169      3 SRR8454655
 5 chr13   140556     17 SRR8454655
 6 chr14   127778     16 SRR8454655
 7 chr15   112856      5 SRR8454655
 8 chr16   121926      6 SRR8454655
 9 chr17   111465      6 SRR8454655
10 chr18   118538      8 SRR8454655
# … with 3,676 more rows</code></pre>