-
Notifications
You must be signed in to change notification settings - Fork 39
Compile from source
If you want to compile AMRFinderPlus yourself you'll need a C compiler such as gcc and GNU make to compile the software as well as the other prerequisites BLAST+, HMMER, and libcurl. We officially support only compiling AMRFinderPlus with GNU tools on Linux on x86. However we have had success compiling on Linux and MacOS on both x86 and ARM architectures. Your mileage may vary, but let us know if you are having problems.
AMRFinderPlus was developed with g++ (GCC) 7.3.0 and libcurl 7.61.1
To install binaries see Installing AMRFinder.
You can clone the repository using
git clone https://github.com/ncbi/amr.git
cd amr
git checkout master
git submodule update --init
make
To adjust the default database directory use something like the following (we are working on a more flexible way to define directories, but this solves the problem in the short term):
make clean
make DEFAULT_DB_DIR=/usr/local/share/amrfinder/data
You may also have to adjust flags in the Makefile for libcurl and for different versions of GCC or other compilers.
make install
will copy the AMRFinderPlus executables to /usr/local/share/amrfinder
. To change the installation location add a INSTALL_DIR option to make e.g.:
make install INSTALL_DIR=$HOME/amrfinder
Remember you will need to get an AMRFinderPlus database in order to run AMRFinderPlus.
You can do that by running amrfinder -U
See Test your installation for information on how to run tests.
- New in AMRFinderPlus
- Documentation for AMRFinder v1 (Depricated)
- Overview
- Install with bioconda (recommended)
- Docker Image
- Install with binary
- Compile from source
- Test your installation
- Usage (syntax/options)
- --organism option
- Examples
- Input file formats
- Output format
- Common errors
- Known issues
- Tips and tricks
- Database updates
- Software upgrades
- Genotypes vs. Phenotypes
- Scope: plus vs. core
- AMRFinderPlus "Method" column
- Element type and Subtype
- Class and Subclass