Specialized Analyses and Graphics
Use this sub-skill when the user asks for Biopython workflows outside the core sequence/alignment/structure/database paths: motif/PWM/PSSM work, restriction enzyme analysis, clustering numeric data, phenotype microarray data, GenePop population genetics, GenomeDiagram or other graphics, protein property calculations, and long-tail modules such as CAPS, COMPASS, NMR, SCOP, Pathway, and Bio.Data constants.
Route here for
- Creating, parsing, formatting, reverse-complementing, scoring, and scanning motifs with
Bio.motifs, including JASPAR flat files and PWM/PSSM thresholds. - Restriction enzyme searches, digests, enzyme batches, circular-vs-linear maps, and
Analysisfilters withBio.Restriction. - Numeric clustering with
Bio.Cluster: distance matrices, k-means/medians, k-medoids, hierarchical clustering, SOMs, centroids, PCA, masks, and distance-code choices. - Phenotype Microarray records with
Bio.phenotype:pm-json/pm-csv,PlateRecord,WellRecord, interpolation, control subtraction, and optional curve fitting. - Population-genetics data in GenePop format with
Bio.PopGen.GenePop. Bio.GraphicsandBio.Graphics.GenomeDiagramdiagrams when optional graphics dependencies are available.- Protein summaries with
Bio.SeqUtils.ProtParam.ProteinAnalysisand relatedBio.SeqUtils/Bio.Datahelpers. - Long-tail Biopython modules where this sub-skill is the closest owner:
Bio.CAPS,Bio.Compass,Bio.NMR,Bio.SCOP, andBio.Pathway.
Route away
- Core
Seq,SeqRecord,SeqFeature, coordinate, translation, transcription, and basicSeqUtilstasks: use../sequence-objects-and-features/SKILL.md. - File conversion with
SeqIO,AlignIO, compression, indexing, or general format tables: use../file-io-and-format-conversion/SKILL.md. - Alignments, BLAST/SearchIO, phylogenetic trees, and external aligner guidance: use
../alignment-search-and-phylogeny/SKILL.md. - PDB/mmCIF structure parsing, writing, superposition, and structure geometry: use
../structural-bioinformatics/SKILL.md. - Online JASPAR SQL database access, Entrez/KEGG/web services, BioSQL, credentials, and network policy: use
../web-databases-and-biosql/SKILL.md.
First steps
- Identify the target module and whether the request is offline, network/database-backed, or graphics/optional-dependency-backed.
- For motifs or restriction enzymes, read
references/motif-restriction-reference.mdbefore writing code. - For clustering, phenotype, GenePop, graphics, protein-analysis, or long-tail modules, read
references/specialized-workflows.md. - If an import, format, optional dependency, JASPAR, graphics, fitting, or clustering error appears, read
references/troubleshooting.md. - When validating an installed Biopython environment for this sub-skill, run the offline smoke check:
python scripts/specialized_modules_smoke.py
The smoke script uses only tiny in-memory data and avoids network calls, credentials, graphics rendering, database servers, and original repository files.
Operating cautions
- Treat
Bio.Graphics, ReportLab bitmap rendering, JASPAR SQL database access, phenotype curve fitting, and external/web tools as optional until explicitly available. - Prefer deterministic clustering examples by supplying
initialidfor k-means/k-medians/k-medoids or by using hierarchical clustering/distance matrices. - Keep motif
read()for exactly-one-motif inputs andparse()for multi-motif inputs. - Restriction cut locations are biological one-based cut positions; do not reinterpret them as zero-based Python slice offsets without documenting the conversion.
