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

Protected Member Functions

Tuple[bool, str] _prepare_ngl_visualization (self)

Detailed Description

Locate spectraldom outputs, copy the plot, and emit GUI-compatible text.

Responsibilities
----------------
- Discover the quality score plot PDF and copy it to ``outputPDF1.pdf``.
- Parse the log to extract local maxima (k-values) into ``local_maxima.txt``.
- Optionally prepare viewer assets for VMD, PyMOL, or NGL.

Attributes
----------
output_dir : Path
    Root directory to search for spectraldom outputs.
post_dir : Path
    Destination directory for generated artifacts.
pdf_path : Path
    Path to ``outputPDF1.pdf``.
maxima_path : Path
    Path to ``local_maxima.txt``.
titles_path : Path
    Path to ``pdftitles.txt``.
k_value_cli : int | None
    Optional k-value provided by CLI that overrides automatic selection.
viewer : str | None
    Optional viewer type: ``vmd``, ``pymol``, or ``ngl``.
selected_k : int | None
    Final chosen k-value after parsing the log and applying the CLI override.

Member Function Documentation

◆ _prepare_ngl_visualization()

Tuple[bool, str] _prepare_ngl_visualization ( self)
protected
Prepare newest-viewer 1.json from the selected-k VMD script.

Files written: only ``1.json`` (no other json files, no graphics object).