def _check_args(args):
logger.info("<STR_LIT>")<EOL>args.dir_out = args.out<EOL>args.samplename = "<STR_LIT>"<EOL>global decision_cluster<EOL>global similar<EOL>if not os.path.isdir(args.out):<EOL><INDENT>logger.warning("<STR_LIT>")<EOL>os.mkdirs(args.out)<EOL><DEDENT>if args.bed and args.gtf:<EOL><INDENT>logger.error("<STR_LIT>")<EOL>raise SyntaxError<EOL><DEDENT>if args.debug:<EOL><INDENT>logger.info("<STR_LIT>")<EOL><DEDENT>if args.bed:<EOL><INDENT>args.list_files = args.bed<EOL>args.type_ann = "<STR_LIT>"<EOL><DEDENT>if args.gtf:<EOL><INDENT>args.list_files = args.gtf<EOL>args.type_ann = "<STR_LIT>"<EOL><DEDENT>logger.info("<STR_LIT>" % args.dir_out)<EOL>if not all([file_exists(args.ffile), file_exists(args.afile)]):<EOL><INDENT>logger.error("<STR_LIT>")<EOL>raise IOError("<STR_LIT>")<EOL><DEDENT>if hasattr(args, '<STR_LIT>'):<EOL><INDENT>beds = args.list_files.split("<STR_LIT:U+002C>")<EOL>for filebed in beds:<EOL><INDENT>if not file_exists(filebed):<EOL><INDENT>logger.error("<STR_LIT>".format(filebed))<EOL>raise IOError("<STR_LIT>" % filebed)<EOL><DEDENT><DEDENT><DEDENT>param.decision_cluster = args.method<EOL>if args.similar:<EOL><INDENT>param.similar = float(args.similar)<EOL><DEDENT>if args.min_seqs:<EOL><INDENT>param.min_seqs = int(args.min_seqs)<EOL><DEDENT>return args<EOL>
check arguments before starting analysis.