Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
THREEJSBuilder Class Reference

Public Member Functions

None create (self)

Protected Member Functions

Dict _extract_structure_data (self)
Optional[List[str]] _selected_class_labels (self)
None _extract_vertex (self)

Detailed Description

Generate Three.js viewer input 1.json file for Panel web application.

Member Function Documentation

◆ _extract_structure_data()

Dict _extract_structure_data ( self)
protected
Extract structure data from output files for Three.js viewer.

Args:
    output_dir: Directory where SBL exe output files are located.
Returns:
    A dictionary representing the structure data for Three.js viewer.

◆ _extract_vertex()

None _extract_vertex ( self)
protected
Compute selected vertex IDs and the remapping id->index used in geometry arrays.

◆ _selected_class_labels()

Optional[List[str]] _selected_class_labels ( self)
protected
Return the class labels to include based on self.type.

0 -> SINGULAR, 1 -> REGULAR, 2 -> INTERIOR. None => include all non-EXTERIOR.

◆ create()

None create ( self)
Create Three.js viewer input JSON file 1.json.

Args:
    output_dir: Directory where SBL exe output files are located.
    post_dir: Directory to store post-analysis outputs.