bio-reverse-complement
Generate reverse complements and complements of DNA/RNA sequences using Biopython. Use when working with opposite strands, primer design, or converting between template and coding strands.
npx skills add BioTender-max/awesome-bio-agent-skills --skill reverse-complement --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.
## Version Compatibility Reference examples tested with: BioPython 1.83+, samtools 1.19+ Before using code patterns, verify installed versions match. If versions differ: - Python: `pip show <package>` then `help(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. # Reverse Complement Generate complementary and reverse complementary sequences using Biopython. **"Get the reverse complement"** → Produce the 5'-to-3' sequence of the opposite strand. - Python: `seq.reverse_complement()` (BioPython `Seq`) - CLI: `samtools faidx ref.fa region --reverse-complement` ## Required Import ```python from Bio.Seq import Seq ``` ## Core Methods ### reverse_complement() Returns the reverse complement (5' to 3' of the opposite strand). ```python seq = Seq('ATGCGATCG') rc = seq.reverse_complement() # Returns Seq('CGATCGCAT') ``` This is the most commonly used operation - it gives you the sequence of the opposite strand in the conventional 5' to 3' direction. ### complement() Returns the complement without reversing. ```python seq = Seq('ATGCGATCG') comp = se
- Version Compatibility
- Required Import
- Core Methods
- reversecomplement()
- complement()
- reversecomplementrna()
- complementrna()
- Base Pairing Rules
- DNA
- RNA
- Ambiguous Bases (IUPAC)
- Code Patterns
- Basic Reverse Complement
- Visualize Double-Stranded DNA
What does the bio-reverse-complement skill do?
Generate reverse complements and complements of DNA/RNA sequences using Biopython. Use when working with opposite strands, primer design, or converting between template and coding strands.
How do I install it?
Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill reverse-complement --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 BioTender-max/awesome-bio-agent-skills, a repository with 135 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.
