bio-motif-search
Find patterns, motifs, and subsequences in biological sequences using Biopython. Use when searching for transcription factor binding sites, regulatory elements, or any sequence pattern. For restriction enzyme analysis, use the restriction-analysis skill.
npx skills add majiayu000/claude-skill-registry --skill motif-search-gptomics-bioskills-2 --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.
# Motif Search Find patterns and motifs in biological sequences using Biopython and regex. ## Required Imports ```python from Bio.Seq import Seq from Bio import motifs import re ``` ## Core Methods ### find() - First Occurrence ```python seq = Seq('ATGCGAATTCGATCGAATTCGATC') pos = seq.find('GAATTC') # Returns 4 (first position) ``` Returns -1 if not found. ### count() - Count Occurrences ```python seq = Seq('ATGCGAATTCGATCGAATTCGATC') n = seq.count('GAATTC') # Returns 2 ``` ### find() with Start Position ```python seq = Seq('ATGCGAATTCGATCGAATTCGATC') first = seq.find('GAATTC') # 4 second = seq.find('GAATTC', 5) # 14 (search from position 5) ``` ## Code Patterns ### Find All Occurrences ```python def find_all(seq, pattern): pattern = str(pattern) seq_str = str(seq) positions = [] pos = seq_str.find(pattern) while pos != -1: positions.append(pos) pos = seq_str.find(pattern, pos + 1) return positions seq = Seq('ATGCGAATTCGATCGAATTCGATC') positions = find_all(seq, 'GAATTC') # [4, 14] ``` ### Search Both Strands ```python def find_both_strands(seq, pattern): results = [] for pos in find_all(seq, pattern): results.append(('+', pos)) rc = seq.reverse_complement() for pos in find_all(rc,
- Required Imports
- Core Methods
- find() - First Occurrence
- count() - Count Occurrences
- find() with Start Position
- Code Patterns
- Find All Occurrences
- Search Both Strands
- Regex Pattern Search
- IUPAC Ambiguity Pattern
- Find ORFs (Start to Stop)
- Find Repeats
- Bio.motifs Module
- Create Motif from Instances
What does the bio-motif-search skill do?
Find patterns, motifs, and subsequences in biological sequences using Biopython. Use when searching for transcription factor binding sites, regulatory elements, or any sequence pattern. For restriction enzyme analysis, use the restriction-analysis skill.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill motif-search-gptomics-bioskills-2 --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.
