# pyplogo-toolkit
PyPLogo工具包:专业的蛋白质二级结构分析可视化工具。提供从结构提取、多主题定制到高质量出版级绘图的完整解决方案。
PyPLogo Toolkit: A professional tool for protein secondary structure analysis and visualization. Offers a complete solution from structure extraction, multi-theme customization to high-quality publication-ready plotting.
Multiple-sequence alignment with secondary structure
Version 0.1.6 adds compact multi-line alignments with a selectable structure sequence, DSSP structure glyphs, disulfide markers, and residue-level annotation tracks.
from pyplogo import SecondaryStructureVisualizer
alignment = {
"reference": "MK--TAACDEFG",
"homolog": "MKQ-TAACDEFG",
}
visualizer = SecondaryStructureVisualizer(
colors={
"H": "#59B97B",
"G": "#D38AAA",
"I": "#7668B5",
"E": "#D6A15E",
"T": "#9D8BC5",
"structure_label": "#B27A3D",
}
)
fig = visualizer.create_alignment_figure(
alignment,
structure_sequence="reference",
secondary_structure="HHTTEEECCC",
structure_label="reference structure",
amino_acids_per_line=60,
structure_mode="major", # H/G/I/E/T; use "all" for S and coil too
sequence_colors={"reference": "#B27A3D", "homolog": "#7668B5"},
disulfide_bonds=[(7, 10)], # 1-based ungapped residue positions
epitope_annotations={
"antibody A epitope": [7, 9, 10],
"antibody B epitope": [8, 11],
},
epitope_colors={
"antibody A epitope": "#8FB9DB",
"antibody B epitope": "#D39A9B",
},
)
fig.savefig("alignment.svg", bbox_inches="tight")
Frequently used style controls include:
show_legend,legend_position,legend_columns,legend_font_sizeshow_epitope_legend,epitope_marker,epitope_marker_sizesequence_font_size,label_font_size,sequence_pitchshow_residue_numbers,show_conservation,conservation_thresholddisulfide_color,disulfide_text_color,disulfide_line_widthannotation_offset,annotation_track_spacing,structure_offset
Metadata
Release files for pyplogo 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyplogo-0.1.6.tar.gz | 42.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyplogo-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 85.7 kB
Release files / pyplogo-0.1.6.tar.gz
| Download URL | pyplogo-0.1.6.tar.gz |
|---|---|
| Size | 42.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f2d295dcdc0b10a708341f9aaa6549b37312cbe51ed60687c84931153131207
|
|
BLAKE2b-256 checksum How to use checksums |
2899b2070d92829f873008041c0fced66f559ed961a3e6119a08a64a01c8c7c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Release files / pyplogo-0.1.6-py3-none-any.whl
| Download URL | pyplogo-0.1.6-py3-none-any.whl |
|---|---|
| Size | 43.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b7fd8e26e73fa797d14ab24274f9a8f3c0f27dd7c4b75370d7eb323f92d57cc
|
|
BLAKE2b-256 checksum How to use checksums |
b2eaab6294f15635d9f13e5a53ac75950a7e4ffd4d9795e9b45a1ecee05598bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|