find_approximate_string_matches

psi4.driver.find_approximate_string_matches(seq1, options, max_distance)[source]

Find list of approximate (within max_distance) matches to string seq1 among options. :rtype: List[str]

Parameters:
  • seq1 (str) – Target string to look for near matches to.

  • options (List[str]) – Alternatives among which to look for near matches to seq1.

  • max_distance (int) – Maximum Levenshtein distance from seq1 to return.

Return type:

List[str]