学习小组Day3笔记--xr

今天的学习内容是在Linux上安装软件,用miniconda进行fastqc的安装

1.miniconda安装

conda具备多款软件,大部分生物信息学分析软件可以用miniconda进行安装

1.1下载和安装miniconda

1.1.1确定miniconda的下载网址
搜索:miniconda 清华
找到miniconda的安装网址
https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/
uname -a命令查看服务器的是多少位
打开服务安装软件的文件夹 cd biosoft
安装最新版本

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh

安装提示说按Enter键继续时就按Enter键



这步输入yes



这步可以输入no
输入yes是让conda自动给你配置环境变量

输入yes的结果是:~/.bashrc这里文件里最后几行多了conda的配置信息


1.2激活miniconda

source ~/.bashrc #激活

conda #命令行输入conda看能不能跑,如果出现以下信息就说明安装成功
usage: conda [-h] [-V] command ...

conda is a tool for managing and deploying applications, environments and packages.

Options:

positional arguments:
  command
    clean        Remove unused packages and caches.
    config       Modify configuration values in .condarc. This is modeled after the git config command. Writes to the user .condarc file (/home/bio07/.condarc) by
                 default.
    create       Create a new conda environment from a list of specified packages.
    help         Displays a list of available conda commands and their help strings.
    info         Display information about current conda install.
    init         Initialize conda for shell interaction. [Experimental]
    install      Installs a list of packages into a specified conda environment.
    list         List linked packages in a conda environment.
    package      Low-level conda package utility. (EXPERIMENTAL)
    remove       Remove a list of packages from a specified conda environment.
    uninstall    Alias for conda remove.
    run          Run an executable in a conda environment. [Experimental]
    search       Search for packages and display associated information. The input is a MatchSpec, a query language for conda packages. See examples below.
    update       Updates conda packages to the latest compatible version.
    upgrade      Alias for conda update.

optional arguments:
  -h, --help     Show this help message and exit.
  -V, --version  Show the conda version number and exit.

conda commands available from other packages:
  env

如果没安装成功则删除miniconda这个目录

1.3添加镜像

conda是国外的,添加镜像才能从镜像网站下载,加快下载速度

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
conda config --set show_channel_urls yes 


之前忘记添加镜像
出现了如下报错

Do you wish the installer to initialize Miniconda3
by running conda init? [yes|no]
[no] >>> yes
no change     /home/bio07/miniconda3/condabin/conda
no change     /home/bio07/miniconda3/bin/conda
no change     /home/bio07/miniconda3/bin/conda-env
no change     /home/bio07/miniconda3/bin/activate
no change     /home/bio07/miniconda3/bin/deactivate
no change     /home/bio07/miniconda3/etc/profile.d/conda.sh
no change     /home/bio07/miniconda3/etc/fish/conf.d/conda.fish
no change     /home/bio07/miniconda3/shell/condabin/Conda.psm1
no change     /home/bio07/miniconda3/shell/condabin/conda-hook.ps1
no change     /home/bio07/miniconda3/lib/python3.8/site-packages/xontrib/conda.xsh
no change     /home/bio07/miniconda3/etc/profile.d/conda.csh
no change     /home/bio07/.bashrc
No action taken.
If you'd prefer that conda's base environment not be activated on startup, 
   set the auto_activate_base parameter to false: 

conda config --set auto_activate_base false

Thank you for installing Miniconda3!

2.使用miniconda安装fastqc

2.1查看当前服务器上安装的所有软件列表

