Skip to main content

# 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.

output-1 output-2 output

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_size
  • show_epitope_legend, epitope_marker, epitope_marker_size
  • sequence_font_size, label_font_size, sequence_pitch
  • show_residue_numbers, show_conservation, conservation_threshold
  • disulfide_color, disulfide_text_color, disulfide_line_width
  • annotation_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)

Source distribution for pyplogo 0.1.6
File Size Uploaded
pyplogo-0.1.6.tar.gz 42.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyplogo 0.1.6
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

0.2.0

2 release files

0.1.8

2 release files

0.1.7

2 release files

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page