Biopython Useage With Examples
Biopython Useage With Examples
Work with DNA, RNA, and protein sequences using the Seq and SeqRecord objects.
Read/write a variety of file formats: FASTA, GenBank, Clustal, Phylip, FASTQ, etc.
Automate remote access to tools like NCBI BLAST over the internet.
Structural Biology
Tools for analyzing genetic diversity and statistics like substitution matrices.
Phylogenetics
📦 Installation
bash
Másolás
Szerkesztés
pip install biopython
🧪 Example Usage
Reading a FASTA file:
python
Másolás
Szerkesztés
from Bio import SeqIO
dna = Seq("ATGGCCATTGTAATGGGCCGCTGAAAGGGTGCCCGATAG")
protein = dna.translate()
print(protein)
Accessing BLAST online:
python
Másolás
Szerkesztés
from Bio.Blast import NCBIWWW
Tutorials: https://biopython.org/DIST/docs/tutorial/Tutorial.html