Scripts/CNV_vis.py
def issameorientation(read):
    """ The issameorientation function returns a bool returning true if a pair of reads have the same orientation and
    false if they have an oposite orientation.

    :param read: Pysam object containing data of a read.
    :return bool: A boolean returning True if the reads of a pair have the same orientation.
    """
    if read.is_paired and not read.mate_is_unmapped:
        if read.is_reverse == read.mate_is_reverse:
            return True

        else:
            return False
 The issameorientation function returns a bool returning true if a pair of reads have the same orientation and
    false if they have an oposite orientation.

    :param read: Pysam object containing data of a read.
    :return bool: A boolean returning True if the reads of a pair have the same orientation.
    
The issameorientation function returns a bool returning true if a pair of reads have the same orientation and
false if they have an oposite orientation.
The issameorientation function returns a bool returning true if a pair of reads have the same orientation and false if they have an oposite orientation .
def issameorientation(read):
    if read.is_paired and not read.mate_is_unmapped:
        if read.is_reverse == read.mate_is_reverse:
            return True
        else:
            return False
def issameorientation ( read ) : if read . is_paired and not read . mate_is_unmapped : if read . is_reverse == read . mate_is_reverse : return True else : return False
The issameorientation function returns a bool returning true if a pair of reads have the same orientation and
false if they have an oposite orientation.
The issameorientation function returns a bool returning true if a pair of reads have the same orientation and false if they have an oposite orientation .
""" The issameorientation function returns a bool returning true if a pair of reads have the same orientation and
    false if they have an oposite orientation.

    :param read: Pysam object containing data of a read.
    :return bool: A boolean returning True if the reads of a pair have the same orientation.
    """
A boolean returning True if the reads of a pair have the same orientation.
A boolean returning True if the reads of a pair have the same orientation .
bool
read
Pysam object containing data of a read.
Pysam object containing data of a read .