bio-seq-objects
Installation
SKILL.md
Version Compatibility
Reference examples tested with: BioPython 1.83+
Before using code patterns, verify installed versions match. If versions differ:
- Python:
pip show <package>thenhelp(module.function)to check signatures
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
Seq Objects
Create and manipulate biological sequence objects using Biopython.
"Create a sequence object" → Wrap a raw string in a typed sequence container for biological operations.
- Immutable:
Seq('ATGC')(BioPython) — string-like, supports complement/translate - Mutable:
MutableSeq('ATGC')(BioPython) — supports in-place edits - Annotated:
SeqRecord(Seq(...), id=...)(BioPython) — adds metadata for file I/O