Skip to content

Commit

Permalink
Merge pull request #233 from galaxyproject/more-snippets
Browse files Browse the repository at this point in the history
add a few more snippets
  • Loading branch information
davelopez authored Aug 27, 2023
2 parents ad0bf93 + 4f0d7ad commit e6d50c9
Showing 1 changed file with 46 additions and 1 deletion.
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."
}
}

0 comments on commit e6d50c9

Please sign in to comment.