| 1 |
.TH "installpage" 3 "iVar" \" -*- nroff -*- |
| 2 |
.ad l |
| 3 |
.nh |
| 4 |
.SH NAME |
| 5 |
installpage \- Installation |
| 6 |
.PP |
| 7 |
|
| 8 |
.PP |
| 9 |
.SS "Dependencies" |
| 10 |
.PP |
| 11 |
.IP "\(bu" 2 |
| 12 |
\fRHTSlib\fP |
| 13 |
.IP "\(bu" 2 |
| 14 |
\fRGCC\fP any version after v5\&.0\&. Support for c++11 standard required\&. |
| 15 |
.PP |
| 16 |
.PP |
| 17 |
Note: |
| 18 |
.IP "\(bu" 2 |
| 19 |
It is highly recommended that \fRsamtools\fP also be installed alongside iVar\&. iVar uses the output of samtools mpileup to call variants and generate consensus sequences\&. In addition, samtools \fRsort\fP and \fRindex\fP commands are very useful to setup a pipeline using iVar\&. |
| 20 |
.PP |
| 21 |
.SH "Installing via conda" |
| 22 |
.PP |
| 23 |
iVar is available on bioconda\&. To install conda, please use the \fRminiconda\fP package\&. After intalling conda please add the following channels, |
| 24 |
.PP |
| 25 |
.PP |
| 26 |
.nf |
| 27 |
conda config \-\-add channels defaults |
| 28 |
conda config \-\-add channels bioconda |
| 29 |
conda config \-\-add channels conda\-forge |
| 30 |
.fi |
| 31 |
.PP |
| 32 |
.PP |
| 33 |
To install iVar, |
| 34 |
.PP |
| 35 |
.PP |
| 36 |
.nf |
| 37 |
conda install ivar |
| 38 |
.fi |
| 39 |
.PP |
| 40 |
.SS "Installing via homebrew" |
| 41 |
iVar can be installed using \fRHomebrew\fP\&. |
| 42 |
.PP |
| 43 |
.PP |
| 44 |
.nf |
| 45 |
brew install brewsci/bio/ivar |
| 46 |
.fi |
| 47 |
.PP |
| 48 |
.SH "Installing on Mac" |
| 49 |
.PP |
| 50 |
.SS "Installing build tools" |
| 51 |
\fRXcode\fP 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, |
| 52 |
.PP |
| 53 |
.PP |
| 54 |
.nf |
| 55 |
xcode\-select \-\-install |
| 56 |
.fi |
| 57 |
.PP |
| 58 |
.PP |
| 59 |
\fRGNU Autotools\fP is required to compile iVar from source\&. |
| 60 |
.PP |
| 61 |
To install Autotools using \fRhomebrew\fP please use the command below, |
| 62 |
.PP |
| 63 |
.PP |
| 64 |
.nf |
| 65 |
brew install autoconf automake libtool |
| 66 |
.fi |
| 67 |
.PP |
| 68 |
.SS "HTSlib installed using conda" |
| 69 |
HTSlib can be installed with \fRconda\fP using the command, |
| 70 |
.PP |
| 71 |
.PP |
| 72 |
.nf |
| 73 |
conda install \-c bioconda htslib |
| 74 |
.fi |
| 75 |
.PP |
| 76 |
.PP |
| 77 |
The conda binary is by default installed at /opt/\&. You can check the installation location by running the following command, |
| 78 |
.PP |
| 79 |
.PP |
| 80 |
.nf |
| 81 |
which conda |
| 82 |
.fi |
| 83 |
.PP |
| 84 |
.PP |
| 85 |
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\&. |
| 86 |
.PP |
| 87 |
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\&. |
| 88 |
.PP |
| 89 |
.PP |
| 90 |
.nf |
| 91 |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/conda/lib |
| 92 |
.fi |
| 93 |
.PP |
| 94 |
.SS "HTSlib installed from source" |
| 95 |
Installation instructions and downloads for HTSlib can be found at http://www.htslib.org/download/\&. |
| 96 |
.PP |
| 97 |
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\&. |
| 98 |
.PP |
| 99 |
.PP |
| 100 |
.nf |
| 101 |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/hts/lib/folder |
| 102 |
.fi |
| 103 |
.PP |
| 104 |
.SS "Installing iVar" |
| 105 |
To install iVar, run the following commands\&. |
| 106 |
.PP |
| 107 |
.PP |
| 108 |
.nf |
| 109 |
\&./autogen\&.sh |
| 110 |
\&./configure |
| 111 |
make |
| 112 |
make install |
| 113 |
.fi |
| 114 |
.PP |
| 115 |
.PP |
| 116 |
If HTSlib was installed using conda, please run the following commands by supplying the prefix to the bin folder of the conda binary\&. |
| 117 |
.PP |
| 118 |
The prefix to the bin folder can be found using the command \fRwhich conda\fP\&. 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\&. |
| 119 |
.PP |
| 120 |
.PP |
| 121 |
.nf |
| 122 |
\&./autogen\&.sh |
| 123 |
\&./configure \-\-with\-hts=/prefix/to/bin/folder/with/HTSlib |
| 124 |
make |
| 125 |
make install |
| 126 |
.fi |
| 127 |
.PP |
| 128 |
.PP |
| 129 |
If HTSlib was installed in a non standard location, please run the following commands, |
| 130 |
.PP |
| 131 |
.PP |
| 132 |
.nf |
| 133 |
\&./autogen\&.sh |
| 134 |
\&./configure \-\-with\-hts=/prefix/to/bin/folder/with/HTSlib |
| 135 |
make |
| 136 |
make install |
| 137 |
.fi |
| 138 |
.PP |
| 139 |
.PP |
| 140 |
To test installation just run, \fRivar version\fP and you should get the following output, |
| 141 |
.PP |
| 142 |
.PP |
| 143 |
.nf |
| 144 |
iVar version 1\&.0 |
| 145 |
|
| 146 |
Please raise issues and bug reports at https://github\&.com/andersen\-lab/ivar/ |
| 147 |
.fi |
| 148 |
.PP |
| 149 |
.SH "Installing on Linux" |
| 150 |
.PP |
| 151 |
.SS "Installing build tools" |
| 152 |
\fRGNU Autotools\fP is required to compile iVar from source\&. |
| 153 |
.PP |
| 154 |
To install Autotools using \fRAPT\fP please use the command below, |
| 155 |
.PP |
| 156 |
.PP |
| 157 |
.nf |
| 158 |
apt\-get install autotools\-dev |
| 159 |
.fi |
| 160 |
.PP |
| 161 |
.SS "HTSlib installed using conda" |
| 162 |
HTSlib can be installed with \fRconda\fP using the command, |
| 163 |
.PP |
| 164 |
.PP |
| 165 |
.nf |
| 166 |
conda install \-c bioconda htslib |
| 167 |
.fi |
| 168 |
.PP |
| 169 |
.PP |
| 170 |
The conda binary is by default installed at /opt/\&. You can check the installation location by running the following command, |
| 171 |
.PP |
| 172 |
.PP |
| 173 |
.nf |
| 174 |
which conda |
| 175 |
.fi |
| 176 |
.PP |
| 177 |
.PP |
| 178 |
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\&. |
| 179 |
.PP |
| 180 |
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\&. |
| 181 |
.PP |
| 182 |
.PP |
| 183 |
.nf |
| 184 |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/conda/lib |
| 185 |
.fi |
| 186 |
.PP |
| 187 |
.SS "HTSlib installed from source" |
| 188 |
Installation instructions and downloads for HTSlib can be found at http://www.htslib.org/download/\&. |
| 189 |
.PP |
| 190 |
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\&. |
| 191 |
.PP |
| 192 |
.PP |
| 193 |
.nf |
| 194 |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/hts/lib/folder |
| 195 |
.fi |
| 196 |
.PP |
| 197 |
.SS "Installing iVar" |
| 198 |
To install iVar, run the following commands\&. |
| 199 |
.PP |
| 200 |
.PP |
| 201 |
.nf |
| 202 |
\&./autogen\&.sh |
| 203 |
\&./configure |
| 204 |
make |
| 205 |
make install |
| 206 |
.fi |
| 207 |
.PP |
| 208 |
.PP |
| 209 |
If HTSlib was installed using conda, please run the following commands by supplying the prefix to the bin folder of the conda binary\&. |
| 210 |
.PP |
| 211 |
The prefix to the bin folder can be found using the command \fRwhich conda\fP\&. 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\&. |
| 212 |
.PP |
| 213 |
.PP |
| 214 |
.nf |
| 215 |
\&./autogen\&.sh |
| 216 |
\&./configure \-\-with\-hts=/prefix/to/bin/folder/with/HTSlib |
| 217 |
make |
| 218 |
make install |
| 219 |
.fi |
| 220 |
.PP |
| 221 |
.PP |
| 222 |
If HTSlib was installed in a non standard location, please run the following commands, |
| 223 |
.PP |
| 224 |
.PP |
| 225 |
.nf |
| 226 |
\&./autogen\&.sh |
| 227 |
\&./configure \-\-with\-hts=/prefix/to/bin/folder/with/HTSlib |
| 228 |
make |
| 229 |
make install |
| 230 |
.fi |
| 231 |
.PP |
| 232 |
.PP |
| 233 |
To test installation just run, \fRivar version\fP and you should get the following output, |
| 234 |
.PP |
| 235 |
.PP |
| 236 |
.nf |
| 237 |
iVar version 1\&.0 |
| 238 |
|
| 239 |
Please raise issues and bug reports at https://github\&.com/andersen\-lab/ivar/ |
| 240 |
.fi |
| 241 |
.PP |
| 242 |
.SH "Running from Docker" |
| 243 |
.PP |
| 244 |
iVar can also be run via \fRDocker\fP\&. Pull the docker image from \fRDocker Hub\fP using the following command, |
| 245 |
.PP |
| 246 |
.PP |
| 247 |
.nf |
| 248 |
docker pull andersenlabapps/ivar |
| 249 |
.fi |
| 250 |
.PP |
| 251 |
.PP |
| 252 |
This docker image contains all the required dependencies to run iVar and the \fBpipelines\fP 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 \fRDocker docs\fP\&. |
| 253 |
.PP |
| 254 |
\fRiVar on Docker Hub\fP |
| 255 |
.SH "Contact" |
| 256 |
.PP |
| 257 |
For bug reports please email gkarthik[at]scripps\&.edu or raise an issue on Github\&. |