run.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:GGR-cwl 作者: Duke-GCB 项目源码 文件源码
def main():
    parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter,
            description=textwrap.dedent('''
            CWL generator - Create GGR CWL workflows using templates
            --------------------------------------------------------
            '''))

    # Base script options
    parser.add_argument('-o', '--outdir', metavar='output_dir', dest='outdir', type=str,
                             help='Output directory where the files will be placed.')
    parser.add_argument('-c', '--config-yaml', dest='config_yaml', required=True,
                             help='Config file used while rendering the CWL file.')

    # Parse input
    args = parser.parse_args()

    if args.outdir and not os.path.isdir(args.outdir):
        os.mkdir(args.outdir)

    # Generate outputs
    render_cwl_from_yaml(args.config_yaml, args.outdir)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号