Debian Codegraph @

docs/html/installpage.html

raw symbols SCIP
1 <!-- HTML header for doxygen 1.8.14-->
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: Installation</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"><!-- do not remove this div, it is closed by doxygen! -->
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 <!-- end header part -->
37 <!-- Generated by Doxygen 1.10.0 -->
38 <script type="text/javascript">
39 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;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&amp;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 <!-- window showing the filter options -->
55 <div id="MSearchSelectWindow"
56 onmouseover="return searchBox.OnSearchSelectShow()"
57 onmouseout="return searchBox.OnSearchSelectHide()"
58 onkeydown="return searchBox.OnSearchSelectKey(event)">
59 </div>
60
61 <!-- iframe showing the search results (closed by default) -->
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><!-- top -->
76 <div><div class="header">
77 <div class="headertitle"><div class="title">Installation</div></div>
78 </div><!--header-->
79 <div class="contents">
80 <div class="toc"><h3>Table of Contents</h3>
81 <ul><li class="level1"><a href="#autotoc_md0">Installing via conda</a><ul><li class="level2"><a href="#autotoc_md1">Installing via homebrew</a></li>
82 </ul>
83 </li>
84 <li class="level1"><a href="#autotoc_md2">Installing on Mac</a><ul><li class="level2"><a href="#autotoc_md3">Installing build tools</a></li>
85 <li class="level2"><a href="#autotoc_md4">HTSlib installed using conda</a></li>
86 <li class="level2"><a href="#autotoc_md5">HTSlib installed from source</a></li>
87 <li class="level2"><a href="#autotoc_md6">Installing iVar</a></li>
88 </ul>
89 </li>
90 <li class="level1"><a href="#autotoc_md7">Installing on Linux</a><ul><li class="level2"><a href="#autotoc_md8">Installing build tools</a></li>
91 <li class="level2"><a href="#autotoc_md9">HTSlib installed using conda</a></li>
92 <li class="level2"><a href="#autotoc_md10">HTSlib installed from source</a></li>
93 <li class="level2"><a href="#autotoc_md11">Installing iVar</a></li>
94 </ul>
95 </li>
96 <li class="level1"><a href="#autotoc_md12">Running from Docker</a></li>
97 <li class="level1"><a href="#autotoc_md13">Contact</a></li>
98 </ul>
99 </div>
100 <div class="textblock"><p><a class="anchor" id="md_docs_2_i_n_s_t_a_l_l_a_t_i_o_n"></a></p>
101 <h2>Dependencies</h2>
102 <ul>
103 <li><a href="http://www.htslib.org/download/">HTSlib</a></li>
104 <li><a href="https://gcc.gnu.org/">GCC</a> any version after v5.0. Support for c++11 standard required.</li>
105 </ul>
106 <p>Note:</p><ul>
107 <li>It is highly recommended that <a href="https://github.com/samtools/samtools">samtools</a> also be installed alongside iVar. iVar uses the output of samtools mpileup to call variants and generate consensus sequences. In addition, samtools <code>sort</code> and <code>index</code> commands are very useful to setup a pipeline using iVar.</li>
108 </ul>
109 <h1><a class="anchor" id="autotoc_md0"></a>
110 Installing via conda</h1>
111 <p>iVar is available on bioconda. To install conda, please use the <a href="https://conda.io/miniconda.html">miniconda</a> package. After intalling conda please add the following channels,</p>
112 <div class="fragment"><div class="line">conda config --add channels defaults</div>
113 <div class="line">conda config --add channels bioconda</div>
114 <div class="line">conda config --add channels conda-forge</div>
115 </div><!-- fragment --><p>To install iVar,</p>
116 <div class="fragment"><div class="line">conda install ivar</div>
117 </div><!-- fragment --><h2><a class="anchor" id="autotoc_md1"></a>
118 Installing via homebrew</h2>
119 <p>iVar can be installed using <a href="https://brew.sh/">Homebrew</a>.</p>
120 <div class="fragment"><div class="line">brew install brewsci/bio/ivar</div>
121 </div><!-- fragment --><h1><a class="anchor" id="autotoc_md2"></a>
122 Installing on Mac</h1>
123 <h2><a class="anchor" id="autotoc_md3"></a>
124 Installing build tools</h2>
125 <p><a href="https://developer.apple.com/xcode/">Xcode</a> from Apple is required to compile iVar (and other tools) from source. If you don't want to install the full Xcode package from the AppStore, you can install the Xcode command line tools,</p>
126 <div class="fragment"><div class="line">xcode-select --install</div>
127 </div><!-- fragment --><p><a href="https://www.gnu.org/software/automake/manual/html_node/Autotools-Introduction.html#Autotools-Introduction">GNU Autotools</a> is required to compile iVar from source.</p>
128 <p>To install Autotools using <a href="https://brew.sh/">homebrew</a> please use the command below,</p>
129 <div class="fragment"><div class="line">brew install autoconf automake libtool</div>
130 </div><!-- fragment --><h2><a class="anchor" id="autotoc_md4"></a>
131 HTSlib installed using conda</h2>
132 <p>HTSlib can be installed with <a href="https://conda.io/docs/">conda</a> using the command,</p>
133 <div class="fragment"><div class="line">conda install -c bioconda htslib</div>
134 </div><!-- fragment --><p>The conda binary is by default installed at /opt/. You can check the installation location by running the following command,</p>
135 <div class="fragment"><div class="line">which conda</div>
136 </div><!-- fragment --><p>The output of the command will be in this format - /opt/conda/bin/conda or /opt/anaconda2/bin/conda or /opt/anaconda3/bin/conda depending on whether you installed miniconda or anaconda.</p>
137 <p>If the output is for example, /opt/conda/bin/conda, then you can add the path to the lib folder to $LD_LIBRARY_PATH using the command below. You can add this to your ~/.bash_profile or ~/.bashrc to avoid rerunning the command everytime a new bash session starts.</p>
138 <div class="fragment"><div class="line">export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/conda/lib</div>
139 </div><!-- fragment --><h2><a class="anchor" id="autotoc_md5"></a>
140 HTSlib installed from source</h2>
141 <p>Installation instructions and downloads for HTSlib can be found at <a href="http://www.htslib.org/download/">http://www.htslib.org/download/</a>.</p>
142 <p>If HTSlib is installed in a non standard location, please add the following to your .bash_profile so that iVar can find HTSlib dynamic libraries during runtime.</p>
143 <div class="fragment"><div class="line">export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/hts/lib/folder</div>
144 </div><!-- fragment --><h2><a class="anchor" id="autotoc_md6"></a>
145 Installing iVar</h2>
146 <p>To install iVar, run the following commands.</p>
147 <div class="fragment"><div class="line">./autogen.sh</div>
148 <div class="line">./configure</div>
149 <div class="line">make</div>
150 <div class="line">make install</div>
151 </div><!-- fragment --><p>If HTSlib was installed using conda, please run the following commands by supplying the prefix to the bin folder of the conda binary.</p>
152 <p>The prefix to the bin folder can be found using the command <code>which conda</code>. The output of the command will be in this format - /opt/conda/bin/conda or /opt/anaconda2/bin/conda or /opt/anaconda3/bin/conda depending on whether you installed miniconda or anaconda. For example, if the output of the command is /opt/conda/bin/conda, the prefix to the htslib bin folder will be /opt/conda. This can be supplied to ./configure &ndash;with-hts=/opt/conda.</p>
153 <div class="fragment"><div class="line">./autogen.sh</div>
154 <div class="line">./configure --with-hts=/prefix/to/bin/folder/with/HTSlib</div>
155 <div class="line">make</div>
156 <div class="line">make install</div>
157 </div><!-- fragment --><p>If HTSlib was installed in a non standard location, please run the following commands,</p>
158 <div class="fragment"><div class="line">./autogen.sh</div>
159 <div class="line">./configure --with-hts=/prefix/to/bin/folder/with/HTSlib</div>
160 <div class="line">make</div>
161 <div class="line">make install</div>
162 </div><!-- fragment --><p>To test installation just run, <code>ivar version</code> and you should get the following output,</p>
163 <div class="fragment"><div class="line">iVar version 1.0</div>
164 <div class="line"> </div>
165 <div class="line">Please raise issues and bug reports at https://github.com/andersen-lab/ivar/</div>
166 </div><!-- fragment --><h1><a class="anchor" id="autotoc_md7"></a>
167 Installing on Linux</h1>
168 <h2><a class="anchor" id="autotoc_md8"></a>
169 Installing build tools</h2>
170 <p><a href="https://www.gnu.org/software/automake/manual/html_node/Autotools-Introduction.html#Autotools-Introduction">GNU Autotools</a> is required to compile iVar from source.</p>
171 <p>To install Autotools using <a href="https://help.ubuntu.com/lts/serverguide/apt.html">APT</a> please use the command below,</p>
172 <div class="fragment"><div class="line">apt-get install autotools-dev</div>
173 </div><!-- fragment --><h2><a class="anchor" id="autotoc_md9"></a>
174 HTSlib installed using conda</h2>
175 <p>HTSlib can be installed with <a href="https://conda.io/docs/">conda</a> using the command,</p>
176 <div class="fragment"><div class="line">conda install -c bioconda htslib</div>
177 </div><!-- fragment --><p>The conda binary is by default installed at /opt/. You can check the installation location by running the following command,</p>
178 <div class="fragment"><div class="line">which conda</div>
179 </div><!-- fragment --><p>The output of the command will be in this format - /opt/conda/bin/conda or /opt/anaconda2/bin/conda or /opt/anaconda3/bin/conda depending on whether you installed miniconda or anaconda.</p>
180 <p>If the output is for example, /opt/conda/bin/conda, then you can add the path to the lib folder to $LD_LIBRARY_PATH using the command below. You can add this to your ~/.bash_profile or ~/.bashrc to avoid rerunning the command everytime a new bash session starts.</p>
181 <div class="fragment"><div class="line">export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/conda/lib</div>
182 </div><!-- fragment --><h2><a class="anchor" id="autotoc_md10"></a>
183 HTSlib installed from source</h2>
184 <p>Installation instructions and downloads for HTSlib can be found at <a href="http://www.htslib.org/download/">http://www.htslib.org/download/</a>.</p>
185 <p>If HTSlib is installed in a non standard location, please add the following to your .bash_profile so that iVar can find HTSlib dynamic libraries during runtime.</p>
186 <div class="fragment"><div class="line">export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/hts/lib/folder</div>
187 </div><!-- fragment --><h2><a class="anchor" id="autotoc_md11"></a>
188 Installing iVar</h2>
189 <p>To install iVar, run the following commands.</p>
190 <div class="fragment"><div class="line">./autogen.sh</div>
191 <div class="line">./configure</div>
192 <div class="line">make</div>
193 <div class="line">make install</div>
194 </div><!-- fragment --><p>If HTSlib was installed using conda, please run the following commands by supplying the prefix to the bin folder of the conda binary.</p>
195 <p>The prefix to the bin folder can be found using the command <code>which conda</code>. The output of the command will be in this format - /opt/conda/bin/conda or /opt/anaconda2/bin/conda or /opt/anaconda3/bin/conda depending on whether you installed miniconda or anaconda. For example, if the output of the command is /opt/conda/bin/conda, the prefix to the htslib bin folder will be /opt/conda. This can be supplied to ./configure &ndash;with-hts=/opt/conda.</p>
196 <div class="fragment"><div class="line">./autogen.sh</div>
197 <div class="line">./configure --with-hts=/prefix/to/bin/folder/with/HTSlib</div>
198 <div class="line">make</div>
199 <div class="line">make install</div>
200 </div><!-- fragment --><p>If HTSlib was installed in a non standard location, please run the following commands,</p>
201 <div class="fragment"><div class="line">./autogen.sh</div>
202 <div class="line">./configure --with-hts=/prefix/to/bin/folder/with/HTSlib</div>
203 <div class="line">make</div>
204 <div class="line">make install</div>
205 </div><!-- fragment --><p>To test installation just run, <code>ivar version</code> and you should get the following output,</p>
206 <div class="fragment"><div class="line">iVar version 1.0</div>
207 <div class="line"> </div>
208 <div class="line">Please raise issues and bug reports at https://github.com/andersen-lab/ivar/</div>
209 </div><!-- fragment --><h1><a class="anchor" id="autotoc_md12"></a>
210 Running from Docker</h1>
211 <p>iVar can also be run via <a href="https://www.docker.com/">Docker</a>. Pull the docker image from <a href="https://hub.docker.com/">Docker Hub</a> using the following command,</p>
212 <div class="fragment"><div class="line">docker pull andersenlabapps/ivar</div>
213 </div><!-- fragment --><p>This docker image contains all the required dependencies to run iVar and the <a class="el" href="cookbookpage.html">pipelines</a> developed using iVar. You will have to attach a docker volume to get data into the docker container. Instructions to do so are in the <a href="https://docs.docker.com/storage/volumes/">Docker docs</a>.</p>
214 <p><a href="https://hub.docker.com/r/andersenlabapps/ivar/">iVar on Docker Hub</a></p>
215 <h1><a class="anchor" id="autotoc_md13"></a>
216 Contact</h1>
217 <p>For bug reports please email gkarthik[at]scripps.edu or raise an issue on Github. </p>
218 </div></div><!-- contents -->
219 </div><!-- PageDoc -->
220 <!-- HTML footer for doxygen 1.8.14-->
221 <!-- start footer part -->
222 <hr class="footer"/><address class="footer"><small>
223 Generated by &#160;<a href="http://www.doxygen.org/index.html">
224 <img class="footer" src="doxygen.png" alt="doxygen"/>
225 </a> 1.10.0
226 </small></address>
227 </body>
228 </html>