code: def pssm_array2pwm_array(arr, background_probs=DEFAULT_BASE_BACKGROUND):
      
      b = background_probs2array(background_probs)
      b = b.reshape([1, 4, 1])
      return (np.exp(arr) * b).astype(arr.dtype)
docs: Convert pssm array to pwm array