Scripts/softclip_graph.py
def write_bedgraph_file(heatmapdata):
    """ The write_bedgraph_file function receives the heatmapdata and writes a BedGraph file.

    :param heatmapdata: A 2d list containing the coordinates and the percentage of sofclipped bases.
    """
    with open(args.output + f'/{args.name}.BedGraph', 'w') as bedfile:
        bedfile.write('track type=bedGraph name=Softclip_graph description="Softclip graph" color=220,20,60 '
                      'graphType=bar alwaysZero=off\n')

    for datapoint in heatmapdata:
        with open(args.output + f'/{args.name}.BedGraph', 'a') as bedfile:
            bedfile.write(f"{datapoint[0]}\t{datapoint[1]}\t{datapoint[2]}\t{datapoint[3]}\n")
 The write_bedgraph_file function receives the heatmapdata and writes a BedGraph file.

    :param heatmapdata: A 2d list containing the coordinates and the percentage of sofclipped bases.
    
The write_bedgraph_file function receives the heatmapdata and writes a BedGraph file.
The write_bedgraph_file function receives the heatmapdata and writes a BedGraph file .
def write_bedgraph_file(heatmapdata):
    with open(args.output + f'/{args.name}.BedGraph', 'w') as bedfile:
        bedfile.write('track type=bedGraph name=Softclip_graph description="Softclip graph" color=220,20,60 '
                      'graphType=bar alwaysZero=off\n')
    for datapoint in heatmapdata:
        with open(args.output + f'/{args.name}.BedGraph', 'a') as bedfile:
            bedfile.write(f"{datapoint[0]}\t{datapoint[1]}\t{datapoint[2]}\t{datapoint[3]}\n")
def write_bedgraph_file ( heatmapdata ) : with open ( args . output + f'/{args.name}.BedGraph' , 'w' ) as bedfile : bedfile . write ( 'track type=bedGraph name=Softclip_graph description="Softclip graph" color=220,20,60 ' 'graphType=bar alwaysZero=off\n' ) for datapoint in heatmapdata : with open ( args . output + f'/{args.name}.BedGraph' , 'a' ) as bedfile : bedfile . write ( f"{datapoint[0]}\t{datapoint[1]}\t{datapoint[2]}\t{datapoint[3]}\n" )
The write_bedgraph_file function receives the heatmapdata and writes a BedGraph file.
The write_bedgraph_file function receives the heatmapdata and writes a BedGraph file .
""" The write_bedgraph_file function receives the heatmapdata and writes a BedGraph file.

    :param heatmapdata: A 2d list containing the coordinates and the percentage of sofclipped bases.
    """
heatmapdata
A 2d list containing the coordinates and the percentage of sofclipped bases.
A 2d list containing the coordinates and the percentage of sofclipped bases .