![]() |
|
|||
Biopython provides a number of tools useful for studying genetic sequencing.
Installing BiopythonBiopython is available through the Anaconda distribution, but is not installed by default. The Conda InstallerAnaconda provides a wide variety of scientific packages, and has its own installer or package manager, called Generally speaking, if you are installing specialized software that may depend on a lot of other software, it’s a good idea to first create a conda environment, which will isolate these packages and even let you use different versions of python (e.g. because a package hasn’t been updated for newer versions). Procedure 1: Setting Up a Conda EnvironmentWorking with Conda requires using a shell, a command-line interpreter that is available on both Macs and Windows;
A window will appear with a text prompt that looks something like: (base) ~ username$ If Commands are typed after the conda create -n biopython Conda will provide some setup information and then ask if you want to Proceed ([y]/n)?; type y. conda activate biopython Your prompt will now show this environment at its beginning, for example: (biopython) ~ username$ conda install biopython Again, Conda will provide some setup information and then ask if you want to Proceed ([y]/n)?; type y. python If the package is properly installed, there will be no response. Type conda install matplotlib conda install spyder-kernels=2.5 The version assignment seen here will install the appropriate version of this package for version 5 of Spyder, which is provided with the 2025 version of Anaconda. import Bio If the environment and package(s) are properly installed, there will be no response. conda deactivate biopython Now you can start up Spyder and import Biopython in IPython: import biopython as bp For today, we’ll follow this tutorial.
|
||||||||
|
|
||||||||