'--annot_stem', args.annot_stem, 'main', '--chrnum', '$LSB_JOBINDEX' ] outfilepath = \ args.annot_stem + '.random.%I.creation.log' bsub.submit( ['python', '-u', paths.code + 'munge/randomize_annot_signs.py'] + my_args, outfilepath, jobname='randomize[1-22]', debug=args.debug) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--annot_stem', type=str, required=True, help='path to annot file, not including chromosome number and extension. ' + \ 'For example: path/to/annot') main_parser, submit_parser = bsub.add_main_and_submit(parser, main, submit) main_parser.add_argument('--chrnum', type=int, required=True, help='chromosome to analyze') submit_parser.add_argument('-debug', action='store_true', default=False, help='do not actually submit the jobs') bsub.choose_parser_and_run(parser)
print('submitting', s.name) my_args = ['--exp-name', args.exp_name] + \ ['main', '--sim-name', s.name, '--beta-num', '$LSB_JOBINDEX'] outfilename = s.root_folder(create=True) + '.sim_sumstats.%I' bsub.submit(['python', '-u', __file__] + my_args, outfilename, # queue='medium', time_in_hours=40, queue='short', time_in_hours=12, jobname=s.name+'.simsumstats[1-{}]'.format(s.num_betas), debug=args.debug) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--exp-name', type=str, required=True, help='name of the experiment file containing simulations, without ext') main_parser, submit_parser = bsub.add_main_and_submit(parser, main, submit) main_parser.add_argument('--sim-name', type=str, required=True, help='name of the simulation to run inside the experiment json file') main_parser.add_argument('--beta-num', type=int, required=True, help='index of the beta to simulate. 1-indexed!') submit_parser.add_argument('-debug', action='store_true', default=False) bsub.choose_parser_and_run(parser)