软件安装和环境变量

2019-04-30  本文已影响0人  大吉岭猹

基本的安装软件

另外的一些点

学习软件的用法

包管理工具

conda

优点

基本命令

下载和安装conda

使用conda

  1. 添加频道(镜像)

    1. 首先执行conda config --set show_channel_urls yes,生成~/.condarc文件;

    2. 然后用vim把里面的内容替换成下面这段话:

<pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="" cid="n82" mdtype="fences" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); --select-text-bg-color: #36284e; --select-text-font-color: #fff; font-size: 0.9rem; line-height: 1.71429em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(218, 218, 218); position: relative !important; margin-bottom: 3em; margin-left: 2em; padding-left: 1ch; padding-right: 1ch; width: inherit; color: rgb(31, 9, 9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">channels:

  1. 搜索看看想装的软件是否可用

    1. conda search 软件名

    2. 或者在bioconda搜索来看看这个软件是否存在

  2. 先搞个小环境保险 conda create -n 环境名 python=2 bwa 这一步完成了创建小环境-安装python2-安装bwa三个操作

  3. 常规安装conda install 软件名,可以加-y参数,一会儿就不用确认安装了

  4. 指定安装版本 conda install 软件名=版本号

  5. 以后再进入这个子环境conda activate 环境名

  6. 退出当前环境 conda deactivate

  7. 不在安装软件的环境内,如何调用软件?软链接! ln -s ~/miniconda3/bin/软件名 ~/.local/bin

环境变量

最后,向大家隆重推荐生信技能树的一系列干货!

  1. 生信技能树全球公益巡讲:https://mp.weixin.qq.com/s/E9ykuIbc-2Ja9HOY0bn_6g
  2. B站公益74小时生信工程师教学视频合辑https://mp.weixin.qq.com/s/IyFK7l_WBAiUgqQi8O7Hxw
  3. 招学徒https://mp.weixin.qq.com/s/KgbilzXnFjbKKunuw7NVfw
上一篇 下一篇

猜你喜欢

热点阅读