Scripts/Start_job.py
def merge_bedfiles(chromosomes, extension):
    """ The merge_bedfiles function combines all the bedfiles or BedGraph files into one large file.

    :param chromosomes: Int or Str specifying the chromosome.
    :param extension: Str representing the file extension.
    """
    with open(f"{args.output}/{args.name}.{extension}", 'w') as output:
        output.write('track name=Flags description="Flags regions of interest." db=hg19 gffTags=on itemRGB="On"\n')

    for chromosome in chromosomes:
        bedfile_text = get_bed_text(chromosome, extension)

        with open(f"{args.output}/{args.name}.{extension}", 'a') as output:
            output.write(bedfile_text)
 The merge_bedfiles function combines all the bedfiles or BedGraph files into one large file.

    :param chromosomes: Int or Str specifying the chromosome.
    :param extension: Str representing the file extension.
    
The merge_bedfiles function combines all the bedfiles or BedGraph files into one large file.
The merge_bedfiles function combines all the bedfiles or BedGraph files into one large file .
def merge_bedfiles(chromosomes, extension):
    with open(f"{args.output}/{args.name}.{extension}", 'w') as output:
        output.write('track name=Flags description="Flags regions of interest." db=hg19 gffTags=on itemRGB="On"\n')
    for chromosome in chromosomes:
        bedfile_text = get_bed_text(chromosome, extension)
        with open(f"{args.output}/{args.name}.{extension}", 'a') as output:
            output.write(bedfile_text)
def merge_bedfiles ( chromosomes , extension ) : with open ( f"{args.output}/{args.name}.{extension}" , 'w' ) as output : output . write ( 'track name=Flags description="Flags regions of interest." db=hg19 gffTags=on itemRGB="On"\n' ) for chromosome in chromosomes : bedfile_text = get_bed_text ( chromosome , extension ) with open ( f"{args.output}/{args.name}.{extension}" , 'a' ) as output : output . write ( bedfile_text )
The merge_bedfiles function combines all the bedfiles or BedGraph files into one large file.
The merge_bedfiles function combines all the bedfiles or BedGraph files into one large file .
""" The merge_bedfiles function combines all the bedfiles or BedGraph files into one large file.

    :param chromosomes: Int or Str specifying the chromosome.
    :param extension: Str representing the file extension.
    """
chromosomes
Int or Str specifying the chromosome.
Int or Str specifying the chromosome .
extension
Str representing the file extension.
Str representing the file extension .