original_docstring: 
      Function will calculate annealing temperature (Ta) based on polymerase.
      
docstring: Function will calculate annealing temperature (Ta) based on polymerase.
docstring_tokens: Function will calculate annealing temperature ( Ta ) based on polymerase .
code: def calculate_Ta(primer_1, primer_2, pol_arg):
      """
      Function will calculate annealing temperature (Ta) based on polymerase.
      """
  
      if pol_arg in ['SuperFi', 'Phusion']:
          Ta = min(primer_1.Tm_All97(), primer_2.Tm_All97()) if ((min(len(primer_1.seq), len(primer_2.seq)) < 21) and (min(primer_1.Tm_All97(), primer_2.Tm_All97()) < 72)) else min(min(primer_1.Tm_All97(), primer_2.Tm_All97()), 72)
      
      elif pol_arg in ['DreamTaq']:
          Ta = min((max(primer_1.Tm_Taq(), primer_2.Tm_Taq())), 72) if (min(primer_1.Tm_Taq(), primer_2.Tm_Taq()) < 72) else 72
  
      # notes to output in case of errors, maybe?
      # --------------------------------------------------
      note = ''
  
      if abs(calculate_Tm(primer_1, pol_arg) - calculate_Tm(primer_2, pol_arg)) >= 5:
          note += "Tm difference of more than 5C or greater is not recommended. "
      if (Ta < 45):
          note += "Annealing temperature lower than 45C is not recommended. "
      if (len(primer_1.seq) < 7) or (len(primer_2.seq) < 7):
          note += "Both primers need to be longer than 7 nt. "
      if ((calculate_Tm(primer_1, pol_arg) > 69) and (calculate_Tm(primer_1, pol_arg) < 72)) and ((calculate_Tm(primer_2, pol_arg) > 69) and (calculate_Tm(primer_2, pol_arg) < 72)):
          note += "A 2-step protocol (combined annealing/extension) is recommended when primer Tm values are higher than 69C, using 72C for annealing step. "
      if (Ta >= 72):
          note += "Annealing temperature should not exceed 72C. "
      return Ta, note
code_tokens: def calculate_Ta ( primer_1 , primer_2 , pol_arg ) : if pol_arg in [ 'SuperFi' , 'Phusion' ] : Ta = min ( primer_1 . Tm_All97 ( ) , primer_2 . Tm_All97 ( ) ) if ( ( min ( len ( primer_1 . seq ) , len ( primer_2 . seq ) ) < 21 ) and ( min ( primer_1 . Tm_All97 ( ) , primer_2 . Tm_All97 ( ) ) < 72 ) ) else min ( min ( primer_1 . Tm_All97 ( ) , primer_2 . Tm_All97 ( ) ) , 72 ) elif pol_arg in [ 'DreamTaq' ] : Ta = min ( ( max ( primer_1 . Tm_Taq ( ) , primer_2 . Tm_Taq ( ) ) ) , 72 ) if ( min ( primer_1 . Tm_Taq ( ) , primer_2 . Tm_Taq ( ) ) < 72 ) else 72 note = '' if abs ( calculate_Tm ( primer_1 , pol_arg ) - calculate_Tm ( primer_2 , pol_arg ) ) >= 5 : note += "Tm difference of more than 5C or greater is not recommended. " if ( Ta < 45 ) : note += "Annealing temperature lower than 45C is not recommended. " if ( len ( primer_1 . seq ) < 7 ) or ( len ( primer_2 . seq ) < 7 ) : note += "Both primers need to be longer than 7 nt. " if ( ( calculate_Tm ( primer_1 , pol_arg ) > 69 ) and ( calculate_Tm ( primer_1 , pol_arg ) < 72 ) ) and ( ( calculate_Tm ( primer_2 , pol_arg ) > 69 ) and ( calculate_Tm ( primer_2 , pol_arg ) < 72 ) ) : note += "A 2-step protocol (combined annealing/extension) is recommended when primer Tm values are higher than 69C, using 72C for annealing step. " if ( Ta >= 72 ) : note += "Annealing temperature should not exceed 72C. " return Ta , note
short_docstring: Function will calculate annealing temperature (Ta) based on polymerase.
short_docstring_tokens: Function will calculate annealing temperature ( Ta ) based on polymerase .
comment: """
      Function will calculate annealing temperature (Ta) based on polymerase.
      """$SEP$# notes to output in case of errors, maybe?
  $SEP$# --------------------------------------------------
  