biopython

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

Install

Hot:21

Download and extract to your skills directory

Copy command and send to AI Agent for auto-install:

Download and install this skill https://openskills.cc/api/download?slug=k-dense-ai-skills-biopython&locale=en&source=copy

Biopython: A Complete Toolkit for Computational Molecular Biology in Python

Skills Overview


Biopython is a free collection of Python tools designed specifically for bioinformatics and computational molecular biology. It provides core functionality for sequence processing, database access, structural analysis, and more.

Use Cases


  • Batch biological data processing: Process large numbers of gene sequences, convert file formats (FASTA/GenBank/FASTQ), and calculate sequence statistics (GC content and molecular weight). It is suitable for researchers who need to automate genomic data processing.
  • Automated access to NCBI databases: Use the Bio.Entrez module to access databases such as GenBank and PubMed programmatically, and download sequence and literature information in batches. This is suitable for research workflows that require regular access to the latest data.
  • Sequence alignment and phylogenetic analysis: Perform pairwise or multiple-sequence alignments, run BLAST searches, and construct and visualize phylogenetic trees. It is suitable for research in evolutionary biology and comparative genomics.
  • Core Features


  • Sequence processing and file parsing: Supports reading and writing more than 20 biological file formats, including FASTA, GenBank, FASTQ, and PDB. It provides operations such as sequence translation, transcription, and reverse complementation, and can process individual sequences or read large files using streaming.
  • NCBI database integration: Bio.Entrez provides programmatic access to NCBI databases, supporting searches for GenBank nucleotide sequences, PubMed literature, and the Protein database. It can also parse returned results for batch downloads.
  • Sequence alignment and BLAST: Includes pairwise sequence-alignment algorithms (global and local), can call the NCBI BLAST web service or local BLAST tools, parse BLAST XML output, and filter results by E-value or similarity.
  • Frequently Asked Questions

    Which Python versions does Biopython support?


    Biopython 1.87 supports Python 3.10–3.14 and PyPy3.10, and also requires NumPy to be installed. If your Python version is earlier than 3.10, you need to upgrade your Python environment before installing Biopython.

    Why must an email address be set when using NCBI Entrez?


    NCBI policy requires all Entrez requests to provide an email address so that users can be contacted if problems arise. In addition, registering an NCBI API key and setting it as the NCBI_API_KEY environment variable can increase the rate limit from 3 requests per second to 10 requests per second.

    Is Biopython suitable for processing large-scale sequence data?


    Yes. Biopython’s SeqIO module uses an iterator-based design, allowing large FASTA files to be read in a streaming manner without loading them entirely into memory. For particularly large datasets, batch processing and caching downloaded data are recommended to avoid repeated requests to NCBI servers.