Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a few more snippets #233

Merged
merged 2 commits into from
Aug 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 46 additions & 1 deletion client/src/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,50 @@
"</xrefs>"
],
"description": "Add a xref section with bio.tools type."
}
},
"single output": {
"prefix": "gx-output-single",
"body": [
"<data name=\"$1\" format=\"$2\" label=\"${tool.name} on ${on_string}\" />"
],
"description": "Add a simple single output."
},
"single output picked up from the working directory": {
"prefix": "gx-output-single-from-work-dir",
"body": [
"<data name=\"$1\" format=\"$2\" from_work_dir=\"$3\" label=\"${tool.name} on ${on_string}\" />"
],
"description": "Add a simple single output, that is picked up from the job working directory."
},
"single tabular output with column-metadata": {
"prefix": "gx-output-single-tabular-with-metadata",
"body": [
"<data name=\"$1\" format=\"tabular\" from_work_dir=\"$2\" label=\"${tool.name} on ${on_string}\">",
" <actions>",
" <action name=\"column_names\" type=\"metadata\" default=\"$3,$4,$5\"/>",
" </actions>",
"</data>"
],
"description": "Add a single tabular output and specify the column names as metadata."
},
"single optional output with filters": {
"prefix": "gx-output-single-filter",
"body": [
"<!-- TODO: filters need to be adapted, see examples at https://docs.galaxyproject.org/en/latest/dev/schema.html#tool-outputs-data-filter -->",
"<data name=\"$1\" format=\"$2\" from_work_dir=\"$3\" label=\"${tool.name} on ${on_string}\">",
" <filter>condintional_name['select_name'] == 'advanced' and conditional_name['boolean_parameter_name']</filter>",
"</data>"
],
"description": "Add a optional output with filters."
},
"dynamic number of outputs in a collections": {
"prefix": "gx-output-dynamic-collection",
"body": [
"<!-- TODO: creating dynamic outputs with collections is covered in depth in the planemo documentation at https://planemo.readthedocs.io/en/latest/writing_advanced.html#collections -->",
"<collection name=\"$1\" type=\"list\" label=\"$2\">",
" <discover_datasets pattern=\"__name_and_ext__\" directory=\"$3\" />",
"</collection>"
],
"description": "Dynamic number of outputs in a collection."
}
}