def get_wgs_set_accession(prefix, version):
    """
    Generates ENA WGS accession using the WGS accession pattern
    (4 letter prefix) and 2-digit build version. The WGS accession is
    generated by appending prefix and version with a postfix of 6-zeros.
    For more information please visit ENA service-news: http://goo.gl/LnIyQ3

    prefix: A 4-char string representing the ENA WGS accession
    version: A 2-digit representing the WGS build version
    """

    postfix = "000000"
    wgs_accession = None

    if int(version) % 10 != 0:
        wgs_accession = prefix + '0' + version + postfix
    else:
        wgs_accession = prefix + version + postfix

    return wgs_accession