Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues installing AMR finder plus package #161

Closed
Charlotteabbey3 opened this issue Feb 3, 2025 · 1 comment
Closed

Issues installing AMR finder plus package #161

Charlotteabbey3 opened this issue Feb 3, 2025 · 1 comment
Labels
conda Issue has to do with conda package installation

Comments

@Charlotteabbey3
Copy link

I have been trying to use the wiki page to download AMR finder on terminal on mac but this error keeps popping up both trying to use homebrew and conda. Any advice would be great :)
(base) u2252732@11-G3-029195-22 amr-master % source ~/miniconda3/bin/activate
(base) u2252732@11-G3-029195-22 amr-master % conda create -y -c conda-forge -c bioconda -n amrfinder --strict-channel-priority ncbi-amrfinderplus
Channels:

  • conda-forge
  • bioconda
  • defaults
    Platform: osx-arm64
    Collecting package metadata (repodata.json): done
    Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • ncbi-amrfinderplus

Current channels:

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

@evolarjun evolarjun added the conda Issue has to do with conda package installation label Feb 3, 2025
@evolarjun
Copy link
Contributor

Hi @Charlotteabbey3,

Sorry you ran into this issue. The problem for bioconda is that the blast package that ncbi-amrfinderplus depends on is not available for osx-arm64. We don't control that package and for some reason it hasn't been updated to run on osx-arm64.

AMRFinderPlus itself builds and runs find on OSX, in fact I have an ARM Mac terminal myself and use it there. I didn't know there was a homebrew package for AMRFinderPlus, so I haven't tried it and I'm not sure what the issue with it is.

If you have the Apple Developer Tools (free) downloaded and installed you should be able to compile the dependencies and install AMRFinderPlus yourself fairly easily.

Homebrew does have HMMER and BLAST packages, and I think libcurl comes on MacOS by dfault so you should be able to get the dependencies for AMRFinderPlus with the following:

To install Homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

To install HMMER and BLAST:

 brew install blast
 brew install hmmer

Download the source code and compile AMRFinderPlus

git clone https://github.com/ncbi/amr.git
cd amr
git submodule update --init --recursive
make -j

Download the database and test the version you just built

./amrfinder -u
make test

You can then use the AMRFinderPlus in the amr/ directory you just created or you can install it centrally. See https://github.com/ncbi/amr/wiki/Compile-from-source for more details.

Let us know that doesn't work for you.

Arjun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conda Issue has to do with conda package installation
Projects
None yet
Development

No branches or pull requests

2 participants