forked from galaxyproject/galaxy-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnippets.json
187 lines (187 loc) · 8.03 KB
/
snippets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
{
"Basic Galaxy tool": {
"prefix": "gx-tool",
"body": [
"<tool id=\"$1\" name=\"$2\" version=\"@TOOL_VERSION@+galaxy@VERSION_SUFFIX@\" profile=\"20.01\" license=\"${3|MIT,Apache-2.0,GPL-3.0-or-later,GPL-2.0-only,BSD-3-Clause,LGPL-3.0+|}\">",
" <description>$5</description>",
" <xrefs>",
" <xref type=\"bio.tools\">$0</xref>",
" </xrefs>",
" <macros>",
" <token name=\"@TOOL_VERSION@\">${4:0.1.0}</token>",
" <token name=\"@VERSION_SUFFIX@\">0</token>",
" </macros>",
" <!-- TODO: please annotate this tool with topics and operations from http://edamontology.org -->",
" <!-- TODO: for more information see: https://galaxy-iuc-standards.readthedocs.io/en/latest/best_practices/tool_xml.html#edam-topics-and-operations -->",
" <edam_topics>",
" <edam_topic>topic_TODO</edam_topic>",
" </edam_topics>",
" <edam_operations>",
" <edam_operation>operation_TODO</edam_operation>",
" </edam_operations>",
" <requirements>",
" <requirement type=\"package\" version=\"@TOOL_VERSION@\">$1</requirement>",
" </requirements>",
" <command detect_errors=\"exit_code\"><![CDATA[",
" ## TODO: Fill in command using Cheetah templates",
" ## Hint: Use [ctrl+alt+c] after defining the inputs/outputs to auto-generate some Cheetah boilerplate code for you.",
" ]]></command>",
" <inputs>",
" </inputs>",
" <outputs>",
" </outputs>",
" <tests>",
" <!-- Hint: You can use [ctrl+alt+t] after defining the inputs/outputs to auto-scaffold some basic test cases. -->",
" </tests>",
" <help><![CDATA[",
"",
".. class:: infomark",
"",
"**What it does**",
"",
"TODO: Fill in help in reStructuredText format (https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html)",
"Hint: If you want, you can preview your help section using this online editor: http://rst.ninjs.org/",
"",
"Usage",
".....",
"",
"",
"**Input**",
"",
"",
"**Output**",
"",
"",
" ]]></help>",
" <citations>",
" <citation type=\"doi\"> </citation>",
" </citations>",
"</tool>"
],
"description": "Creates a basic Galaxy tool structure"
},
"Conditional Select": {
"prefix": "gx-conditional-select",
"body": [
"<conditional name=\"$1\">",
" <param name=\"$2\" type=\"select\" label=\"$3\" help=\"${4:TODO}\">",
" <option value=\"$5\">TODO: $5</option>",
" <option value=\"$6\">TODO: $6</option>",
" </param>",
" <when value=\"$5\">",
" $0",
" </when>",
" <when value=\"$6\">",
" </when>",
"</conditional>"
],
"description": "Conditional parameter select with two options"
},
"Select parameter with 3 options": {
"prefix": "gx-select-3-param",
"body": [
"<param name=\"$1\" type=\"select\" label=\"$2\" help=\"${3:TODO}\">",
" <option value=\"$4\">TODO: $4</option>",
" <option value=\"$5\">TODO: $5</option>",
" <option value=\"$6\">TODO: $6</option>",
"</param>"
],
"description": "Select parameter with 3 options"
},
"Select parameter with 5 options": {
"prefix": "gx-select-5-param",
"body": [
"<param name=\"$1\" type=\"select\" label=\"$2\" help=\"${3:TODO}\">",
" <option value=\"$4\">TODO: $4</option>",
" <option value=\"$5\">TODO: $5</option>",
" <option value=\"$6\">TODO: $6</option>",
" <option value=\"$7\">TODO: $7</option>",
" <option value=\"$8\">TODO: $8</option>",
"</param>"
],
"description": "Select parameter with 5 options"
},
"Boolean parameter": {
"prefix": "gx-boolean-param",
"body": [
"<param argument=\"${1:--}\" type=\"boolean\" truevalue=\"$1\" falsevalue=\"$2\" checked=\"${3|false,true|}\" label=\"$4\" help=\"${5:TODO}\" />"
],
"description": "Boolean parameter"
},
"Integer parameter": {
"prefix": "gx-integer-param",
"body": [
"<param argument=\"--$1\" type=\"integer\" min=\"$2\" max=\"$3\" value=\"$4\" label=\"$5\" help=\"${6:TODO}\" />"
],
"description": "Integer parameter"
},
"Float parameter": {
"prefix": "gx-float-param",
"body": [
"<param argument=\"--$1\" type=\"float\" min=\"$2\" max=\"$3\" value=\"$4\" label=\"$5\" help=\"${6:TODO}\" />"
],
"description": "Float parameter"
},
"Data parameter with single required dataset": {
"prefix": "gx-data-single-param",
"body": [
"<param argument=\"--$1\" type=\"data\" format=\"$2\" label=\"$3\" help=\"${4:TODO}\" />"
],
"description": "Data parameter with single required dataset"
},
"Data parameter with multiple required datasets": {
"prefix": "gx-data-multiple-param",
"body": [
"<param argument=\"--$1\" type=\"data\" format=\"$2\" multiple=\"true\" label=\"$3\" help=\"${4:TODO}\" />"
],
"description": "Data parameter with multiple required datasets"
},
"Text parameter": {
"prefix": "gx-text-param",
"body": [
"<param argument=\"--$1\" type=\"text\" value=\"$2\" label=\"$3\" help=\"${4:TODO}\">",
" <sanitizer invalid_char=\"\">",
" <valid initial=\"string.letters,string.digits\">",
" <add value=\"_\" />",
" </valid>",
" </sanitizer>",
" <validator type=\"regex\">[0-9a-zA-Z_]+</validator>",
"</param>"
],
"description": "Text parameter with sanitizer"
},
"Reference source selector for FASTA files": {
"prefix": "gx-reference-source-selector-fasta",
"body": [
"<conditional name=\"reference_source\">",
" <param name=\"ref_selector\" type=\"select\"",
" label=\"Choose the source for the reference genome\">",
" <option value=\"cached\">Locally cached</option>",
" <option value=\"history\">History</option>",
" </param>",
" <when value=\"cached\">",
" <param argument=\"--$1\" type=\"select\"",
" label=\"Reference genome\">",
" <options from_data_table=\"fasta_indexes\">",
" <filter type=\"data_meta\" column=\"dbkey\" key=\"dbkey\" ref=\"reads\" />",
" <validator type=\"no_options\" message=\"A built-in reference genome is not available for the build associated with the selected input file\" />",
" </options>",
" </param>",
" </when>",
" <when value=\"history\">",
" <param argument=\"--$2\" type=\"data\" format=\"fasta\" label=\"Reference\" help=\"Reference sequence\" />",
" </when>",
"</conditional>"
],
"description": "Reference source selector for FASTA files"
},
"xref section with bio.tools": {
"prefix": "gx-xref-section",
"body": [
"<xrefs>",
" <xref type=\"bio.tools\">$1</xref>",
"</xrefs>"
],
"description": "Add a xref section with bio.tools type."
}
}