picogl.examples.demo_pdb_molviewspec

PDB to MolViewSpec Conversion Demo

This script demonstrates how to: 1. Load PDB files 2. Convert them to MolViewSpec format 3. Save the results for portable viewing

Functions

download_sample_pdb()

Download a sample PDB file for demonstration

analyze_structure(loader)

Analyze the loaded structure and print statistics

export_formats(loader, base_name)

Export the structure in multiple formats

show_molviewspec_info(molviewspec)

Display information about the generated MolViewSpec

main()

Main demonstration function

Module Contents

picogl.examples.demo_pdb_molviewspec.download_sample_pdb()[source]

Download a sample PDB file for demonstration

picogl.examples.demo_pdb_molviewspec.analyze_structure(loader)[source]

Analyze the loaded structure and print statistics

picogl.examples.demo_pdb_molviewspec.export_formats(loader, base_name)[source]

Export the structure in multiple formats

picogl.examples.demo_pdb_molviewspec.show_molviewspec_info(molviewspec)[source]

Display information about the generated MolViewSpec

picogl.examples.demo_pdb_molviewspec.main()[source]

Main demonstration function