Biotechnology · Introductory

Biological Sequence Database

Written by SignalsLab

Early edition: these lessons are being reviewed.

Content

Summary

Biological sequence databases like NCBI's GenBank and RefSeq store vast genomic data, with GenBank being archival and redundant while RefSeq is curated and non-redundant. Due to frequent interface updates, researchers use programmatic tools like Biopython's Entrez module to automate data retrieval, requiring an email address for tracking.

Intuition

Think of biological databases as a library that is constantly being rewritten. GenBank is like the raw submission box where anyone can drop in manuscripts, so you might find multiple copies of the same story (redundancy). RefSeq is the librarian's curated reading list, where each book has a unique, verified ID and no duplicates. Because the library's catalog system changes often, trying to browse manually is inefficient; instead, you use a script (Biopython) to ask for specific books directly, ensuring you get the right data format every time.

Derivation

  1. Biological data is vast and dynamic, making manual navigation impractical.
  2. Programmatic access via libraries like Biopython ensures robustness against interface changes.
  3. NCBI hosts multiple databases: GenBank (archival/redundant) and RefSeq (curated/non-redundant).
  4. RefSeq uses specific prefixes (NM_, NR_, NP_) to identify molecule types.
  5. Biopython's Entrez module requires an email address and uses esearch/efetch for data retrieval.

Worked example

Problem

A student wants to retrieve the FASTA sequence for the RefSeq protein NP_003173 using Biopython. What steps must they take?

  1. Import the Entrez module from Biopython.
  2. Set an email address for NCBI tracking policies.
  3. Use Entrez.esearch to find the ID for 'NP_003173' (or use the ID directly if known).
  4. Use Entrez.efetch with db='protein', id='NP_003173', and rettype='fasta' to download the sequence.

Answer The student imports Entrez, sets their email, and uses efetch with rettype='fasta' to get the sequence directly as a FASTA file.

Common mistakes

  • Assuming database web interfaces remain static; they are frequently updated.
  • Confusing GenBank's archival, redundant nature with RefSeq's curated, non-redundant nature.
  • Failing to set an email address when using the Entrez module, which violates NCBI usage policies.

Animation

Animation coming soon

The animated version of this lesson is being prepared for the web. In the Signals AI app, lessons are drawn step by step.

Code

This is a text lesson: it has no animation code yet.

ccBYNC© 2026 SignalsLab. Lesson text shared as is under CC BY-NC 4.0.