Biologics Report and Formulation Analysis ========================================= These CLI analyses consume completed SILCS-Biologics results. They do not run new SILCS simulations. See :ref:`biologics_cli_artifacts`, :doc:`formulation_generator`, and :doc:`../cli-conventions`. The workflow prepares analysis helpers in ``4_report./``; keep that workspace with its data and use a copy when trying different analysis settings. .. list-table:: Analysis producer-to-consumer contracts :header-rows: 1 :widths: 28 34 38 * - Helper - Inputs - Outputs and validation * - ``report.py`` - Repeatable ``--hotspots_dir`` for collected domain results, ``--ligdir``, and matching ``--ppi_cluster_pdb`` where used - Rebuilds ``report.db`` in the working directory. Archive an existing database before invoking the generator. This database feeds downstream plots; it is not a formulation-input CSV. * - ``report_xls.py`` - Hotspots directories, ligand directory, PPI site structure, and required ``--prgfe_json`` from PPI collection - ``report_.xlsx`` (``type=all`` by default), with ranking, excipient LGFE, RAA, and LE worksheets. * - ``occupancy_xls.py`` - Collected Hotspots, PPI site structure, ligand directory, and ``--csv_file`` formulation specification with stable ``Unique_Name`` identifiers - Default ``occupancy_output.xlsx`` and ``occupancy_output.csv``; override with ``--output_xlsx``/``--output_csv``. Check formulation count and molecule matches before interpreting site-count rankings. * - ``site_selection_occupancy_xls.py`` - Required ``--hotspots_dir``, ``--ppi_cluster_pdb``, ``--ligdir``, ``--csv_file``; selection options for center/radius, chains, residue names, and residue IDs - ``occupancy_.xlsx`` for the selected region. Selection coordinates and residue identity must match the input domain/PPI frame. * - ``plotting_biologics_database.py`` - ``report.db`` in the working directory; excipient names and cutoffs - Cumulative binding-site PNG plots and optional rank-order text (``--include_txt true``). Use ``--output_plot`` for an explicit PNG name; numerical cutoffs otherwise appear in generated filenames. * - ``plotting_biologics_rank_order_with_data.py`` - Matching ``report.db`` and ``expt_data.csv`` beside the analysis helper, with molecule identities shared by both datasets - Distribution/experimental-comparison plots; ``--output_dist_plot`` and ``--expt_plot`` control names. Experimental ``Expt1`` is supplied data, not a model output. The report database has ``hotspot`` coordinates (``id,x,y,z``) and ``excipient`` records (including ``hotspot_id,name,lgfe,le,pe,filename``). Join on the stored site identifier, not row order. Preserve structures referenced by ``filename`` when copying the database. Occupancy CSV columns include the formulation label under ``Excipient`` and binding-site counts filtered by LGFE, PPI preference, occupancy, and relative occupancy. Several column labels embed the actual numerical cutoffs. The CSV is a summary, not a byte-for-byte export of every workbook sheet; read its header rather than assigning a fixed positional schema. All concentration inputs are in mM. LGFE cutoffs are in kcal/mol; PPI preference, occupancy, and relative occupancy thresholds are dimensionless. Site counts are counts, not energies or measured aggregation rates. Default plotting filters are ``--lgfe_cutoff -3``, ``--pe_cutoff 0.03``, and ``--le_cutoff 0``. Both plotting helpers use ``--excipients`` with a space-separated name list; ``all`` requests the supported full inventory. Running without options prints help; ``--default`` requests a default-settings plot. ``--save_plot true`` and ``--visualization false`` save plots without a display window by default. For example, from a completed, copied report workspace: :: python plotting_biologics_database.py --excipients arginine glycine \ --lgfe_cutoff -3 --pe_cutoff 0.03 --output_plot arginine_glycine This example requests a plot from existing data; it does not create missing Hotspots or experimental results. Review missing-molecule diagnostics rather than treating missing records as zero binding.