conda list #查看软件
# packages in environment at /home/bio07/miniconda3:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main    defaults
ca-certificates           2020.1.1                      0    defaults
certifi                   2020.4.5.1               py38_0    defaults
cffi                      1.14.0           py38he30daa8_1    defaults
chardet                   3.0.4                 py38_1003    defaults
conda                     4.8.3                    py38_0    defaults
conda-package-handling    1.6.1            py38h7b6447c_0    defaults
cryptography              2.9.2            py38h1ba5d50_0    defaults
idna                      2.9                        py_1    defaults
ld_impl_linux-64          2.33.1               h53a641e_7    defaults
libedit                   3.1.20181209         hc058e9b_0    defaults
libffi                    3.3                  he6710b0_1    defaults
libgcc-ng                 9.1.0                hdf63c60_0    defaults
libstdcxx-ng              9.1.0                hdf63c60_0    defaults
ncurses                   6.2                  he6710b0_1    defaults
openssl                   1.1.1g               h7b6447c_0    defaults
pip                       20.0.2                   py38_3    defaults
pycosat                   0.6.3            py38h7b6447c_1    defaults
pycparser                 2.20                       py_0    defaults
pyopenssl                 19.1.0                   py38_0    defaults
pysocks                   1.7.1                    py38_0    defaults
python                    3.8.3                hcff3b4d_0    defaults
readline                  8.0                  h7b6447c_0    defaults
requests                  2.23.0                   py38_0    defaults
ruamel_yaml               0.15.87          py38h7b6447c_0    defaults
setuptools                46.4.0                   py38_0    defaults
six                       1.14.0                   py38_0    defaults
sqlite                    3.31.1               h62c20be_1    defaults
tk                        8.6.8                hbc83047_0    defaults
tqdm                      4.46.0                     py_0    defaults
urllib3                   1.25.8                   py38_0    defaults
wheel                     0.34.2                   py38_0    defaults
xz                        5.2.5                h7b6447c_0    defaults
yaml                      0.1.7                had09818_2    defaults
zlib                      1.2.11               h7b6447c_3    defaults

2.2用coda搜索需要安装的软件

conda search fastqc #需要点时间
#出现以下结果
Loading channels: done
# Name                       Version           Build  Channel             
fastqc                        0.10.1               0  anaconda/cloud/bioconda
fastqc                        0.10.1               1  anaconda/cloud/bioconda
fastqc                        0.11.2               1  anaconda/cloud/bioconda
fastqc                        0.11.2      pl5.22.0_0  anaconda/cloud/bioconda
fastqc                        0.11.3               0  anaconda/cloud/bioconda
fastqc                        0.11.3               1  anaconda/cloud/bioconda
fastqc                        0.11.4               0  anaconda/cloud/bioconda
fastqc                        0.11.4               1  anaconda/cloud/bioconda
fastqc                        0.11.4               2  anaconda/cloud/bioconda
fastqc                        0.11.5               1  anaconda/cloud/bioconda
fastqc                        0.11.5               4  anaconda/cloud/bioconda
fastqc                        0.11.5      pl5.22.0_2  anaconda/cloud/bioconda
fastqc                        0.11.5      pl5.22.0_3  anaconda/cloud/bioconda
fastqc                        0.11.6               2  anaconda/cloud/bioconda
fastqc                        0.11.6      pl5.22.0_0  anaconda/cloud/bioconda
fastqc                        0.11.6      pl5.22.0_1  anaconda/cloud/bioconda
fastqc                        0.11.7               4  anaconda/cloud/bioconda
fastqc                        0.11.7               5  anaconda/cloud/bioconda
fastqc                        0.11.7               6  anaconda/cloud/bioconda
fastqc                        0.11.7      pl5.22.0_0  anaconda/cloud/bioconda
fastqc                        0.11.7      pl5.22.0_2  anaconda/cloud/bioconda
fastqc                        0.11.8               0  anaconda/cloud/bioconda
fastqc                        0.11.8               1  anaconda/cloud/bioconda
fastqc                        0.11.8               2  anaconda/cloud/bioconda
fastqc                        0.11.9               0  anaconda/cloud/bioconda

2.3安装软件

