# Set primer size

Set primer size

    primerSize(settings, min = NULL, optimal = NULL, max = NULL)

## Arguments

settings | a settings list created by `p3Settings`
min | minimal length (PRIMER_MIN_SIZE)
optimal | optimal length (PRIMER_OPT_SIZE)
max | maximal length (PRIMER_MAX_SIZE)

## Value

a settings list with updated values

## Examples

    p3Settings() %>%
      primerSize(min = 18, optimal = 20, max = 22) %>%
      str()#> List of 115
    #>  $ P3_FILE_TYPE                          : chr "settings"
    #>  $ P3_FILE_ID                            : chr "Default settings of primer3 version 1.1.4"
    #>  $ PRIMER_TASK                           : chr "pick_detection_primers"
    #>  $ PRIMER_PICK_LEFT_PRIMER               : chr "1"
    #>  $ PRIMER_PICK_INTERNAL_OLIGO            : chr "0"
    #>  $ PRIMER_PICK_RIGHT_PRIMER              : chr "1"
    #>  $ PRIMER_NUM_RETURN                     : chr "5"
    #>  $ PRIMER_MIN_5_PRIME_OVERLAP_OF_JUNCTION: chr "5"
    #>  $ PRIMER_PRODUCT_SIZE_RANGE             : chr "100-300"
    #>  $ PRIMER_PRODUCT_OPT_SIZE               : chr "0"
    #>  $ PRIMER_PAIR_WT_PRODUCT_SIZE_LT        : chr "0.0"
    #>  $ PRIMER_PAIR_WT_PRODUCT_SIZE_GT        : chr "0.0"
    #>  $ PRIMER_MIN_SIZE                       : num 18
    #>  $ PRIMER_INTERNAL_MIN_SIZE              : chr "18"
    #>  $ PRIMER_OPT_SIZE                       : num 20
    #>  $ PRIMER_INTERNAL_OPT_SIZE              : chr "20"
    #>  $ PRIMER_MAX_SIZE                       : num 22
    #>  $ PRIMER_INTERNAL_MAX_SIZE              : chr "27"
    #>  $ PRIMER_WT_SIZE_LT                     : chr "1.0"
    #>  $ PRIMER_INTERNAL_WT_SIZE_LT            : chr "1.0"
    #>  $ PRIMER_WT_SIZE_GT                     : chr "1.0"
    #>  $ PRIMER_INTERNAL_WT_SIZE_GT            : chr "1.0"
    #>  $ PRIMER_MIN_GC                         : chr "20.0"
    #>  $ PRIMER_INTERNAL_MIN_GC                : chr "20.0"
    #>  $ PRIMER_OPT_GC_PERCENT                 : chr "50.0"
    #>  $ PRIMER_MAX_GC                         : chr "80.0"
    #>  $ PRIMER_INTERNAL_MAX_GC                : chr "80.0"
    #>  $ PRIMER_WT_GC_PERCENT_LT               : chr "0.0"
    #>  $ PRIMER_INTERNAL_WT_GC_PERCENT_LT      : chr "0.0"
    #>  $ PRIMER_WT_GC_PERCENT_GT               : chr "0.0"
    #>  $ PRIMER_INTERNAL_WT_GC_PERCENT_GT      : chr "0.0"
    #>  $ PRIMER_GC_CLAMP                       : chr "0"
    #>  $ PRIMER_MAX_END_GC                     : chr "5"
    #>  $ PRIMER_MIN_TM                         : chr "57.0"
    #>  $ PRIMER_INTERNAL_MIN_TM                : chr "57.0"
    #>  $ PRIMER_OPT_TM                         : chr "60.0"
    #>  $ PRIMER_INTERNAL_OPT_TM                : chr "60.0"
    #>  $ PRIMER_MAX_TM                         : chr "63.0"
    #>  $ PRIMER_INTERNAL_MAX_TM                : chr "63.0"
    #>  $ PRIMER_PAIR_MAX_DIFF_TM               : chr "100.0"
    #>  $ PRIMER_WT_TM_LT                       : chr "1.0"
    #>  $ PRIMER_INTERNAL_WT_TM_LT              : chr "1.0"
    #>  $ PRIMER_WT_TM_GT                       : chr "1.0"
    #>  $ PRIMER_INTERNAL_WT_TM_GT              : chr "1.0"
    #>  $ PRIMER_PAIR_WT_DIFF_TM                : chr "0.0"
    #>  $ PRIMER_PRODUCT_MIN_TM                 : chr "-1000000.0"
    #>  $ PRIMER_PRODUCT_OPT_TM                 : chr "0.0"
    #>  $ PRIMER_PRODUCT_MAX_TM                 : chr "1000000.0"
    #>  $ PRIMER_PAIR_WT_PRODUCT_TM_LT          : chr "0.0"
    #>  $ PRIMER_PAIR_WT_PRODUCT_TM_GT          : chr "0.0"
    #>  $ PRIMER_TM_FORMULA                     : chr "0"
    #>  $ PRIMER_SALT_MONOVALENT                : chr "50.0"
    #>  $ PRIMER_INTERNAL_SALT_MONOVALENT       : chr "50.0"
    #>  $ PRIMER_SALT_DIVALENT                  : chr "0.0"
    #>  $ PRIMER_INTERNAL_SALT_DIVALENT         : chr "0.0"
    #>  $ PRIMER_DNTP_CONC                      : chr "0.0"
    #>  $ PRIMER_INTERNAL_DNTP_CONC             : chr "0.0"
    #>  $ PRIMER_SALT_CORRECTIONS               : chr "0"
    #>  $ PRIMER_DNA_CONC                       : chr "50.0"
    #>  $ PRIMER_INTERNAL_DNA_CONC              : chr "50.0"
    #>  $ PRIMER_MAX_SELF_ANY                   : chr "8.00"
    #>  $ PRIMER_INTERNAL_MAX_SELF_ANY          : chr "12.00"
    #>  $ PRIMER_PAIR_MAX_COMPL_ANY             : chr "8.00"
    #>  $ PRIMER_WT_SELF_ANY                    : chr "0.0"
    #>  $ PRIMER_INTERNAL_WT_SELF_ANY           : chr "0.0"
    #>  $ PRIMER_PAIR_WT_COMPL_ANY              : chr "0.0"
    #>  $ PRIMER_MAX_SELF_END                   : chr "3.00"
    #>  $ PRIMER_INTERNAL_MAX_SELF_END          : chr "12.00"
    #>  $ PRIMER_PAIR_MAX_COMPL_END             : chr "3.00"
    #>  $ PRIMER_WT_SELF_END                    : chr "0.0"
    #>  $ PRIMER_INTERNAL_WT_SELF_END           : chr "0.0"
    #>  $ PRIMER_PAIR_WT_COMPL_END              : chr "0.0"
    #>  $ PRIMER_MAX_END_STABILITY              : chr "100.0"
    #>  $ PRIMER_WT_END_STABILITY               : chr "0.0"
    #>  $ PRIMER_MAX_NS_ACCEPTED                : chr "0"
    #>  $ PRIMER_INTERNAL_MAX_NS_ACCEPTED       : chr "0"
    #>  $ PRIMER_WT_NUM_NS                      : chr "0.0"
    #>  $ PRIMER_INTERNAL_WT_NUM_NS             : chr "0.0"
    #>  $ PRIMER_MAX_POLY_X                     : chr "5"
    #>  $ PRIMER_INTERNAL_MAX_POLY_X            : chr "5"
    #>  $ PRIMER_MIN_THREE_PRIME_DISTANCE       : chr "-1"
    #>  $ PRIMER_PICK_ANYWAY                    : chr "0"
    #>  $ PRIMER_LOWERCASE_MASKING              : chr "0"
    #>  $ PRIMER_EXPLAIN_FLAG                   : chr "0"
    #>  $ PRIMER_LIBERAL_BASE                   : chr "0"
    #>  $ PRIMER_FIRST_BASE_INDEX               : chr "0"
    #>  $ PRIMER_MAX_TEMPLATE_MISPRIMING        : chr "-1.00"
    #>  $ PRIMER_PAIR_MAX_TEMPLATE_MISPRIMING   : chr "-1.00"
    #>  $ PRIMER_WT_TEMPLATE_MISPRIMING         : chr "0.0"
    #>  $ PRIMER_PAIR_WT_TEMPLATE_MISPRIMING    : chr "0.0"
    #>  $ PRIMER_LIB_AMBIGUITY_CODES_CONSENSUS  : chr "1"
    #>  $ PRIMER_MAX_LIBRARY_MISPRIMING         : chr "12.00"
    #>  $ PRIMER_INTERNAL_MAX_LIBRARY_MISHYB    : chr "12.00"
    #>  $ PRIMER_PAIR_MAX_LIBRARY_MISPRIMING    : chr "24.00"
    #>  $ PRIMER_WT_LIBRARY_MISPRIMING          : chr "0.0"
    #>  $ PRIMER_INTERNAL_WT_LIBRARY_MISHYB     : chr "0.0"
    #>  $ PRIMER_PAIR_WT_LIBRARY_MISPRIMING     : chr "0.0"
    #>  $ PRIMER_MIN_QUALITY                    : chr "0"
    #>  $ PRIMER_INTERNAL_MIN_QUALITY           : chr "0"
    #>   [list output truncated]