Scripts/softclip_graph.py
def update_softclipdata(region, softclipdata):
    """ The update_softclipdata function updates the softclipdata dictionary with new information.

    :param region: A region of a read defined by the cigar string.
    :param softclipdata: A dictionary with positions and the number of "normal" bases and softclip bases.
    :return sofclipdata: A dictionary with positions and the number of "normal" bases and softclip bases.
    """
    if region[2] == 'normal':
        index = 0
    else:
        index = 1

    for pos in range(region[0], region[1]):
        if pos in softclipdata:
            softclipdata[pos][index] += 1
        else:
            posdata = [0, 0]
            posdata[index] += 1
            softclipdata.update({pos: posdata})

    return softclipdata
 The update_softclipdata function updates the softclipdata dictionary with new information.

    :param region: A region of a read defined by the cigar string.
    :param softclipdata: A dictionary with positions and the number of "normal" bases and softclip bases.
    :return sofclipdata: A dictionary with positions and the number of "normal" bases and softclip bases.
    
The update_softclipdata function updates the softclipdata dictionary with new information.
The update_softclipdata function updates the softclipdata dictionary with new information .
def update_softclipdata(region, softclipdata):
    if region[2] == 'normal':
        index = 0
    else:
        index = 1
    for pos in range(region[0], region[1]):
        if pos in softclipdata:
            softclipdata[pos][index] += 1
        else:
            posdata = [0, 0]
            posdata[index] += 1
            softclipdata.update({pos: posdata})
    return softclipdata
def update_softclipdata ( region , softclipdata ) : if region [ 2 ] == 'normal' : index = 0 else : index = 1 for pos in range ( region [ 0 ] , region [ 1 ] ) : if pos in softclipdata : softclipdata [ pos ] [ index ] += 1 else : posdata = [ 0 , 0 ] posdata [ index ] += 1 softclipdata . update ( { pos : posdata } ) return softclipdata
The update_softclipdata function updates the softclipdata dictionary with new information.
The update_softclipdata function updates the softclipdata dictionary with new information .
""" The update_softclipdata function updates the softclipdata dictionary with new information.

    :param region: A region of a read defined by the cigar string.
    :param softclipdata: A dictionary with positions and the number of "normal" bases and softclip bases.
    :return sofclipdata: A dictionary with positions and the number of "normal" bases and softclip bases.
    """
A dictionary with positions and the number of "normal" bases and softclip bases.
A dictionary with positions and the number of " normal " bases and softclip bases .
sofclipdata
region
A region of a read defined by the cigar string.
A region of a read defined by the cigar string .
softclipdata
A dictionary with positions and the number of "normal" bases and softclip bases.
A dictionary with positions and the number of " normal " bases and softclip bases .