Biologics Formulation Series Generator

The occupancy analysis (occupancy_xls.py) in the final steps of the SILCS-Biologics workflow require an input file (expt_data.csv) defining the combination and concentrations of excipients in a given set of formulations to be analyzed. If the user wishes to analyze a range of formulations with varying excipients and concentrations, SilcsBio provides the utility to generate an input file that systematically varyies the excipients and concentration of each formulation.

The following command will generate the input file for occupancy_xls.py:

Use molecule names matching the collected Hotspots inventory. Do not add --advanced_help to the generation command: it prints help and exits.

python $SILCSBIODIR/utils/python/excipients/create_expt_data.py \
     --in_file <IN_FILE> --n_excip <N_EXCIP> --out_file <OUT_FILE>

Required input:

  • Name of input file specifying excipients

    --in_file <IN_FILE>
    

    Pass --in_file specs.csv to use a file named specs.csv. Below is an example of the contents of specs.csv:

    Molecule,Type
    arginine,excipient
    sucrose,excipient
    alanine,excipient
    succinate,buffer
    histidine,buffer
    

Optional parameters:

  • Maximum number of excipients in a single formulation

    --n_excip <N_EXCIP>
    

    If --n_excip is not specified, then the maximum number of excipients in a given formulation will be set to 1. Values greater than 4 are not currently supported.

  • Output file to be used in occupancy calculations

    --out_file <OUT_FILE>
    

    If --out_file is not specified, then the output file will be named expt_data.csv. This file can be directly used as input in occupancy_xls.py for formulation analysis.

Advanced parameters:

  • Show all advanced options.

    --advanced_help
    
  • Concentration of excipients to be analyzed in mM:

    --excipient_conc <EXCIPIENT_CONC>
    

    By default, the array of excipient concentrations is [0, 10, 25, 50, 100, 150, 200, 250, 500].

  • Concentration of buffers to be analyzed in mM:

    --buffer_conc <BUFFER_CONC>
    

    By default, the array of buffer concentrations is [20]. Note that by default, the buffer concentration will only be evaluated at 20 mM.

  • Concentration of other molecules to be analyzed in mM:

    --other_conc <OTHER_CONC>
    

    By default, the array of buffer concentrations is [0.01]. Note that by default, the buffer concentration will only be evaluated at 0.01 mM.

Input/output contract

See CLI Inputs, Outputs, and Workflow Handoffs. Supply --in_file explicitly: the parser requires it even though its help mentions specs.csv. The input header is Molecule,Type; supported type values are excipient, buffer, and other. Molecule names must match the Hotspots/occupancy molecule inventory. --n_excip defaults to 1; keep it within the supported maximum of 4.

The generated --out_file (default expt_data.csv) is a formulation specification for occupancy analysis, not a prediction or new experimental measurement. Columns include Unique_Name, Solution_Name, Buffer, Buffer_Concentration, N_excipient, molecule/concentration pairs Excipient1 through Excipient5, and Expt1,Expt2,Note. Concentrations are in mM and unused fields can contain /. Check the generated formulations and molecule identities before passing the CSV to occupancy_xls.py; preserve identifiers when adding experimental data.

--advanced_help prints help and exits instead of generating the file. Use the generation command without that flag. Concentration overrides in this release should be validated carefully: the interface does not provide a general JSON/list parser for the displayed default arrays.