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}")
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
def main(): """Console script for {{cookiecutter.project_slug}}.""" app = SnakeBidsApp(os.path.abspath(os.path.dirname(__file__))) app.run_snakemake() return 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
def main(): """Console script for snakebids2dicom.""" app = SnakeBidsApp(os.path.abspath(os.path.dirname(__file__))) app.run_snakemake() return 0
def main(): app = SnakeBidsApp( os.path.abspath(os.path.dirname(__file__)), configfile_path="config/snakebids.yml", ) app.run_snakemake()
def main(): app = SnakeBidsApp(os.path.abspath(os.path.dirname(__file__))) app.run_snakemake()
def main(): app = SnakeBidsApp( Path(__file__).resolve().parents[1]) # to get repository root app.run_snakemake()