multiplex wormhole

Explore Optimization Parameters

The optimization process relies on a simulated annealing algorithm which allows earlier iterations to accept increases in dimer load to overcome local optima. The probability of accepting increased dimer load is defined by a variety of parameters, which can be explored with this function.

See here for optimization process details included simulated annealing algorithm parameterization.

Usage

The plot_ASA_temps.py function is setup to accept two different sets of inputs: 1) Provided simulated annealing parameters, or 2) Provided datasets used to calculate simulated annealing parameters (the default used in optimize_multiplex.py). Inputs are shown for both options. Provided datasets are ignored if MAX_DIMER and MIN_DIMER are provided.

Command line syntax

# usage:
mw-plot-simannel [-h] -o OUTPATH [-f PRIMER_FASTA] [-d DIMER_SUMS]
                        [-t DIMER_TABLE] [-n NLOCI] [-k KEEPLIST] [-e SEED]
                        [-m MIN_DIMERS] [-a MAX_DIMERS] [-r DECAY_RATE]
                        [-i TEMP_INIT] [-j TEMP_FINAL] [-b BURNIN]
                        [-p PROB_ADJ] [-g]

# example with user-defined parameters:
mw-plot-simanneal -o OUTPATH [-m MIN_DIMERS] [-a MAX_DIMERS] [-r DECAY_RATE] [-i TEMP_INIT] [-f TEMP_FINAL] [-p PROB_ADJ]

# example for calculating and visualizing parameters from data:
mw-plot-simanneal -o OUTPATH [-f PRIMER_FASTA] [-d DIMER_SUMS] [-t DIMER_TABLE] [-n NLOCI] [-k KEEPLIST] [-b BURNIN] [-g] 

# example using a previous optimization run to calculate parameters:
mw-plot-simanneal -o OUTPATH [-f PRIMER_FASTA] [-d DIMER_SUMS] [-t DIMER_TABLE] [-n NLOCI] [-k KEEPLIST]

Python syntax

import multiplex_wormhole as mw
mw.plotASAtemps(OUTPATH, PRIMER_FASTA, DIMER_SUMS, DIMER_TABLE, N_LOCI, KEEPLIST=None, ...)

Arguments

Outputs

Probabilities reflect default parameters, although the initial (higher) temperature will vary depending on the dataset.

OUTPATH_TemperatureSchedule.png

Default_TemperatureSchedule

OUTPATH_DimerAcceptanceByTemp.png

Default_DimerAcceptanceByTemperature

OUTPATH_DimerAcceptanceByIteration.png

Default_DimerAcceptanceByIteration

Previous Next