@staticmethod
def p5_prefix_length(barcode, spacer, overhang):
    """Compute the total length of a p5 prefix from the given fragments.

        Arguments:
            barcode (str or bytes): barcode sequence
            spacer (str or bytes): spacer sequence
            overhang (str or bytes): overhang sequence

        Returns:
            int: Length of the p5 prefix.
        """
    return len(barcode) + len(spacer) + len(overhang)
