tracts.driver_utils#
Functions
|
Compute which parameter columns should be shown in starting-parameter tables. |
|
Build the user-readable optimization subtitle for the active run phase. |
|
Normalize outputs from multi-initialization optimization runs. |
|
Print the optimization subtitle and starting-parameter table for a run. |
|
Print starting-parameter information before optimization runs begin. |
|
Print per-run optimization results and select the best run. |
Collapse repeated identical starting-parameter sets to a single repetition. |
|
|
Computes a function that takes in optimizer parameters, converts them to physical parameters using the model's parameter handler, and returns the violation score for those parameters. |
|
Computes a function that takes in optimizer parameters, converts them to physical parameters using the model's parameter handler, and returns the migration matrices for those parameters. |
|
Loads the driver file and validates that it contains all required parameters for the inference. |
|
Loads the demographic model based on the specifications in the driver file. |
|
Loads the population data based on the specifications in the driver file. |
|
Locates the file path for a given filename by searching in multiple locations. |
|
Creates output graphs to compare data and the theoretical tract length distribution inferred by the model. |
|
Parses a chromosome specification and returns a list of chromosome numbers. |
|
Parses the individual filenames based on the provided format and locates their paths. |
|
Produces starting parameters for optimization in physical units. |
|
Classes
|
Configuration for the inference process. |
|
Configuration for the samples used in the inference. |
|
Configuration for the starting parameters used in the optimization. |