conda install fastqc -y #-y是yes,安装过程中conda问你的问题全部自动回答yes
#出现以下结果
Collecting package metadata (current_repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.8.3
  latest version: 4.8.4

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: /home/bio07/miniconda3

  added / updated specs:
    - fastqc


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2020.6.20  |       hecda079_0         145 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    certifi-2020.6.20          |   py38h32f6830_0         151 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    conda-4.8.5                |   py38h32f6830_1         3.1 MB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    fastqc-0.11.9              |                0         9.7 MB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
    font-ttf-dejavu-sans-mono-2.37|       hab24e00_0         388 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    fontconfig-2.13.1          |    h1056068_1002         365 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    freetype-2.10.2            |       he06d7ca_0         905 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    icu-67.1                   |       he1b5a44_0        12.9 MB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    libiconv-1.16              |       h516909a_0         1.4 MB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    libpng-1.6.37              |       hed695b0_2         359 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    libuuid-2.32.1             |    h14c3975_1000          26 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    libxml2-2.9.10             |       h68273f3_2         1.3 MB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    openjdk-10.0.2             |    h14c3975_1015       189.2 MB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    openssl-1.1.1g             |       h516909a_1         2.1 MB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    perl-5.30.3                |       h516909a_1        16.4 MB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    python_abi-3.8             |           1_cp38           4 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    ------------------------------------------------------------
                                           Total:       238.3 MB

The following NEW packages will be INSTALLED:

  fastqc             anaconda/cloud/bioconda/noarch::fastqc-0.11.9-0
  font-ttf-dejavu-s~ anaconda/cloud/conda-forge/noarch::font-ttf-dejavu-sans-mono-2.37-hab24e00_0
  fontconfig         anaconda/cloud/conda-forge/linux-64::fontconfig-2.13.1-h1056068_1002
  freetype           anaconda/cloud/conda-forge/linux-64::freetype-2.10.2-he06d7ca_0
  icu                anaconda/cloud/conda-forge/linux-64::icu-67.1-he1b5a44_0
  libiconv           anaconda/cloud/conda-forge/linux-64::libiconv-1.16-h516909a_0
  libpng             anaconda/cloud/conda-forge/linux-64::libpng-1.6.37-hed695b0_2
  libuuid            anaconda/cloud/conda-forge/linux-64::libuuid-2.32.1-h14c3975_1000
  libxml2            anaconda/cloud/conda-forge/linux-64::libxml2-2.9.10-h68273f3_2
  openjdk            anaconda/cloud/conda-forge/linux-64::openjdk-10.0.2-h14c3975_1015
  perl               anaconda/cloud/conda-forge/linux-64::perl-5.30.3-h516909a_1
  python_abi         anaconda/cloud/conda-forge/linux-64::python_abi-3.8-1_cp38

The following packages will be UPDATED:

  ca-certificates     pkgs/main::ca-certificates-2020.1.1-0 --> anaconda/cloud/conda-forge::ca-certificates-2020.6.20-hecda079_0
  certifi              pkgs/main::certifi-2020.4.5.1-py38_0 --> anaconda/cloud/conda-forge::certifi-2020.6.20-py38h32f6830_0
  conda                       pkgs/main::conda-4.8.3-py38_0 --> anaconda/cloud/conda-forge::conda-4.8.5-py38h32f6830_1
  openssl              pkgs/main::openssl-1.1.1g-h7b6447c_0 --> anaconda/cloud/conda-forge::openssl-1.1.1g-h516909a_1



Downloading and Extracting Packages
libuuid-2.32.1       | 26 KB     | ############################################################################################################################ | 100% 
libiconv-1.16        | 1.4 MB    | ############################################################################################################################ | 100% 
font-ttf-dejavu-sans | 388 KB    | ############################################################################################################################ | 100% 
certifi-2020.6.20    | 151 KB    | ############################################################################################################################ | 100% 
ca-certificates-2020 | 145 KB    | ############################################################################################################################ | 100% 
libxml2-2.9.10       | 1.3 MB    | ############################################################################################################################ | 100% 
libpng-1.6.37        | 359 KB    | ############################################################################################################################ | 100% 
fontconfig-2.13.1    | 365 KB    | ############################################################################################################################ | 100% 
freetype-2.10.2      | 905 KB    | ############################################################################################################################ | 100% 
python_abi-3.8       | 4 KB      | ############################################################################################################################ | 100% 
perl-5.30.3          | 16.4 MB   | ############################################################################################################################ | 100% 
fastqc-0.11.9        | 9.7 MB    | ############################################################################################################################ | 100% 
conda-4.8.5          | 3.1 MB    | ############################################################################################################################ | 100% 
openssl-1.1.1g       | 2.1 MB    | ############################################################################################################################ | 100% 
icu-67.1             | 12.9 MB   | ############################################################################################################################ | 100% 
openjdk-10.0.2       | 189.2 MB  | ############################################################################################################################ | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#安装完成

3.卸载fastqc

conda remove fastqc -y
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 216,324评论 6 498
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,356评论 3 392
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 162,328评论 0 353
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,147评论 1 292
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,160评论 6 388
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,115评论 1 296
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,025评论 3 417
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,867评论 0 274
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,307评论 1 310
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,528评论 2 332
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,688评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,409评论 5 343
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,001评论 3 325
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,657评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,811评论 1 268
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,685评论 2 368
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,573评论 2 353