简体   繁体   English

下载 blat 到 M1 mac

[英]Downloading blat to M1 mac

I am trying to download the blat package so that I can use the GAMMA program to analyze mutations in some sequences.我正在尝试下载 blat 包,以便可以使用 GAMMA 程序分析某些序列中的突变。 I have bioconda install and I am using one-liner code to download blat described here: https://shanguangyu.com/articles/install-blat-on-mac-with-one-liner-command/我安装了 bioconda,我正在使用单行代码下载此处描述的 blat: https ://shanguangyu.com/articles/install-blat-on-mac-with-one-liner-command/

I think the issue could be that blat is not made for M1 macs.我认为问题可能是 blat 不是为 M1 mac 制作的。 I previously had it installed on an older mac but I don't remember how I did that.我以前将它安装在较旧的 Mac 上,但我不记得我是怎么做到的。 I am a beginner/proficient coder so it could be an obvious error.我是一个初学者/熟练的编码器,所以它可能是一个明显的错误。 Any help is appreciated.任何帮助表示赞赏。

Here is my code:这是我的代码:

conda install -c bioconda blat

Here is my error:这是我的错误:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

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

  - blat

Current channels:

  - https://conda.anaconda.org/bioconda/osx-arm64
  - https://conda.anaconda.org/bioconda/noarch
  - https://conda.anaconda.org/conda-forge/osx-arm64
  - https://conda.anaconda.org/conda-forge/noarch

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

    https://anaconda.org

You got to the root of the issue.你找到了问题的根源。 M1 Macs use an ARM64-based architecture as opposed to x64. M1 Mac 使用基于 ARM64 的架构,而不是 x64。 The website for blat does not list ARM compatibility, and, addressing the M1 specifically, a quick examination of the last update to the files shows that they predate the launch of the Apple Silicon Macs, just like the website you got the command from . blat 的网站没有列出 ARM 兼容性,并且专门针对 M1,快速检查文件的最后更新表明它们早于 Apple Silicon Macs 的发布,就像您从. Anaconda itself added support for ARM64 only recently . Anaconda 本身最近才增加了对 ARM64 的支持。 x64 translation does exist for macOS apps, but I don't think I've heard of one for blat. macOS 应用程序确实存在 x64 翻译,但我认为我没有听说过用于 blat 的翻译。

From post update从帖子更新

This seems to be a common issue for Python users on new M1 macs.对于新 M1 mac 上的 Python 用户来说,这似乎是一个常见问题。 Many python packages are not made for ARM chips许多 python 包不是为 ARM 芯片制作的

This is solved by downloading homebrew and miniforge and using this code:这可以通过下载homebrewminiforge并使用以下代码来解决:

CONDA_SUBDIR=osx-64 conda create -n [environment]   # create a new environment
conda activate [environment]
conda env config vars set CONDA_SUBDIR=osx-64  # subsequent commands use intel packages

https://naolin.medium.com/conda-on-m1-mac-with-miniforge-bbc4e3924f2b https://towardsdatascience.com/using-conda-on-an-m1-mac-b2df5608a141 https://github.com/Haydnspass/miniforge#rosetta-on-mac-with-apple-silicon-hardware https://naolin.medium.com/conda-on-m1-mac-with-miniforge-bbc4e3924f2b https://towardsdatascience.com/using-conda-on-an-m1-mac-b2df5608a141 https://github。 com/Haydnspass/miniforge#rosetta-on-mac-with-apple-silicon-hardware

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM