-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
443 additions
and
282 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
full_name: | ||
type: str | ||
help: What is your name? | ||
placeholder: " optional" | ||
|
||
email: | ||
type: str | ||
help: What is your email? | ||
|
||
github: | ||
type: str | ||
help: What is your github username? | ||
|
||
app_full_name: | ||
type: str | ||
help: What is the name of your app? | ||
default: "{{ dst_path }}" | ||
validator: '{% if not app_full_name %}Required{% endif %}' | ||
|
||
app_description: | ||
type: str | ||
help: Provide a brief description of your app | ||
|
||
app_version: | ||
default: "0.1.0" | ||
help: Starting version number for your app | ||
|
||
create_doc_template: | ||
type: bool | ||
help: Would you to set up basic documentation? | ||
|
||
bids_version: | ||
default: "1.8.0" | ||
when: false | ||
|
||
snakebids_version: | ||
default: "0.0.0" | ||
when: false | ||
|
||
name_slug: | ||
default: "{{ app_full_name|lower|replace(' ', '_')|replace('-', '_') }}" | ||
when: false | ||
|
||
_jinja_extensions: | ||
- jinja2_time.TimeExtension |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# {{app_full_name}} | ||
|
||
{{ app_description }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
...mplate/{{ name_slug }}/{% if create_doc_template %}docs{% endif %}/requirements.txt.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
docutils<0.18 | ||
sphinx-argparse | ||
sphinx_rtd_theme | ||
snakebids=={{ snakebids_version }} |
7 changes: 7 additions & 0 deletions
7
...mplate/{{ name_slug }}/{% if create_doc_template %}docs{% endif %}/usage/app_cli.md.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Command line interface | ||
|
||
```{argparse} | ||
:filename: ../{{ name_slug }}/run.py | ||
:func: get_parser | ||
:prog: {{ name_slug }} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
:module: snakemake | ||
:func: get_argument_parser | ||
:prog: snakemake | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
snakebids/project_template/{{ name_slug }}/{{name_slug}}/pipeline_description.json.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% | ||
set generated = { | ||
"Name": name_slug, | ||
"Version": app_version, | ||
} | ||
-%} | ||
{%- if github -%} | ||
{%- set _ = generated.update({"CodeURL": "https://github.com/" + github + "/" + name_slug}) -%} | ||
{%- endif -%} | ||
{%- if full_name -%} | ||
{%- set _ = generated.update({"Author": full_name}) -%} | ||
{%- endif -%} | ||
{%- if email -%} | ||
{%- set _ = generated.update({"AuthorEmail": email}) -%} | ||
{%- endif -%} | ||
{{- { | ||
"Name": "Dataset generated by " + name_slug, | ||
"BIDSVersion": bids_version, | ||
"DatasetType": "derivative", | ||
"GeneratedBy": [generated], | ||
} | to_json(indent=2) | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
3 changes: 0 additions & 3 deletions
3
snakebids/project_template/{{cookiecutter.__app_name}}/README.md
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
snakebids/project_template/{{cookiecutter.__app_name}}/docs/requirements.txt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
snakebids/project_template/{{cookiecutter.__app_name}}/docs/usage/app_cli.md
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
...emplate/{{cookiecutter.__app_name}}/{{cookiecutter.__app_name}}/pipeline_description.json
This file was deleted.
Oops, something went wrong.