Scripts/CNV_vis.py
def write_logfile():
    """ The write logfile function writes a log.txt file in the output folder and writes all the parameters down."""
    current_path = os.getcwd()

    current_time = datetime.now().strftime("%H:%M:%S")
    current_day = date.today().strftime("%d/%m/%Y")

    text = f'Logfile created by: {current_path}\nScript finished at: {current_time} {current_day}\n{"-"*80}\n' \
           f'Parameters:\nBamfile: {args.bam}\nVCF file: {args.vcf}\nOutput_folder: {args.output}\n' \
           f'Capture region: {args.capture_region}\nHigh insert size threshold: {args.high_insert_size}'

    with open(args.output + '/log.txt', 'w') as logfile:
        logfile.write(text)
 The write logfile function writes a log.txt file in the output folder and writes all the parameters down.
The write logfile function writes a log.txt file in the output folder and writes all the parameters down.
The write logfile function writes a log . txt file in the output folder and writes all the parameters down .
def write_logfile():
    current_path = os.getcwd()
    current_time = datetime.now().strftime("%H:%M:%S")
    current_day = date.today().strftime("%d/%m/%Y")
    text = f'Logfile created by: {current_path}\nScript finished at: {current_time} {current_day}\n{"-"*80}\n' \
           f'Parameters:\nBamfile: {args.bam}\nVCF file: {args.vcf}\nOutput_folder: {args.output}\n' \
           f'Capture region: {args.capture_region}\nHigh insert size threshold: {args.high_insert_size}'
    with open(args.output + '/log.txt', 'w') as logfile:
        logfile.write(text)
def write_logfile ( ) : current_path = os . getcwd ( ) current_time = datetime . now ( ) . strftime ( "%H:%M:%S" ) current_day = date . today ( ) . strftime ( "%d/%m/%Y" ) text = f'Logfile created by: {current_path}\nScript finished at: {current_time} {current_day}\n{"-"*80}\n' f'Parameters:\nBamfile: {args.bam}\nVCF file: {args.vcf}\nOutput_folder: {args.output}\n' f'Capture region: {args.capture_region}\nHigh insert size threshold: {args.high_insert_size}' with open ( args . output + '/log.txt' , 'w' ) as logfile : logfile . write ( text )
The write logfile function writes a log.txt file in the output folder and writes all the parameters down.
The write logfile function writes a log . txt file in the output folder and writes all the parameters down .
""" The write logfile function writes a log.txt file in the output folder and writes all the parameters down."""