| 1 |
|
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 6 |
<meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 7 |
<meta name="generator" content="Doxygen 1.10.0"/> |
| 8 |
<meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 9 |
<meta name="description" content="iVar is a computational package that contains functions broadly useful for viral amplicon-based sequencing. Additional tools for metagenomic sequencing are actively being incorporated into iVar. While each of these functions can be accomplished using existing tools, iVar contains an intersection of functionality from multiple tools that are required to call iSNVs and consensus sequences from viral sequencing data across multiple replicates. We implemented the following functions in iVar: (1) trimming of primers and low-quality bases, (2) consensus calling, (3) variant calling - both iSNVs and insertions/deletions, and (4) identifying mismatches to primer sequences and excluding the corresponding reads from alignment files."/> |
| 10 |
<meta name="keywords" content="variants calling,consensus,htslib,primal,primer,trimming,amplicon sequencing,ivar"/> |
| 11 |
<meta name="author" content="Andersen Lab, The Scripps Research Institute"/> |
| 12 |
<title>iVar: Cookbook</title> |
| 13 |
<link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 14 |
<script type="text/javascript" src="jquery.js"></script> |
| 15 |
<script type="text/javascript" src="dynsections.js"></script> |
| 16 |
<script type="text/javascript" src="cookie.js"></script> |
| 17 |
<link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 18 |
<script type="text/javascript" src="search/searchdata.js"></script> |
| 19 |
<script type="text/javascript" src="search/search.js"></script> |
| 20 |
<link href="customdoxygen.css" rel="stylesheet" type="text/css" /> |
| 21 |
</head> |
| 22 |
<body> |
| 23 |
<div id="top"> |
| 24 |
<div id="titlearea"> |
| 25 |
<table cellspacing="0" cellpadding="0"> |
| 26 |
<tbody> |
| 27 |
<tr style="height: 56px;"> |
| 28 |
<td id="projectalign" style="padding-left: 0.5em;"> |
| 29 |
<div id="projectname">iVar |
| 30 |
</div> |
| 31 |
</td> |
| 32 |
</tr> |
| 33 |
</tbody> |
| 34 |
</table> |
| 35 |
</div> |
| 36 |
|
| 37 |
|
| 38 |
<script type="text/javascript"> |
| 39 |
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ |
| 40 |
var searchBox = new SearchBox("searchBox", "search/",'.html'); |
| 41 |
/* @license-end */ |
| 42 |
</script> |
| 43 |
<script type="text/javascript" src="menudata.js"></script> |
| 44 |
<script type="text/javascript" src="menu.js"></script> |
| 45 |
<script type="text/javascript"> |
| 46 |
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ |
| 47 |
$(function() { |
| 48 |
initMenu('',true,false,'search.php','Search'); |
| 49 |
$(function() { init_search(); }); |
| 50 |
}); |
| 51 |
/* @license-end */ |
| 52 |
</script> |
| 53 |
<div id="main-nav"></div> |
| 54 |
|
| 55 |
<div id="MSearchSelectWindow" |
| 56 |
onmouseover="return searchBox.OnSearchSelectShow()" |
| 57 |
onmouseout="return searchBox.OnSearchSelectHide()" |
| 58 |
onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 59 |
</div> |
| 60 |
|
| 61 |
|
| 62 |
<div id="MSearchResultsWindow"> |
| 63 |
<div id="MSearchResults"> |
| 64 |
<div class="SRPage"> |
| 65 |
<div id="SRIndex"> |
| 66 |
<div id="SRResults"></div> |
| 67 |
<div class="SRStatus" id="Loading">Loading...</div> |
| 68 |
<div class="SRStatus" id="Searching">Searching...</div> |
| 69 |
<div class="SRStatus" id="NoMatches">No Matches</div> |
| 70 |
</div> |
| 71 |
</div> |
| 72 |
</div> |
| 73 |
</div> |
| 74 |
|
| 75 |
</div> |
| 76 |
<div><div class="header"> |
| 77 |
<div class="headertitle"><div class="title">Cookbook</div></div> |
| 78 |
</div> |
| 79 |
<div class="contents"> |
| 80 |
<div class="textblock"><p><a class="anchor" id="md_docs_2_c_o_o_k_b_o_o_k"></a></p> |
| 81 |
<p>Two pipelines to call iSNVs from known and unknown reference sequences have been written in <a href="https://snakemake.readthedocs.io/en/stable/">snakemake</a>.</p> |
| 82 |
<p>The two pipelines are distributed along with iVar and are present in the<a href="https://github.com/andersen-lab/ivar/tree/master/pipeline">pipeline/</a> and <a href="https://github.com/andersen-lab/ivar/tree/master/pipeline_field">pipeline_field/</a> fodlers respectively.</p> |
| 83 |
<p>For both pipelines, there are four parameters that will have to be set in beginning of the Snakefile.</p> |
| 84 |
<div class="fragment"><div class="line">in_dir = "<input fastq files>"</div> |
| 85 |
<div class="line">out_dir = "<output directory>"</div> |
| 86 |
<div class="line">bed = "<bed-file-with-primer-positions>"</div> |
| 87 |
<div class="line">ref="<path to reference fasta>"</div> |
| •88 |
</div><p><img src="./pipeline/pipeline.png" alt="" width="500" class="inline"/></p> |
| 89 |
<h2>Call iSNVs from samples with known reference sequence</h2> |
| 90 |
<p><a href="https://github.com/andersen-lab/paper_2018_primalseq-ivar/blob/master/cookbook/CookBook.ipynb">Link to Jupyter Notebook</a></p> |
| 91 |
<p><a href="https://github.com/andersen-lab/ivar/tree/master/pipeline">Link to pipeline</a></p> |
| 92 |
<h3>Dependencies:</h3> |
| 93 |
<ul> |
| 94 |
<li><a href="https://github.com/andersen-lab/ivar">iVar</a></li> |
| 95 |
<li><a href="https://htslib.org/">samtools</a></li> |
| 96 |
<li><a href="https://github.com/lh3/bwa">bwa</a></li> |
| 97 |
<li><a href="https://bedtools.readthedocs.io/en/latest/">bedtools</a></li> |
| 98 |
</ul> |
| 99 |
<h2>Call iSNVs from samples with unknown reference sequence</h2> |
| 100 |
<p><a href="https://github.com/andersen-lab/ivar/tree/master/pipeline_field/">Link to pipeline</a></p> |
| 101 |
<h3>Dependencies:</h3> |
| 102 |
<ul> |
| 103 |
<li><a href="https://github.com/andersen-lab/ivar">iVar</a></li> |
| 104 |
<li><a href="https://htslib.org/">samtools</a></li> |
| 105 |
<li><a href="https://github.com/lh3/bwa">bwa</a></li> |
| 106 |
<li><a href="https://bedtools.readthedocs.io/en/latest/">bedtools</a> </li> |
| 107 |
</ul> |
| 108 |
</div></div> |
| 109 |
</div> |
| 110 |
|
| 111 |
|
| 112 |
<hr class="footer"/><address class="footer"><small> |
| 113 |
Generated by  <a href="http://www.doxygen.org/index.html"> |
| 114 |
<img class="footer" src="doxygen.png" alt="doxygen"/> |
| 115 |
</a> 1.10.0 |
| 116 |
</small></address> |
| 117 |
</body> |
| 118 |
</html> |