Debian Codegraph @

README.md

raw
1 # ARIBA
2
3 Antimicrobial Resistance Identification By Assembly
4
5 For how to use ARIBA, please see the [ARIBA wiki page][ARIBA wiki].
6
7 PLEASE NOTE: we currently do not have the resources to provide support for Ariba - see the [Feedback/Issues](#feedbackissues) section.
8
9 [![Unmaintained](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)
10 [![Build Status](https://github.com/sanger-pathogens/ariba/actions/workflows/build.yaml/badge.svg?branch=master)](https://github.com/sanger-pathogens/ariba/actions/workflows/build.yaml)
11 [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-brightgreen.svg)](https://github.com/sanger-pathogens/ariba/blob/master/LICENSE)
12 [![status](https://img.shields.io/badge/MGEN-10.1099%2Fmgen.0.000131-brightgreen.svg)](http://mgen.microbiologyresearch.org/content/journal/mgen/10.1099/mgen.0.000131)
13 [![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg)](http://bioconda.github.io/recipes/ariba/README.html)
14 [![Container ready](https://img.shields.io/badge/container-ready-brightgreen.svg)](https://quay.io/repository/biocontainers/ariba)
15
16 ## Contents
17 * [Introduction](#introduction)
18 * [Quick Start](#quick-start)
19 * [Installation](#installation)
20 * [Required dependencies](#required-dependencies)
21 * [Using pip3](#using-pip3)
22 * [From Source](#from-source)
23 * [Docker](#docker)
24 * [Singularity](#singularity)
25 * [Debian (testing)](#debian-testing)
26 * [Ubuntu](#ubuntu)
27 * [Dependencies and environment variables](#dependencies-and-environment-variables)
28 * [Temporary files](#temporary-files)
29 * [Usage](#usage)
30 * [License](#license)
31 * [Feedback/Issues](#feedbackissues)
32 * [Citation](#citation)
33
34 ## Introduction
35 ARIBA is a tool that identifies antibiotic resistance genes by running local assemblies.
36 It can also be used for [MLST calling](https://github.com/sanger-pathogens/ariba/wiki/MLST-calling-with-ARIBA).
37
38 The input is a FASTA file of reference sequences (can be a mix of genes and noncoding sequences) and paired sequencing reads. ARIBA reports which of the reference sequences were found, plus detailed information on the quality of the assemblies and any variants between the sequencing reads and the reference sequences.
39
40 ## Quick Start
41 Get reference data, for instance from [CARD](https://card.mcmaster.ca/). See [getref](https://github.com/sanger-pathogens/ariba/wiki/Task%3A-getref) for a full list.
42
43 ariba getref ncbi out.ncbi
44
45 Prepare reference data for ARIBA:
46
47 ariba prepareref -f out.ncbi.fa -m out.ncbi.tsv out.ncbi.prepareref
48
49 Run local assemblies and call variants:
50
51 ariba run out.ncbi.prepareref reads1.fastq reads2.fastq out.run
52
53 Summarise data from several runs:
54
55 ariba summary out.summary out.run1/report1.tsv out.run2/report2.tsv out.run3/report3.tsv
56
57 Please read the [ARIBA wiki page][ARIBA wiki] for full usage instructions.
58
59 ## Tutorials
60 [The Jupyter notebook tutorial](https://github.com/sanger-pathogens/pathogen-informatics-training)
61
62 ## Installation
63
64 If you encounter an issue when installing ARIBA please contact your local system administrator. If you encounter a bug you can log it [here](https://github.com/sanger-pathogens/ariba/issues).
65
66 ### Required dependencies
67 * [Python3][python] version >= 3.6.0
68 * [Bowtie2][bowtie2] version >= 2.1.0
69 * [CD-HIT][cdhit] version >= 4.6
70 * [MUMmer][mummer] version >= 3.23
71
72 ARIBA also depends on several Python packages, all of which are available
73 via pip. Installing ARIBA with pip3 will get these automatically if they
74 are not already installed:
75 * dendropy >= 4.2.0
76 * matplotlib>=3.1.0
77 * pyfastaq >= 3.12.0
78 * pysam >= 0.9.1
79 * pymummer >= 0.10.1
80 * biopython
81
82 ### Using pip3
83 Install ARIBA using pip:
84
85 pip3 install ariba
86
87 ### From Source
88 Download the latest release from this github repository or clone it. Run the tests:
89
90 python3 setup.py test
91
92 **Note for OS X:** The tests require gawk which will need to be installed separately, e.g. via Homebrew.
93
94 If the tests all pass, install:
95
96 python3 setup.py install
97
98 Alternatively, install directly from github using:
99
100 pip3 install git+https://github.com/sanger-pathogens/ariba.git #--user
101
102 ### Docker
103 ARIBA can be run in a Docker container. First install Docker, then install the latest
104 version of ARIBA:
105
106 docker pull gchr.io/sanger-pathogens/ariba:latest
107
108 All Docker images are listed in the
109 [packages page](https://github.com/sanger-pathogens/ariba/pkgs/container/ariba).
110
111 To use ARIBA use a command like this (substituting in your directories), where your files are assumed to be stored in /home/ubuntu/data:
112
113 docker run --rm -it -v /home/ubuntu/data:/data sangerpathogens/ariba ariba -h
114
115 When calling Ariba via Docker (as above) you'll also need to add **/data/** in front of all the passed in file or directory names (e.g. /data/my_output_folder).
116
117
118 ### Singularity
119
120 ARIBA can be run in a Singularity container. First install Singularity.
121 [Releases](https://github.com/sanger-pathogens/ariba/releases) include
122 a Singularity image to download.
123
124 Alternatively, build your own Singularity image:
125
126 ```
127 singularity build ariba.simg Singularity.def
128 ```
129
130
131 ### Debian (Ariba version may not be the latest)
132 ARIBA is available in the latest version of Debian, and over time will progressively filter through to Ubuntu and other distributions which use Debian. To install it as root:
133
134 sudo apt-get install ariba
135
136 ### Ubuntu
137 You can use `apt-get` (see above), or to ensure you get the latest version of ARIBA, the following commands can be
138 used to install ARIBA and its dependencies. This was tested on a new instance of Ubuntu 16.04.
139
140 sudo apt-get update
141 sudo apt-get install -y python3-dev python3-pip python3-tk zlib1g-dev bowtie2 mummer cd-hit
142 export ARIBA_CDHIT=cdhit-est
143 sudo pip3 install ariba
144
145 ### Dependencies and environment variables
146
147 By default, ARIBA will look for the dependencies in your `$PATH`, using
148 the names in the table below. This behaviour can be overridden and
149 point ARIBA to a specific program using environment variables.
150 The environment variable is checked first and is used if it is set.
151 Otherwise ARIBA looks in your `$PATH` for the default name. This applies
152 to the following dependencies.
153
154 | Dependency | Default executable | Environment variable name |
155 |----------------|------------------------|---------------------------|
156 | Bowtie2 | `bowtie2` | `$ARIBA_BOWTIE2` |
157 | CD-HIT (est) | `cd-hit-est` | `$ARIBA_CDHIT` |
158
159
160 For example, you could specify an exact version of a bowtie2 executable
161 that you compiled and downloaded in your home directory (assuming BASH):
162
163 export ARIBA_BOWTIE2=$HOME/bowtie2-2.1.0/bowtie2
164
165 Note that ARIBA also runs `bowtie2-build`, for which it uses the
166 `bowtie2` executable with `-build` appended. So in this case
167 it would try to use
168
169 $HOME/bowtie2-2.1.0/bowtie2-build
170
171 ## Temporary files
172
173 ARIBA can temporarily make a large number of files whilst running, which
174 are put in a temporary directory made by ARIBA. The total size of these
175 files is small, but there can be a many of them. This can be a
176 problem when running large numbers (100s or 1000s) of jobs simultaneously
177 on the same file system.
178 The parent directory of the temporary directory is determined in the
179 following order of precedence:
180
181 1. The value of the option `--tmp_dir` (if that option was used)
182 2. The environment variable `$ARIBA_TMPDIR` (if it is set)
183 3. The environment variable `$TMPDIR` (if it is set)
184 4. If none of the above is found, then use the run's output directory.
185
186 Each temporary directory
187 is unique to one run of ARIBA, and is automatically deleted at the end
188 of the run (even if ARIBA was killed by the user or crashed).
189 For example,
190
191 export $ARIBA_TMPDIR=/tmp
192
193 will result in the creation of a new directory inside `/tmp`, which
194 will have a name of the form
195
196 /tmp/ariba.tmp.abcdef
197
198 where the suffix `abcdef` is a random string of characters, chosen
199 such that `/tmp/ariba.tmp.abcdef` does not already exist.
200
201 The exception to the above is if the option `--noclean` is used.
202 This forces the temporary directory to be placed in the output
203 directory, and temporary files are kept. It is intended for
204 debugging.
205
206 ## Usage
207 usage: ariba <command> <options>
208
209 optional arguments:
210 -h, --help show this help message and exit
211
212 Available commands:
213
214 aln2meta Converts multi-aln fasta and SNPs to metadata
215 expandflag Expands flag column of report file
216 flag Translate the meaning of a flag
217 getref Download reference data
218 micplot Make violin/dot plots using MIC data
219 prepareref Prepare reference data for input to "run"
220 pubmlstget Download species from PubMLST and make db
221 pubmlstspecies
222 Get list of available species from PubMLST
223 refquery Get cluster or sequence info from prepareref output
224 run Run the local assembly pipeline
225 summary Summarise multiple reports made by "run"
226 test Run small built-in test dataset
227 version Get versions and exit
228
229 Please read the [ARIBA wiki page][ARIBA wiki] for full usage instructions.
230
231 ## License
232 ARIBA is free software, licensed under [GPLv3](https://github.com/sanger-pathogens/ariba/blob/master/LICENSE).
233
234 ## Feedback/Issues
235 We currently do not have the resources to provide support for Ariba. However, the community might be able to help you out if you report any issues about usage of the software to the [issues page](https://github.com/sanger-pathogens/ariba/issues).
236
237 ## Citation
238 If you use this software please cite:
239
240 ARIBA: rapid antimicrobial resistance genotyping directly from sequencing reads
241 Hunt M, Mather AE, Sánchez-Busó L, Page AJ, Parkhill J , Keane JA, Harris SR.
242 Microbial Genomics 2017. doi: [110.1099/mgen.0.000131](http://mgen.microbiologyresearch.org/content/journal/mgen/10.1099/mgen.0.000131)
243
244
245 [ariba biorxiv]: http://biorxiv.org/content/early/2017/04/07/118000
246 [bowtie2]: http://bowtie-bio.sourceforge.net/bowtie2/index.shtml
247 [cdhit]: http://weizhongli-lab.org/cd-hit/
248 [ARIBA wiki]: https://github.com/sanger-pathogens/ariba/wiki
249 [mummer]: http://mummer.sourceforge.net/
250 [python]: https://www.python.org/