Debian Codegraph @

README.md

raw symbols SCIP
1 iVar
2 ===========
3
4 ![C/C++ CI](https://github.com/andersen-lab/ivar/workflows/C/C++%20CI/badge.svg) [![DOI](https://zenodo.org/badge/143471288.svg)](https://zenodo.org/badge/latestdoi/143471288) [![install with conda](https://anaconda.org/bioconda/ivar/badges/version.svg)](https://anaconda.org/bioconda/ivar) [![install with conda](https://anaconda.org/bioconda/ivar/badges/platforms.svg)](https://anaconda.org/bioconda/ivar)
5
6
7 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.
8
9 [An amplicon-based sequencing framework for accurately measuring intrahost virus diversity using PrimalSeq and iVar](https://doi.org/10.1186/s13059-018-1618-7)
10
11 *Genome Biology* 2019 **20**:8
12
13 Nathan D Grubaugh, Karthik Gangavarapu, Joshua Quick, Nathaniel L Matteson, Jaqueline Goes De Jesus, Bradley J Main, Amanda L Tan, Lauren M Paul, Doug E Brackney, Saran Grewal, Nikos Gurfield, Koen KA Van Rompay, Sharon Isern, Scott F Michael, Lark L Coffey, Nicholas J Loman, Kristian G Andersen
14
15 bioRxiv doi: [https://doi.org/10.1101/383513](https://doi.org/10.1101/383513)
16
17 ## Manual
18
19 Manual for iVar is available [here](https://andersen-lab.github.io/ivar/html/).
20
21 ## Insallation
22
23 ### Dependencies
24
25 * [HTSlib](http://www.htslib.org/download/)
26 * [GCC](https://gcc.gnu.org/) any version after v5.0. Support for C++11 standard required.
27
28 Note:
29 * It is highly recommended that [samtools](https://github.com/samtools/samtools) also be installed alongside iVar. iVar uses the output of samtools mpileup to call variants and generate consensus sequences. In addition, samtools `sort` and `index` commands are very useful to setup a pipeline using iVar.
30
31 Installing via conda
32 ====================
33
34 iVar is available on bioconda. To install conda, please use the [miniconda](https://conda.io/miniconda.html) package. After intalling conda please add the following channels,
35
36 ```
37 conda config --add channels defaults
38 conda config --add channels bioconda
39 conda config --add channels conda-forge
40 ```
41
42 To install iVar,
43
44 ```
45 conda install ivar
46 ```
47
48
49 Installing via homebrew
50 =======================
51
52 iVar can be installed using [Homebrew](https://brew.sh/).
53
54 ```
55 brew install brewsci/bio/ivar
56 ```
57
58
59 Installing on Mac
60 =================
61
62 Installing build tools
63 ----------------------
64
65 [Xcode](https://developer.apple.com/xcode/) 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,
66
67 ```
68 xcode-select --install
69 ```
70
71 [GNU Autotools](https://www.gnu.org/software/automake/manual/html_node/Autotools-Introduction.html#Autotools-Introduction) is required to compile iVar from source.
72
73 To install Autotools using [homebrew](https://brew.sh/) please use the command below,
74
75 ```
76 brew install autoconf automake libtool
77 ```
78
79 HTSlib installed using conda
80 -----------------------------
81
82 HTSlib can be installed with [conda](https://conda.io/docs/) using the command,
83
84 ```
85 conda install -c bioconda htslib
86 ```
87
88 The conda binary is by default installed at /opt/. You can check the installation location by running the following command,
89
90 ```
91 which conda
92 ```
93
94 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.
95
96 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.
97 You can add this to your ~/.bash_profile or ~/.bashrc to avoid rerunning the command everytime a new bash session starts.
98
99 ```
100 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/conda/lib
101 ```
102
103 HTSlib installed from source
104 ----------------------------
105
106 Installation instructions and downloads for HTSlib can be found at http://www.htslib.org/download/.
107
108 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.
109
110 ```
111 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/hts/lib/folder
112 ```
113
114 Installing iVar
115 ---------------
116
117 To install iVar, run the following commands.
118
119 ```
120 ./autogen.sh
121 ./configure
122 make
123 make install
124 ```
125
126 If HTSlib was installed using conda, please run the following commands by supplying the prefix to the bin folder of the conda binary.
127
128 The prefix to the bin folder can be found using the command `which conda`. 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 --with-hts=/opt/conda.
129
130 ```
131 ./autogen.sh
132 ./configure --with-hts=/prefix/to/bin/folder/with/HTSlib
133 make
134 make install
135 ```
136
137 If HTSlib was installed in a non standard location, please run the following commands,
138
139 ```
140 ./autogen.sh
141 ./configure --with-hts=/prefix/to/bin/folder/with/HTSlib
142 make
143 make install
144 ```
145
146 To test installation just run, `ivar version` and you should get the following output,
147
148 ```
149 iVar version 1.0
150
151 Please raise issues and bug reports at https://github.com/andersen-lab/ivar/
152 ```
153
154 Installing on Linux
155 ===================
156
157 Installing build tools
158 ----------------------
159
160 [GNU Autotools](https://www.gnu.org/software/automake/manual/html_node/Autotools-Introduction.html#Autotools-Introduction) is required to compile iVar from source.
161
162 To install Autotools using [APT](https://help.ubuntu.com/lts/serverguide/apt.html) please use the command below,
163
164 ```
165 apt-get install autotools-dev
166 ```
167
168 HTSlib installed using conda
169 -----------------------------
170
171 HTSlib can be installed with [conda](https://conda.io/docs/) using the command,
172
173 ```
174 conda install -c bioconda htslib
175 ```
176
177 The conda binary is by default installed at /opt/. You can check the installation location by running the following command,
178
179 ```
180 which conda
181 ```
182
183 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.
184
185 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.
186 You can add this to your ~/.bash_profile or ~/.bashrc to avoid rerunning the command everytime a new bash session starts.
187
188 ```
189 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/conda/lib
190 ```
191
192 HTSlib installed from source
193 ----------------------------
194
195 Installation instructions and downloads for HTSlib can be found at http://www.htslib.org/download/.
196
197 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.
198
199 ```
200 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/hts/lib/folder
201 ```
202
203 Installing iVar
204 ---------------
205
206 To install iVar, run the following commands.
207
208 ```
209 ./autogen.sh
210 ./configure
211 make
212 make install
213 ```
214
215 If HTSlib was installed using conda, please run the following commands by supplying the prefix to the bin folder of the conda binary.
216
217 The prefix to the bin folder can be found using the command `which conda`. 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 --with-hts=/opt/conda.
218
219 ```
220 ./autogen.sh
221 ./configure --with-hts=/prefix/to/bin/folder/with/HTSlib
222 make
223 make install
224 ```
225
226 If HTSlib was installed in a non standard location, please run the following commands,
227
228 ```
229 ./autogen.sh
230 ./configure --with-hts=/prefix/to/bin/folder/with/HTSlib
231 make
232 make install
233 ```
234
235 To test installation just run, `ivar version` and you should get the following output,
236
237 ```
238 iVar version 1.0
239
240 Please raise issues and bug reports at https://github.com/andersen-lab/ivar/
241 ```
242
243
244 Running from Docker
245 ===================
246
247 iVar can also be run via [Docker](https://www.docker.com/). Pull the docker image from [Docker Hub](https://hub.docker.com/) using the following command,
248
249 ```
250 docker pull andersenlabapps/ivar
251 ```
252
253 This docker image contains all the required dependencies to run iVar and the [pipelines](@ref cookbookpage) developed using iVar.
254 You will have to attach a docker volume to get data into the docker container. Instructions to do so are in the [Docker docs](https://docs.docker.com/storage/volumes/).
255
256 [iVar on Docker Hub](https://hub.docker.com/r/andersenlabapps/ivar/)
257
258 Contact
259 =======
260
261 For bug reports please email gkarthik[at]scripps.edu or raise an issue on Github.
262
263 Acknowledgements
264 =======
265
266 This work was supported in part by NIH grants U19AI135995, R21AI137690, and UL1TR002550.
267