Scripts/softclip_graph.py
def remove_old(handle, read_start):
    """ The remove old function removes the basepairs that do not have sofclips to save memory.

    :param softclip_data: A dictionary with positions and the number of "normal" bases and softclip bases.
    :param read_start: An integer representing the place where the read start.
    :return sofclip_data: A dictionary with positions and the number of "normal" bases and softclip bases.
    """
    remove = []
    new_softclip_data = {}
    for position in handle:
        if position < (read_start-151):
            if handle[position][1] == 0:
                remove.append(position)
            else:
                new_softclip_data.update({position: handle[position]})
                remove.append(position)

        else:
            break

    for position in remove:
        handle.pop(position, None)

    return new_softclip_data, handle
 The remove old function removes the basepairs that do not have sofclips to save memory.

    :param softclip_data: A dictionary with positions and the number of "normal" bases and softclip bases.
    :param read_start: An integer representing the place where the read start.
    :return sofclip_data: A dictionary with positions and the number of "normal" bases and softclip bases.
    
The remove old function removes the basepairs that do not have sofclips to save memory.
The remove old function removes the basepairs that do not have sofclips to save memory .
def remove_old(handle, read_start):
    remove = []
    new_softclip_data = {}
    for position in handle:
        if position < (read_start-151):
            if handle[position][1] == 0:
                remove.append(position)
            else:
                new_softclip_data.update({position: handle[position]})
                remove.append(position)
        else:
            break
    for position in remove:
        handle.pop(position, None)
    return new_softclip_data, handle
def remove_old ( handle , read_start ) : remove = [ ] new_softclip_data = { } for position in handle : if position < ( read_start - 151 ) : if handle [ position ] [ 1 ] == 0 : remove . append ( position ) else : new_softclip_data . update ( { position : handle [ position ] } ) remove . append ( position ) else : break for position in remove : handle . pop ( position , None ) return new_softclip_data , handle
The remove old function removes the basepairs that do not have sofclips to save memory.
The remove old function removes the basepairs that do not have sofclips to save memory .
""" The remove old function removes the basepairs that do not have sofclips to save memory.

    :param softclip_data: A dictionary with positions and the number of "normal" bases and softclip bases.
    :param read_start: An integer representing the place where the read start.
    :return sofclip_data: 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 .
sofclip_data
handle
read_start
An integer representing the place where the read start.
An integer representing the place where the read start .
softclip_data
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 .