|
36 | 36 | pipelines_launch, |
37 | 37 | pipelines_lint, |
38 | 38 | pipelines_list, |
| 39 | + pipelines_rocrate, |
39 | 40 | pipelines_schema_build, |
40 | 41 | pipelines_schema_docs, |
41 | 42 | pipelines_schema_lint, |
|
86 | 87 | }, |
87 | 88 | { |
88 | 89 | "name": "For developers", |
89 | | - "commands": ["create", "lint", "bump-version", "sync", "schema", "create-logo"], |
| 90 | + "commands": ["create", "lint", "bump-version", "sync", "schema", "rocrate", "create-logo"], |
90 | 91 | }, |
91 | 92 | ], |
92 | 93 | "nf-core modules": [ |
@@ -570,6 +571,44 @@ def command_pipelines_list(ctx, keywords, sort, json, show_archived): |
570 | 571 | pipelines_list(ctx, keywords, sort, json, show_archived) |
571 | 572 |
|
572 | 573 |
|
| 574 | +# nf-core pipelines rocrate |
| 575 | +@pipelines.command("rocrate") |
| 576 | +@click.argument( |
| 577 | + "pipeline_dir", |
| 578 | + type=click.Path(exists=True), |
| 579 | + default=Path.cwd(), |
| 580 | + required=True, |
| 581 | + metavar="<pipeline directory>", |
| 582 | +) |
| 583 | +@click.option( |
| 584 | + "-j", |
| 585 | + "--json_path", |
| 586 | + default=Path.cwd(), |
| 587 | + type=str, |
| 588 | + help="Path to save RO Crate metadata json file to", |
| 589 | +) |
| 590 | +@click.option("-z", "--zip_path", type=str, help="Path to save RO Crate zip file to") |
| 591 | +@click.option( |
| 592 | + "-pv", |
| 593 | + "--pipeline_version", |
| 594 | + type=str, |
| 595 | + help="Version of pipeline to use for RO Crate", |
| 596 | + default="", |
| 597 | +) |
| 598 | +@click.pass_context |
| 599 | +def rocrate( |
| 600 | + ctx, |
| 601 | + pipeline_dir: str, |
| 602 | + json_path: str, |
| 603 | + zip_path: str, |
| 604 | + pipeline_version: str, |
| 605 | +): |
| 606 | + """ |
| 607 | + Make an Research Object Crate |
| 608 | + """ |
| 609 | + pipelines_rocrate(ctx, pipeline_dir, json_path, zip_path, pipeline_version) |
| 610 | + |
| 611 | + |
573 | 612 | # nf-core pipelines sync |
574 | 613 | @pipelines.command("sync") |
575 | 614 | @click.pass_context |
@@ -1758,7 +1797,7 @@ def command_schema_validate(pipeline, params): |
1758 | 1797 | @click.option( |
1759 | 1798 | "--url", |
1760 | 1799 | type=str, |
1761 | | - default="https://nf-co.re/pipeline_schema_builder", |
| 1800 | + default="https://oldsite.nf-co.re/pipeline_schema_builder", |
1762 | 1801 | help="Customise the builder URL (for development work)", |
1763 | 1802 | ) |
1764 | 1803 | def command_schema_build(directory, no_prompts, web_only, url): |
|
0 commit comments