- Bioinformatics with Python Cookbook
- Tiago Antao
- 249字
- 2021-06-10 19:01:41
How to do it...
Take a look at the following steps to get started:
- Start by downloading the Anaconda distribution from https://www.anaconda.com/download. Choose Python version 3. In any case, this is not fundamental, because Anaconda will let you use Python 2 if you need it. You can accept all the installation defaults, but you may want to make sure that the conda binaries are in your path (do not forget to open a new window so that the path is updated). If you have another Python distribution, be careful with your PYTHONPATH and existing Python libraries. It's probably better to unset your PYTHONPATH. As much as possible, uninstall all other Python versions and installed Python libraries.
- Let's go ahead with the libraries. We will now create a new conda environment called bioinformatics with biopython=1.70, as shown in the following command:
conda create -n bioinformatics biopython biopython=1.70
- Let's activate the environment, as follows:
source activate bioinformatics
- Let's add the bioconda and conda-forge channel to our source list:
conda config --add channels bioconda
conda config --add channels conda-forge
Also, install the core packages:
conda install scipy matplotlib jupyter-notebook pip pandas cython numba scikit-learn seaborn pysam pyvcf simuPOP dendropy rpy2
Some of them will probably be installed with the core distribution anyway.
- We can even install R from conda:
conda install r-essentials r-gridextra
r-essentials installs a lot of R packages, including ggplot2, which we will use later. We also install r-gridextra, since we will be using it in the Notebook.
推薦閱讀
- C語言程序設計
- Python Geospatial Development(Second Edition)
- Apache Karaf Cookbook
- 人人都是網站分析師:從分析師的視角理解網站和解讀數據
- Java EE 7 Performance Tuning and Optimization
- 從零開始學Linux編程
- Unity&VR游戲美術設計實戰
- Getting Started with Python
- Mockito Essentials
- Xamarin Cross-Platform Development Cookbook
- Python第三方庫開發應用實戰
- Swift High Performance
- 透視C#核心技術:系統架構及移動端開發
- 基于JavaScript的WebGIS開發
- Microsoft 365 and SharePoint Online Cookbook