Biopython web databases and BioSQL
Use this sub-skill when a task involves Biopython's public biological database clients, database-specific parsers, or BioSQL integration:
- NCBI Entrez E-utilities through
Bio.Entrez.
- PubMed/MEDLINE, GenBank flat files, Swiss-Prot/UniProt, ExPASy, and KEGG records.
- Online BLAST submission only for
Bio.Blast.qblast etiquette and network cautions.
- Optional BioSQL relational storage through the
BioSQL package.
First routing decision
- Online retrieval requested: confirm network permission, user identity metadata, expected request count, retry/rate policy, and whether data may be sent to the remote service. Do not run online retrieval as a default smoke check.
- Already-downloaded records: prefer offline parsing with
Bio.Entrez.read/parse, Bio.Medline, Bio.SwissProt, Bio.ExPASy.*, Bio.KEGG.*, or Bio.GenBank as appropriate.
- General sequence file I/O: route to the file I/O sub-skill for ordinary
SeqIO/AlignIO parsing, indexing, and conversion.
- BLAST result object analysis: route to the alignment/search sub-skill. This sub-skill only covers online
qblast safety and saving returned handles.
- BioSQL: treat database servers, schema loading, and third-party DB drivers as optional. Do not require full server setup unless the user explicitly asks for BioSQL persistence.
References
references/web-database-workflows.md for Entrez, Medline, GenBank, SwissProt, UniProt, ExPASy, KEGG, and qblast workflows.
references/biosql-reference.md for BioSQL driver choices, connection patterns, and optional setup boundaries.
references/troubleshooting.md for rate limits, parser modes, validation errors, network failures, and database-driver problems.
Offline check
Run python scripts/offline_database_parsers_smoke.py from this sub-skill directory, or run it by path from any working directory. It performs only in-memory parser/import checks and prints PASS on success.
1---2name: web-databases-and-biosql3description: "Use Biopython web/database retrieval, offline public-database4 parsers, and optional BioSQL safely."5disable-model-invocation: true6metadata:7 source: https://skillmd.com/skills/vectorspacelab/web-databases-and-biosql8 disco-role: operating9license: NOASSERTION10---1112# Biopython web databases and BioSQL1314Use this sub-skill when a task involves Biopython's public biological database clients, database-specific parsers, or BioSQL integration:1516- NCBI Entrez E-utilities through `Bio.Entrez`.17- PubMed/MEDLINE, GenBank flat files, Swiss-Prot/UniProt, ExPASy, and KEGG records.18- Online BLAST submission only for `Bio.Blast.qblast` etiquette and network cautions.19- Optional BioSQL relational storage through the `BioSQL` package.2021## First routing decision22231. **Online retrieval requested**: confirm network permission, user identity metadata, expected request count, retry/rate policy, and whether data may be sent to the remote service. Do not run online retrieval as a default smoke check.242. **Already-downloaded records**: prefer offline parsing with `Bio.Entrez.read`/`parse`, `Bio.Medline`, `Bio.SwissProt`, `Bio.ExPASy.*`, `Bio.KEGG.*`, or `Bio.GenBank` as appropriate.253. **General sequence file I/O**: route to the file I/O sub-skill for ordinary `SeqIO`/`AlignIO` parsing, indexing, and conversion.264. **BLAST result object analysis**: route to the alignment/search sub-skill. This sub-skill only covers online `qblast` safety and saving returned handles.275. **BioSQL**: treat database servers, schema loading, and third-party DB drivers as optional. Do not require full server setup unless the user explicitly asks for BioSQL persistence.2829## References3031- `references/web-database-workflows.md` for Entrez, Medline, GenBank, SwissProt, UniProt, ExPASy, KEGG, and qblast workflows.32- `references/biosql-reference.md` for BioSQL driver choices, connection patterns, and optional setup boundaries.33- `references/troubleshooting.md` for rate limits, parser modes, validation errors, network failures, and database-driver problems.3435## Offline check3637Run `python scripts/offline_database_parsers_smoke.py` from this sub-skill directory, or run it by path from any working directory. It performs only in-memory parser/import checks and prints `PASS` on success.