def get_partners(bam, bams):
    """
        Returns the partner bam files having the same ID
    """
    partners = []
    for bam_iter in bams:
        if bam in bam_iter:
            partners.append(bam_iter)
    return partners