bio-seq-objects
Create and manipulate Seq, MutableSeq, and SeqRecord objects using Biopython. Use when creating sequences from strings, modifying sequence data in-place, or building annotated sequence records.
npx skills add majiayu000/claude-skill-registry --skill seq-objects-gptomics-bioskills --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Seq Objects Create and manipulate biological sequence objects using Biopython. ## Required Imports ```python from Bio.Seq import Seq, MutableSeq from Bio.SeqRecord import SeqRecord ``` ## Core Objects ### Seq - Immutable Sequence The basic sequence object. Immutable like Python strings. ```python seq = Seq('ATGCGATCGATCG') ``` Seq objects support string-like operations: ```python len(seq) # Length seq[0] # First base seq[-1] # Last base seq[0:10] # Slice (returns Seq) str(seq) # Convert to string 'ATG' in seq # Membership test seq.count('G') # Count occurrences seq.find('ATG') # Find position (-1 if not found) seq.upper() # Uppercase seq.lower() # Lowercase seq * 3 # Repeat sequence seq.strip() # Remove leading/trailing whitespace ``` ### MutableSeq - Mutable Sequence For in-place modifications when performance matters. ```python mut_seq = MutableSeq('ATGCGATCG') mut_seq[0] = 'C' # Modify single position mut_seq[0:3] = 'GGG' # Replace slice mut_seq.append('A') # Add to end mut_seq.insert(0, 'G') # Insert at position mut_seq.pop() # Remove and return last mut_seq.remove('G') # Remove first occurrence mut_seq.reverse() # Reverse in place ``` Convert between types: ```python seq = S
- Required Imports
- Core Objects
- Seq - Immutable Sequence
- MutableSeq - Mutable Sequence
- SeqRecord - Annotated Sequence
- SeqRecord Methods
- Code Patterns
- Create Seq from String
- Create SeqRecord for File Output
- Create SeqRecord with Annotations
- Build SeqRecord from Parsed Data
- Batch Create SeqRecords
- Copy a SeqRecord
- Modify SeqRecord Sequence
What does the bio-seq-objects skill do?
Create and manipulate Seq, MutableSeq, and SeqRecord objects using Biopython. Use when creating sequences from strings, modifying sequence data in-place, or building annotated sequence records.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill seq-objects-gptomics-bioskills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
