def mate_same(aln):
    """ Check if mate has same start position

    Args:
        aln (:obj:`pysam.AlignedSegment`): An aligned segment

    Returns:
        bool: True if alignment's mate has same start position, False otherwise

    """
    return (aln.next_reference_id == aln.reference_id and aln.
        next_reference_start == aln.reference_start)
