def METHOD_NAME(args):
    profile_db = dbops.ProfileSuperclass(args)
    samples = profile_db.p_meta['samples']
    if args.output_dir:
        filesnpaths.gen_output_directory(args.output_dir)
    else:
        args.output_dir = os.path.dirname(os.path.abspath(args.profile_db))
    if not args.output_file_prefix:
        args.output_file_prefix = profile_db.p_meta['sample_id']
    run.info('Output directory', args.output_dir)
    run.info('Filename prefix', args.output_file_prefix)
    run.info('Splits mode', args.splits_mode)
    run.info('Report Q2Q3 coverages', args.use_Q2Q3_coverages)
    run.info('Report contigs and not splits', args.report_contigs)
    coverages_output = os.path.join(args.output_dir, args.output_file_prefix + '-COVs.txt')
    sequences_output = os.path.join(args.output_dir, args.output_file_prefix + ('-CONTIGS.fa' if args.report_contigs else '-SPLITS.fa'))
    progress.new('Bleep bloop')
    progress.update('Gathering coverage data...')
    coverages = profile_db.get_split_coverages_dict(use_Q2Q3_coverages=args.use_Q2Q3_coverages, splits_mode=args.splits_mode, report_contigs=args.report_contigs)
    utils.store_dict_as_TAB_delimited_file(coverages, coverages_output, ['contig'] + sorted(list(samples)))
    progress.update('Dealing with sequences...')
    progress.update('Gathering coverage data')
    utils.export_sequences_from_contigs_db(args.contigs_db, sequences_output, seq_names_to_export=sorted(list(coverages.keys())), splits_mode=(not args.report_contigs))
    progress.end()
    run.info('Coverages file', coverages_output, mc="green", nl_before=1)
    run.info('Sequences file', sequences_output, mc="green")