Scripts/CNV_vis.py
def isfacaway(read):
    """ The isfacaway function returns True if the reads in a pair are faced away from each other and false if they are
    not.

    :param read: Pysam object containing data of a read.
    :return bool: A bool telling if a read pair face away from each other.
    """
    if read.is_paired and not read.mate_is_unmapped:
        if read.is_read1:
            if read.is_reverse and not read.mate_is_reverse:
                return True
            else:
                return False

        else:
            if not read.is_reverse and read.mate_is_reverse:
                return True
            else:
                return False

    else:
        return False
 The isfacaway function returns True if the reads in a pair are faced away from each other and false if they are
    not.

    :param read: Pysam object containing data of a read.
    :return bool: A bool telling if a read pair face away from each other.
    
The isfacaway function returns True if the reads in a pair are faced away from each other and false if they are
not.
The isfacaway function returns True if the reads in a pair are faced away from each other and false if they are not .
def isfacaway(read):
    if read.is_paired and not read.mate_is_unmapped:
        if read.is_read1:
            if read.is_reverse and not read.mate_is_reverse:
                return True
            else:
                return False
        else:
            if not read.is_reverse and read.mate_is_reverse:
                return True
            else:
                return False
    else:
        return False
def isfacaway ( read ) : if read . is_paired and not read . mate_is_unmapped : if read . is_read1 : if read . is_reverse and not read . mate_is_reverse : return True else : return False else : if not read . is_reverse and read . mate_is_reverse : return True else : return False else : return False
The isfacaway function returns True if the reads in a pair are faced away from each other and false if they are
not.
The isfacaway function returns True if the reads in a pair are faced away from each other and false if they are not .
""" The isfacaway function returns True if the reads in a pair are faced away from each other and false if they are
    not.

    :param read: Pysam object containing data of a read.
    :return bool: A bool telling if a read pair face away from each other.
    """
A bool telling if a read pair face away from each other.
A bool telling if a read pair face away from each other .
bool
read
Pysam object containing data of a read.
Pysam object containing data of a read .