code: def avg_bp_from_range(self, bp):
          
  
          try:
              if '-' in bp:
                  maxlen = float(bp.split("-",1)[1])
                  minlen = float(bp.split("-",1)[0])
                  bp = ((maxlen - minlen)/2) + minlen
          except TypeError:
              pass
          return(int(bp))
docs: Helper function - FastQC often gives base pair ranges (eg. 10-15)
          which are not helpful when plotting. This returns the average from such
          ranges as an int, which is helpful. If not a range, just returns the int