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.