Brief version for Jiang lab. Original link: https://hc1023.github.io/2019/09/07/conda/
Step1:安装miniconda
可以进入镜像网站寻找想要的版本:https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/
也可以直接conda官网miniconda:https://conda.io/miniconda.html
或者直接用以下代码安装最新版本。
1 2 3 4 wget -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda2-latest-Linux-x86_64.sh bash Miniconda2-latest-Linux-x86_64.sh
source bashrc 并检查是否安装成功。
1 2 source ~/.bashrc conda --help
Step2:配置
1 2 3 4 conda config --add channels r conda config --add channels conda-forge conda config --add channels bioconda cat ~/.condarc
1 conda create -n rna python=2
Step3:安装包 以下代码在rna
环境中安装了处理数据时的常用包
1 2 3 4 5 6 7 8 conda activate rna conda install -y bowtie2 conda install -y samtools conda install -y fastqc conda install -y bwa conda install r-base conda install -c r r-ggplot2 conda deactivate
conda基础命令操作
1 2 3 4 5 6 7 8 9 10 11 12 conda create -n rna python=2 source activate rnaconda activate rna conda deactivate conda remove -n rna --all conda env remove -n rna
1 2 3 4 5 6 7 $ conda info -e base /public/home/huangsisi/miniconda2 crispr /public/home/huangsisi/miniconda2/envs/crispr rna * /public/home/huangsisi/miniconda2/envs/rna rna2 /public/home/huangsisi/miniconda2/envs/rna2
1 2 3 4 5 6 7 8 9 10 11 conda upgrade --all conda install -y bwa conda list conda update bwa conda remove bwa