docs: def biopython_protein_scale(inseq, scale, custom_scale_dict=None, window=7):
      """Use Biopython to calculate properties using a sliding window over a sequence given a specific scale to use."""
  
      if scale == 'kd_hydrophobicity':
          scale_dict = kd_hydrophobicity_one
      elif scale == 'bulkiness':
          scale_dict = bulkiness_one
      elif scale == 'custom':
          scale_dict = custom_scale_dict
      else:
          raise ValueError('Scale not available')
  
      inseq = ssbio.protein.sequence.utils.cast_to_str(inseq)
      analysed_seq = ProteinAnalysis(inseq)
      result = analysed_seq.protein_scale(param_dict=scale_dict, window=window)
  
      # Correct list length by prepending and appending "inf" (result needs to be same length as sequence)
      for i in range(window // 2):
          result.insert(0, float("Inf"))
          result.append(float("Inf"))
  
      return result