有一些软件不应该是使用conda的默认安装

2023-11-03 16:32:23 浏览数 (2)

自从我们运行了生物信息学奇迹产品《共享服务器》之后,遇到了大量的服务器使用场景的小白提问。怕大家误解以为是我们服务器问题,我只好亲力亲为尽可能的辅导大家生物信息学基础知识点,比如有一些软件不应该是使用conda的默认安装,否则就会出现如下所示的问题!

如果你看官方文档:https://anaconda.org/bioconda/sra-tools

代码语言:javascript复制
conda install -c bioconda sra-tools
conda install -c "bioconda/label/cf201901" sra-tools

上面的两个方式都是可以使用conda安装,但是默认安装的说 sra-tools-2.8.0 :

代码语言:javascript复制
The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2023.08.22 |       h06a4308_0         123 KB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    openssl-1.1.1w             |       h7f8727e_0         3.7 MB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    ------------------------------------------------------------
                                           Total:         3.9 MB

The following NEW packages will be INSTALLED:

  sra-tools          bioconda/linux-64::sra-tools-2.8.0-0 

如果是简单的看这个软件的部分命令的帮助文档,会误以为软件是成功的,如下所示:

但是实际上如果我们真正的使用它来下载,会出现如下所示的错误提示信息:

代码语言:javascript复制
2023-10-30T14:01:52 prefetch.2.8.0 sys: connection failed while opening file within cryptographic module - mbedtls_ssl_handshake returned -9984 ( X509 - Certificate verification failed, e.g. CRL, CA or signature check failed )
2023-10-30T14:01:52 prefetch.2.8.0 sys: mbedtls_ssl_get_verify_result returned 0x8 (  !! The certificate is not correctly signed by the trusted CA  )
2023-10-30T14:01:52 prefetch.2.8.0 err: path not found while resolving tree within virtual file system module

小伙伴们看到了这样的报错就会很懵逼,但是我们遇到了太多了这样的求助!

但是如果我们安装最新版,也是看官方文档:https://github.com/ncbi/sra-tools/wiki/01.-Downloading-SRA-Toolkit,我们通常是基于Ubuntu的Linux学徒:

  • CentOS Linux 64 bit architecture - non-sudo tar archive
  • Ubuntu Linux 64 bit architecture - non-sudo tar archive
  • Cloud - apt-get install script - for Debian and Ubuntu - requires sudo permissions
  • Cloud - yum install script - for CentOS - requires sudo permissions
  • MacOS 64 bit architecture
  • MS Windows 64 bit architecture
代码语言:javascript复制
cd  ~/biosoft/
wget https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/3.0.7/sratoolkit.3.0.7-ubuntu64.tar.gz
tar zxvf sratoolkit.3.0.7-ubuntu64.tar.gz 
cd sratoolkit.3.0.7-ubuntu64/bin
ls 

然后使用最新版的

代码语言:javascript复制
 ~/biosoft/sratoolkit.3.0.7-ubuntu64/bin/prefetch  SRR8705087  --max-size 50G 

就可以看到如下所示软件正确运行的提示:

代码语言:javascript复制
2023-10-30T13:54:07 prefetch.3.0.7 int: buffer insufficient while reading uri within cloud module - cannot Get Cloud Location
2023-10-30T13:54:08 prefetch.3.0.7: Current preference is set to retrieve SRA Normalized Format files with full base quality scores.
2023-10-30T13:54:09 prefetch.3.0.7: 1) Downloading 'SRR8705087'...
2023-10-30T13:54:09 prefetch.3.0.7: SRA Normalized Format file is being retrieved, if this is different from your preference, it may be due to current file availability.
2023-10-30T13:54:09 prefetch.3.0.7:  Downloading via HTTPS...

0 人点赞