Ejemplo n.º 1
0
def create_descriptor(args):
    # pylint: disable=unsubscriptable-object
    app = SnakeBidsApp(args.app_dir.resolve())
    add_dynamic_args(app.parser, app.config["parse_args"],
                     app.config["pybids_inputs"])
    app.create_descriptor(args.out_path)
    print(f"Boutiques descriptor created at {args.out_path}")
Ejemplo n.º 2
0
def get_parser():
    """Exposes parser for sphinx doc generation, cwd is the docs dir"""
    app = SnakeBidsApp('../{{cookiecutter.project_slug}}',
                       skip_parse_args=True)
    return app.parser
Ejemplo n.º 3
0
def main():
    """Console script for {{cookiecutter.project_slug}}."""
    app = SnakeBidsApp(os.path.abspath(os.path.dirname(__file__)))
    app.run_snakemake()
    return 0
Ejemplo n.º 4
0
def get_parser():
    """Exposes parser for sphinx doc generation, cwd is the docs dir"""
    app = SnakeBidsApp('../snakebids2dicom', skip_parse_args=True)
    return app.parser
Ejemplo n.º 5
0
def main():
    """Console script for snakebids2dicom."""
    app = SnakeBidsApp(os.path.abspath(os.path.dirname(__file__)))
    app.run_snakemake()
    return 0
Ejemplo n.º 6
0
def main():
    app = SnakeBidsApp(
        os.path.abspath(os.path.dirname(__file__)),
        configfile_path="config/snakebids.yml",
    )
    app.run_snakemake()
Ejemplo n.º 7
0
def main():

    app = SnakeBidsApp(os.path.abspath(os.path.dirname(__file__)))
    app.run_snakemake()
Ejemplo n.º 8
0
def main():
    app = SnakeBidsApp(
        Path(__file__).resolve().parents[1])  # to get repository root
    app.run_snakemake()