Biopython Bioinformatics
aiming-lab/AutoResearchClaw
Quick reference for Biopython work: sequence operations, SeqIO file parsing, BLAST searches, Entrez queries, phylogenetic trees and PDB structure analysis.
Modifies protein structures in place with Biopython Bio.PDB - transforms coordinates, strips waters/heteroatoms, overloads the B-factor column, renumbers, and builds entities.
$ npx skills add GPTomics/bioSkills --skill bio-structural-biology-structure-modification -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install GPTomics/bioSkills bio-structural-biology-structure-modification --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/structural-biology/structure-modification .claude/skills/bio-structural-biology-structure-modification && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "bio-structural-biology-structure-modification" agent skill from https://github.com/GPTomics/bioSkills/tree/main/structural-biology/structure-modification into .claude/skills/bio-structural-biology-structure-modification/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bio-structural-biology-structure-modification", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/GPTomics/bioSkills/tree/main/structural-biology/structure-modificationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add GPTomics/bioSkills --skill bio-structural-biology-structure-modification -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install GPTomics/bioSkills bio-structural-biology-structure-modification --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/structural-biology/structure-modification .agents/skills/bio-structural-biology-structure-modification && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "bio-structural-biology-structure-modification" agent skill from https://github.com/GPTomics/bioSkills/tree/main/structural-biology/structure-modification into .agents/skills/bio-structural-biology-structure-modification/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bio-structural-biology-structure-modification", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add GPTomics/bioSkills --skill bio-structural-biology-structure-modification -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install GPTomics/bioSkills bio-structural-biology-structure-modification --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/structural-biology/structure-modification .cursor/skills/bio-structural-biology-structure-modification && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "bio-structural-biology-structure-modification" agent skill from https://github.com/GPTomics/bioSkills/tree/main/structural-biology/structure-modification into .cursor/skills/bio-structural-biology-structure-modification/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bio-structural-biology-structure-modification", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/GPTomics/bioSkills.git --path structural-biology/structure-modification--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add GPTomics/bioSkills --skill bio-structural-biology-structure-modification -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install GPTomics/bioSkills bio-structural-biology-structure-modification --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/structural-biology/structure-modification .gemini/skills/bio-structural-biology-structure-modification && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "bio-structural-biology-structure-modification" agent skill from https://github.com/GPTomics/bioSkills/tree/main/structural-biology/structure-modification into .gemini/skills/bio-structural-biology-structure-modification/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bio-structural-biology-structure-modification", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install GPTomics/bioSkills bio-structural-biology-structure-modificationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add GPTomics/bioSkills --skill bio-structural-biology-structure-modification -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .github/skills && cp -r skills-src/structural-biology/structure-modification .github/skills/bio-structural-biology-structure-modification && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "bio-structural-biology-structure-modification" agent skill from https://github.com/GPTomics/bioSkills/tree/main/structural-biology/structure-modification into .github/skills/bio-structural-biology-structure-modification/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bio-structural-biology-structure-modification", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add GPTomics/bioSkills --skill bio-structural-biology-structure-modification -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install GPTomics/bioSkills bio-structural-biology-structure-modification --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/structural-biology/structure-modification .opencode/skills/bio-structural-biology-structure-modification && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "bio-structural-biology-structure-modification" agent skill from https://github.com/GPTomics/bioSkills/tree/main/structural-biology/structure-modification into .opencode/skills/bio-structural-biology-structure-modification/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bio-structural-biology-structure-modification", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
bio-structural-biology-structure-modificationModifies protein structures in place with Biopython Bio.PDB - transforms coordinates, strips waters/heteroatoms, overloads the B-factor column, renumbers, and builds entities.
Bio Structural Biology Structure Modification is an agent skill from GPTomics/bioSkills. Modifies protein structures in place with Biopython Bio.PDB - transforms coordinates, strips waters/heteroatoms, overloads the B-factor column, renumbers, and builds entities. Use when applying a rotation matrix and needing to know whether it is row-convention (Entity.transform, Superimposer) or column-convention (REMARK 350 / pdbxstructoperlist assembly operators) so geometry is not silently mirrored; when overloading B-factors with pLDDT/conservation for coloring and needing to preserve the destroyed originals…
Its SKILL.md is about 4.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files (for example `examples/modify_bfactor.py`, `examples/remove_water.py` and `examples/transform_coords.py`).
It sits in Research & Science, covering Protein structure and design and Bioinformatics. It works with Biopython. The repository describes itself as: a set of SKILLS.md for doing bioinformatics with agents like claude code. The licence is MIT.
Read from SKILL.md and the folder at commit d91ed3d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (Python), which the agent can run.
Shell commands in SKILL.md call:
pipFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
rcsb.orgFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Bio Structural Biology Structure Modification loads about 4.4k tokens when it runs. Until then it costs about 226 tokens; SKILL.md has 1,222 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from GPTomics/bioSkills at commit d91ed3d, republished under its MIT licence (© GPTomics). 1,222 words, ~4,434 tokens.
.claude/skills/bio-structural-biology-structure-modification/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Reference examples tested with: biopython 1.83+, numpy 1.26+
Before using code patterns, verify installed versions match. If versions differ:
pip show <package> then help(module.function) to check signaturesIf code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
"Move this chain onto that one and strip the waters" -> mutate coordinates and the entity tree in place, then write a new file.
Entity.transform(rot, tran) for coordinates, detach_child / PDBIO(select=...) for filtering, StructureBuilder for buildingBio.PDB has no immutable copy semantics. atom.coord = ..., residue.id = ..., chain.detach_child(...), and Entity.transform(...) all mutate the parsed object directly, so the moment a downstream step still needs the original, a copy.deepcopy must be taken first (a plain reference is not a copy).
The trap that silently corrupts geometry is the rotation convention. Bio.PDB Superimposer, SVDSuperimposer, and Entity.transform(rot, tran) apply the transform as dot(coords, rot) + tran - coordinates are treated as ROW vectors post-multiplied by rot, so the rot these classes hand back is the TRANSPOSE of the textbook rotation matrix. Biological-assembly operators are the opposite: REMARK 350 and mmCIF _pdbx_struct_oper_list matrices are COLUMN-convention (R @ x + t). Feeding a column-convention R straight into Entity.transform (or writing np.dot(R, atom.coord) against a row-convention source) applies the transpose and yields a mirrored or wrongly-rotated structure that still looks plausible. Prefer Entity.transform / atom.transform (which own the row convention) over hand-rolled np.dot, and transpose any column-convention operator before passing it in.
Three more edits destroy data quietly: overloading the B-factor column with a per-residue scalar (pLDDT, conservation) DESTRUCTIVELY overwrites the real temperature factors - and for AlphaFold models the column already IS pLDDT, so overwrite it and the confidence signal is gone; save the originals first. Stripping solvent by residue NAME instead of the HETFLAG (r.id[0]) deletes functional metals, cofactors, and modified residues (MSE) mid-chain. And building or copying entities without wiring the SMCRA parent-child links, or renumbering without carrying the full (hetflag, resseq, icode) id tuple, makes the writer emit broken or collided records.
| Matrix source | Convention | Apply as | Failure if mixed |
|---|---|---|---|
Superimposer.rotran / SVDSuperimposer.get_rotran | row (coords @ rot) | Entity.transform(rot, tran) | none - same convention |
Entity.transform / atom.transform | row (coords @ rot) | pass rot as-is | none |
REMARK 350 / _pdbx_struct_oper_list assembly operators | column (R @ x + t) | Entity.transform(R.T, t) | column R applied row -> mirrored/rotated wrong |
Bio.PDB.vectors.rotaxis(theta, Vector) | row (built for .transform) | Entity.transform(rot, tran) | none |
Raw math / textbook R via np.dot | column (R @ x) | R @ coord + t explicitly, consistently | inconsistent left/right multiply |
| Strategy | Filter | Deletes | Use when |
|---|---|---|---|
| By HETFLAG, water only | r.id[0] == 'W' | ordered/crystallographic waters | safe default before docking/MD prep |
| By explicit deny-list | r.resname in {'HOH','SO4','GOL','EDO','PEG'} | named solvent/cryoprotectant only | keeping ligands and metals |
| By blanket HETFLAG | r.id[0] != ' ' | ALL hetero incl. Zn/Mg/heme/FAD/MSE | almost never - breaks binding sites |
| By residue name (naive) | r.resname == 'HOH' | misses 'W'-flagged waters, keeps some | avoid - HETFLAG is authoritative |
from Bio.PDB import PDBParser, PDBIO
import numpy as np
parser = PDBParser(QUIET=True)
structure = parser.get_structure('protein', 'protein.pdb')
# Entity.transform applies coords @ rot + tran (row convention) to every atom in place.
identity = np.identity(3)
translation = np.array([10.0, 0.0, 0.0])
structure.transform(identity, translation)
io = PDBIO()
io.set_structure(structure)
io.save('translated.pdb')from Bio.PDB import PDBParser
from Bio.PDB.vectors import rotaxis, Vector
import numpy as np
parser = PDBParser(QUIET=True)
structure = parser.get_structure('protein', 'protein.pdb')
# rotaxis returns a row-convention matrix intended for Entity/atom.transform.
rot = rotaxis(np.radians(90), Vector(0, 0, 1))
# Rotate about the center of mass: pick tran so the center is the fixed point of coords @ rot + tran.
center = np.array([a.coord for a in structure.get_atoms()]).mean(axis=0)
tran = center - center @ rot
structure.transform(rot, tran)from Bio.PDB import PDBParser
import numpy as np
parser = PDBParser(QUIET=True)
structure = parser.get_structure('protein', 'protein.pdb')
# REMARK 350 / _pdbx_struct_oper_list operators are column-convention: newcoord = R @ coord + t.
R = np.array([[0.0, -1.0, 0.0], [1.0, 0.0, 0.0], [0.0, 0.0, 1.0]])
t = np.array([25.0, 0.0, 0.0])
# Entity.transform expects the row convention, so transpose the column-convention R first.
structure.transform(R.T, t)from Bio.PDB import PDBParser
import numpy as np
parser = PDBParser(QUIET=True)
structure = parser.get_structure('protein', 'protein.pdb')
center = np.array([a.coord for a in structure.get_atoms()]).mean(axis=0)
structure.transform(np.identity(3), -center)from Bio.PDB import PDBParser, PDBIO
parser = PDBParser(QUIET=True)
structure = parser.get_structure('protein', 'protein.pdb')
model = structure[0]
# Detach hydrogens; collect ids first so the child dict is not mutated mid-iteration.
for residue in model.get_residues():
for atom_id in [a.id for a in residue if a.element == 'H']:
residue.detach_child(atom_id)
# Detach whole chains by id.
if model.has_id('B'):
model.detach_child('B')
io = PDBIO()
io.set_structure(structure)
io.save('cleaned.pdb')Goal: Remove crystallographic water without deleting functional heteroatoms.
Approach: Filter on the residue-id HETFLAG (r.id[0]), which is 'W' for water and 'H_<name>' for other hetero groups - not on the residue name, which silently keeps 'W'-flagged waters and cannot distinguish a catalytic metal from a buffer ion.
from Bio.PDB import PDBParser, PDBIO
parser = PDBParser(QUIET=True)
structure = parser.get_structure('protein', 'protein.pdb')
# 'W' HETFLAG isolates water; a blanket r.id[0] != ' ' would also delete Zn/Mg/heme/FAD and MSE.
for chain in structure[0]:
for res_id in [r.id for r in chain if r.id[0] == 'W']:
chain.detach_child(res_id)
io = PDBIO()
io.set_structure(structure)
io.save('no_water.pdb')from Bio.PDB import PDBParser, PDBIO, Select
parser = PDBParser(QUIET=True)
structure = parser.get_structure('protein', 'protein.pdb')
# Select writes a filtered copy without mutating the parsed tree.
class CoreChain(Select):
def accept_chain(self, chain):
return chain.id == 'A'
def accept_residue(self, residue):
return residue.id[0] == ' ' and 50 <= residue.id[1] <= 100
io = PDBIO()
io.set_structure(structure)
io.save('coreA_50_100.pdb', CoreChain())Goal: Paint a per-residue scalar (conservation, pLDDT) into the B-factor column for viewer coloring.
Approach: Overwriting atom.bfactor DESTROYS the real temperature factors (and for AlphaFold models overwrites the pLDDT already stored there), so snapshot the originals before writing, set the score on EVERY atom of the residue, and let the viewer autoscale rather than hand-scaling.
from Bio.PDB import PDBParser, PDBIO
parser = PDBParser(QUIET=True)
structure = parser.get_structure('protein', 'protein.pdb')
# Snapshot originals: this column is a real temperature factor (or AlphaFold pLDDT) until overwritten.
original_bfactors = {atom.get_full_id(): atom.bfactor for atom in structure.get_atoms()}
conservation = {100: 9.0, 101: 5.0, 102: 3.0}
for residue in structure.get_residues():
score = conservation.get(residue.id[1])
if score is None:
continue
for atom in residue:
atom.bfactor = score # set on all atoms so per-atom coloring is not patchy
io = PDBIO()
io.set_structure(structure)
io.save('colored.pdb') # do not feed this file back to refinement/validationfrom Bio.PDB import PDBParser, PDBIO
parser = PDBParser(QUIET=True)
structure = parser.get_structure('protein', 'protein.pdb')
# Occupancy must stay consistent with altlocs: complementary altlocs should sum to <= 1.
for atom in structure[0]['A'].get_atoms():
atom.occupancy = 1.0
io = PDBIO()
io.set_structure(structure)
io.save('occupancy_set.pdb')A sequential renumber like the one below is safe ONLY for internal bookkeeping. To renumber a structure so it matches the UniProt CANONICAL numbering (for figures or mutation mapping), a sequential or fixed-offset renumber SILENTLY MISALIGNS wherever the construct has an expression tag, an unresolved N-terminus, an engineered mutation, or a missing-density loop - which is almost always. Map residue-by-residue through SIFTS / the author auth_seq_id scheme instead (see structure-navigation for the observed-vs-SEQRES-vs-UniProt distinction and database-access/uniprot-access for the SIFTS mapping); never assume position N in the file is UniProt residue N.
from Bio.PDB import PDBParser, PDBIO
parser = PDBParser(QUIET=True)
structure = parser.get_structure('protein', 'protein.pdb')
chain = structure[0]['A']
# Preserve the (hetflag, ..., icode) tuple; only the resseq middle field changes.
# Assign into a temporary range first to avoid colliding with existing ids mid-loop.
for offset, residue in enumerate(list(chain)):
hetflag, _, icode = residue.id
residue.id = (hetflag, offset + 10000, icode)
for new_seq, residue in enumerate(list(chain), start=1):
hetflag, _, icode = residue.id
residue.id = (hetflag, new_seq, icode)
io = PDBIO()
io.set_structure(structure)
io.save('renumbered.pdb')Goal: Construct a valid SMCRA tree from coordinates alone.
Approach: StructureBuilder wires the Structure > Model > Chain > Residue > Atom parent-child links automatically, which is why the writer emits valid records - hand-assembling Atom objects without add leaves orphans.
from Bio.PDB import StructureBuilder, PDBIO
import numpy as np
sb = StructureBuilder.StructureBuilder()
sb.init_structure('built')
sb.init_model(0)
sb.init_chain('A')
sb.init_seg(' ')
sb.init_residue('ALA', ' ', 1, ' ')
sb.init_atom('N', np.array([-1.0, 0.0, 0.0]), 20.0, 1.0, ' ', 'N', 1, 'N')
sb.init_atom('CA', np.array([0.0, 0.0, 0.0]), 20.0, 1.0, ' ', 'CA', 2, 'C')
sb.init_atom('C', np.array([1.0, 0.0, 0.0]), 20.0, 1.0, ' ', 'C', 3, 'C')
sb.init_atom('O', np.array([1.5, 1.0, 0.0]), 20.0, 1.0, ' ', 'O', 4, 'O')
io = PDBIO()
io.set_structure(sb.get_structure())
io.save('built_structure.pdb')from Bio.PDB import PDBParser, PDBIO
import copy
parser = PDBParser(QUIET=True)
structure = parser.get_structure('protein', 'protein.pdb')
# deepcopy carries the whole subtree with intact parent-child links; reassign id and detach the old parent.
new_chain = copy.deepcopy(structure[0]['A'])
new_chain.id = 'B'
new_chain.detach_parent()
structure[0].add(new_chain)
io = PDBIO()
io.set_structure(structure)
io.save('duplicated_chain.pdb')from Bio.PDB import PDBParser, PDBIO
import copy
parser = PDBParser(QUIET=True)
struct1 = parser.get_structure('s1', 'structure1.pdb')
struct2 = parser.get_structure('s2', 'structure2.pdb')
# Assign explicit non-colliding ids from a free pool; chr(ord(id)+10) breaks on multi-char/adjacent ids.
used = {c.id for c in struct1[0]}
free = (c for c in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' if c not in used)
for chain in list(struct2[0]):
moved = copy.deepcopy(chain)
moved.id = next(free)
moved.detach_parent()
struct1[0].add(moved)
io = PDBIO()
io.set_structure(struct1)
io.save('merged.pdb')| Symptom | Cause | Fix |
|---|---|---|
| Rotated structure looks mirrored or points the wrong way | Column-convention operator (REMARK 350 / _pdbx_struct_oper_list) applied with the row-convention Entity.transform | Transpose first: structure.transform(R.T, t); or apply R @ coord + t explicitly |
Superimposer rotation gives garbage when reused via np.dot(rot, coord) | Superimposer.rotran is row-convention (coords @ rot); np.dot(rot, coord) applies the transpose | Use Entity.transform(rot, tran) or coord @ rot + tran |
| Original structure changed after a transform | All edits mutate in place; a reference is not a copy | copy.deepcopy(structure) before modifying |
| B-factors lost / AlphaFold confidence gone after coloring | Writing a scalar into atom.bfactor overwrites the temperature factor (or pLDDT) | Snapshot originals first; never send the overloaded file to refinement |
| Catalytic metal or cofactor missing after "removing hetero" | Stripped by r.id[0] != ' ' or by residue name, deleting Zn/Mg/heme/MSE | Strip water only (r.id[0] == 'W') or use an explicit deny-list |
RuntimeError: dictionary changed size during iteration | Detaching children while iterating the parent | Collect ids into a list first, then detach_child |
KeyError when accessing a renumbered residue | Reduced id to id[1], dropping the (hetflag, ..., icode) tuple | Key on the full tuple; only display id[1] |
| Writer emits truncated or duplicate records | Renumber/merge produced a colliding (hetflag, resseq, icode) or chain id | Renumber via a temporary offset; assign ids from a checked free pool |
| Built structure writes an empty or broken file | Atom/Residue objects created without add, leaving SMCRA links unset | Use StructureBuilder or wire add at every level |
| Only one alternate conformer written after occupancy edit | Altloc/occupancy edited independently so occupancies no longer sum to <= 1 | Keep complementary altlocs consistent as a pair |
| Chain-merge crashes on multi-character chain ids | chr(ord(chain.id) + 10) assumes single adjacent characters | Assign explicit ids from a free-id pool |
| mmCIF metadata or anisotropic B-factors dropped after a Bio.PDB round-trip | Bio.PDB does not round-trip ANISOU or the full mmCIF model | For mmCIF-fidelity edits use gemmi; keep Bio.PDB for PDB-scale work |
_pdbx_struct_assembly_gen and _pdbx_struct_oper_list). https://www.rcsb.org/docs/programmatic-access/file-download-services© GPTomics, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files in structural-biology/structure-modification of GPTomics/bioSkills.
Open the folder on GitHubat commit d91ed3d
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in GPTomics/bioSkills, which our catalogue first saw on October 7, 2026.
Bio Structural Biology Structure Modification next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Bio Structural Biology Structure Modification this skillGPTomics/bioSkills | 1.2k | 1 repos | ~4.4k | Automated safety check: Pass | MIT | |
| Biopython Bioinformaticsaiming-lab/AutoResearchClaw | 15k | — | ~810 | Automated safety check: Pass | MIT | |
| Ggetdavila7/claude-code-templates | 32k | 10 repos | ~6.3k | Automated safety check: Pass | MIT | |
| Bio Pdb Geometric AnalysisFreedomIntelligence/OpenClaw-Medical-Skills | 3.1k | 1 repos | ~3.2k | Automated safety check: Pass | None | |
| Bio Pdb Structure IoFreedomIntelligence/OpenClaw-Medical-Skills | 3.1k | 1 repos | ~1.9k | Automated safety check: Pass | None | |
| Bio Pdb Structure ModificationFreedomIntelligence/OpenClaw-Medical-Skills | 3.1k | 1 repos | ~2.8k | Automated safety check: Pass | None |
aiming-lab/AutoResearchClaw
Quick reference for Biopython work: sequence operations, SeqIO file parsing, BLAST searches, Entrez queries, phylogenetic trees and PDB structure analysis.
davila7/claude-code-templates
CLI/Python toolkit for rapid bioinformatics queries. An agent skill from davila7/claude-code-templates.
FreedomIntelligence/OpenClaw-Medical-Skills
Perform geometric calculations on protein structures using Biopython Bio.PDB.
FreedomIntelligence/OpenClaw-Medical-Skills
Parse and write protein structure files using Biopython Bio.PDB.
FreedomIntelligence/OpenClaw-Medical-Skills
Modify protein structures using Biopython Bio.PDB. An agent skill from FreedomIntelligence/OpenClaw-Medical-Skills.
FreedomIntelligence/OpenClaw-Medical-Skills
Navigate protein structure hierarchy using Biopython Bio.PDB SMCRA model.
GPTomics/bioSkills
Read, write, and convert multiple sequence alignment files using Biopython Bio.AlignIO.
GPTomics/bioSkills
Installs the bioSkills collection of 425 bioinformatics skills in one step, or only chosen categories, so sequencing, RNA-seq, single-cell and variant tasks get specialized help.
GPTomics/bioSkills
Write biological sequences to files (FASTA, FASTQ, GenBank, EMBL) using Biopython Bio.SeqIO.
GPTomics/bioSkills
Soft- or hard-clips PCR primer footprints from aligned amplicon BAMs so primer bases stop masquerading as confirmed reference sequence.
GPTomics/bioSkills
Filters BAM alignments by FLAG bits, mapping quality and regions with samtools view or pysam, with recipes for common keep and drop cases.
GPTomics/bioSkills
Create and use BAI/CSI indices for BAM/CRAM files using samtools and pysam.
Works with
Categories
Modifies protein structures in place with Biopython Bio.PDB - transforms coordinates, strips waters/heteroatoms, overloads the B-factor column, renumbers, and builds entities. Bio Structural Biology Structure Modification is an agent skill from GPTomics/bioSkills.PDB - transforms coordinates, strips waters/heteroatoms, overloads the B-factor column, renumbers, and builds entities.
Bio Structural Biology Structure Modification fits situations like: applying a rotation matrix and needing to know whether it is row-convention (Entity.transform; column-convention (REMARK 350 / pdbxstructoperlist assembly operators) so geometry is not silently mirrored; overloading B-factors with pLDDT/conservation for coloring and needing to preserve the destroyed originals; stripping solvent by HETFLAG (r.id[0]) rather than residue name so catalytic metals and cofactors survive.
Run `npx skills add GPTomics/bioSkills --skill bio-structural-biology-structure-modification -a claude-code`. Or copy the skill folder (structural-biology/structure-modification in GPTomics/bioSkills) into .claude/skills/bio-structural-biology-structure-modification in your project. Claude Code loads it when a task matches its description.
Run `npx skills add GPTomics/bioSkills --skill bio-structural-biology-structure-modification -a codex`. Or copy the skill folder (structural-biology/structure-modification in GPTomics/bioSkills) into .agents/skills/bio-structural-biology-structure-modification in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add GPTomics/bioSkills --skill bio-structural-biology-structure-modification -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bio-structural-biology-structure-modification, .gemini/skills/bio-structural-biology-structure-modification, .github/skills/bio-structural-biology-structure-modification and .opencode/skills/bio-structural-biology-structure-modification in your project.
Going by SKILL.md and its folder, Bio Structural Biology Structure Modification needs Python for the scripts in its folder and the command-line tools its instructions call (pip). Our summary lists: Python 3.
SKILL.md names 1 domain. As links in the text: rcsb.org. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Bio Structural Biology Structure Modification is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.4k tokens (SKILL.md is roughly 18k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Bio Structural Biology Structure Modification: Biopython Bioinformatics (aiming-lab/AutoResearchClaw, 15k stars), Gget (davila7/claude-code-templates, 32k stars), Bio Pdb Geometric Analysis (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars) and Bio Pdb Structure Io (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
GPTomics (a GitHub organization) maintains it in GPTomics/bioSkills, which has 1,217 GitHub stars. The repository holds 559 skills in this directory. The repository was last updated on August 15, 2026.
Source: GPTomics/bioSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.