简体   繁体   English

miniconda3环境下如何下载DESeq2?

[英]How to download DESeq2 in miniconda3 environment?

I created an environment using miniconda3 with the following commands:我通过以下命令使用 miniconda3 创建了一个环境:

conda create -n r_ngs r-essentials r-base
source activate r_ngs

I needed to download some extra packages and I managed to download biomart and tximport with the following commands.我需要下载一些额外的包,我设法使用以下命令下载了 biomart 和 tximport。

conda install -c bioconda bioconductor-tximport
conda install -c bioconda bioconductor-biomart

However, then I tried to install DESeq2 but I am getting errors.但是,然后我尝试安装 DESeq2 但出现错误。 The command and errors are shown below.命令和错误如下所示。

conda install -c bioconda bioconductor-deseq2
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.                                                                                                                   failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package libgcc-ng conflicts for:
bioconductor-deseq2 -> libgcc-ng[version='>=10.3.0|>=12|>=9.4.0|>=9.3.0|>=7.5.0|>=7.3.0|>=4.9']
bioconductor-deseq2 -> r-base[version='>=4.2,<4.3.0a0'] -> libgcc-ng[version='7.2.0.*|>=11.2.0|>=7.2.0']

Package libstdcxx-ng conflicts for:
bioconductor-deseq2 -> r-base[version='>=4.2,<4.3.0a0'] -> libstdcxx-ng[version='7.2.0.*|>=11.2.0|>=7.2.0']
bioconductor-deseq2 -> libstdcxx-ng[version='>=10.3.0|>=12|>=9.4.0|>=9.3.0|>=7.5.0|>=7.3.0|>=4.9']

Package xz conflicts for:
python=3.10 -> xz[version='>=5.2.5,<6.0a0|>=5.2.6,<6.0a0']
bioconductor-deseq2 -> r-base[version='>=4.2,<4.3.0a0'] -> xz[version='5.2.*|>=5.2.4,<6.0a0|>=5.2.5,<6.0a0']The following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.35=0
  - feature:|@/linux-64::__glibc==2.35=0
  - python=3.10 -> libgcc-ng[version='>=11.2.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.35

The R version I have in the environment is R version 3.6.1 (2019-07-05).我环境里的R版本是R版本3.6.1(2019-07-05)。 How can I fix this?我怎样才能解决这个问题?

Thank you谢谢

Bioconda has very specific channel requirements, namely: Bioconda 有非常具体的渠道要求,即:

conda-forge > bioconda > defaults

The best way to manage Conda environments is with YAMLs.管理 Conda 环境的最佳方式是使用 YAML。 One to use DESeq2 might look something like:使用 DESeq2 的可能类似于:

r_ngs.yaml r_ngs.yaml

name: r_ngs
channels:
  - conda-forge
  - bioconda
  - defaults
dependencies:
  - r-base=4.2
  - bioconductor-deseq2
  ## additional packages...

and create it with并创建它

conda env create -n r_ngs -f r_ngs.yaml

Note, it is almost always preferable to declare all dependencies at time of creation of the environment.请注意,在创建环境时声明所有依赖项几乎总是更可取。

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

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