def related_domain_annotation(sample, domain, relatedness):
    """Create a string for the summary annotation of related samples"""
    if sample in relatedness:
        if relatedness[sample] == domain:
            rv = ":Y"
        else:
            rv = ":Y:%s" % relatedness[sample]
    else:
        rv = ""
    return rv