def is_left_clip(self, cigar):
        '''
        whether the left side of the read (w/ respect to reference) is clipped.
        Clipping side is determined as the side with the longest clip.
        Adjacent clipping operations are not considered
        '''
        left_tuple = cigar[0]
        right_tuple = cigar[-1]
        left_clipped = self.is_clip_op(left_tuple[0])
        right_clipped = self.is_clip_op(right_tuple[0])

        return (left_clipped and not right_clipped) or (left_clipped and right_clipped and left_tuple[1] > right_tuple[1])
def is_left_clip ( self , cigar ) : left_tuple = cigar [ 0 ] right_tuple = cigar [ - 1 ] left_clipped = self . is_clip_op ( left_tuple [ 0 ] ) right_clipped = self . is_clip_op ( right_tuple [ 0 ] ) return ( left_clipped and not right_clipped ) or ( left_clipped and right_clipped and left_tuple [ 1 ] > right_tuple [ 1 ] )
whether the left side of the read (w/ respect to reference) is clipped.
        Clipping side is determined as the side with the longest clip.
        Adjacent clipping operations are not considered