Scripts/CNV_vis.py
def isvalidread(read):
    """ Function that returns True if read is valid to be used for the high insert size calculation.

    :param read: Pysam object containing data of a read.
    :return boool: A boolean returning true if read is valid.
    """
    if read.is_paired and not read.is_unmapped and not read.mate_is_unmapped and not read.is_duplicate:
        return True
    else:
        return False
 Function that returns True if read is valid to be used for the high insert size calculation.

    :param read: Pysam object containing data of a read.
    :return boool: A boolean returning true if read is valid.
    
Function that returns True if read is valid to be used for the high insert size calculation.
Function that returns True if read is valid to be used for the high insert size calculation .
def isvalidread(read):
    if read.is_paired and not read.is_unmapped and not read.mate_is_unmapped and not read.is_duplicate:
        return True
    else:
        return False
def isvalidread ( read ) : if read . is_paired and not read . is_unmapped and not read . mate_is_unmapped and not read . is_duplicate : return True else : return False
Function that returns True if read is valid to be used for the high insert size calculation.
Function that returns True if read is valid to be used for the high insert size calculation .
""" Function that returns True if read is valid to be used for the high insert size calculation.

    :param read: Pysam object containing data of a read.
    :return boool: A boolean returning true if read is valid.
    """
A boolean returning true if read is valid.
A boolean returning true if read is valid .
boool
read
Pysam object containing data of a read.
Pysam object containing data of a read .