@apollo-annotation/cli 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +899 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +9 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +8 -0
- package/dist/Config.d.ts +43 -0
- package/dist/Config.js +233 -0
- package/dist/baseCommand.d.ts +21 -0
- package/dist/baseCommand.js +62 -0
- package/dist/commands/assembly/add-fasta.d.ts +15 -0
- package/dist/commands/assembly/add-fasta.js +98 -0
- package/dist/commands/assembly/add-gff.d.ts +16 -0
- package/dist/commands/assembly/add-gff.js +76 -0
- package/dist/commands/assembly/check.d.ts +15 -0
- package/dist/commands/assembly/check.js +148 -0
- package/dist/commands/assembly/delete.d.ts +14 -0
- package/dist/commands/assembly/delete.js +43 -0
- package/dist/commands/assembly/get.d.ts +9 -0
- package/dist/commands/assembly/get.js +33 -0
- package/dist/commands/assembly/get.test.d.ts +1 -0
- package/dist/commands/assembly/get.test.js +50 -0
- package/dist/commands/assembly/sequence.d.ts +16 -0
- package/dist/commands/assembly/sequence.js +117 -0
- package/dist/commands/change/get.d.ts +9 -0
- package/dist/commands/change/get.js +35 -0
- package/dist/commands/change/get.test.d.ts +1 -0
- package/dist/commands/change/get.test.js +22 -0
- package/dist/commands/config.d.ts +25 -0
- package/dist/commands/config.js +217 -0
- package/dist/commands/config.test.d.ts +1 -0
- package/dist/commands/config.test.js +188 -0
- package/dist/commands/feature/add-child.d.ts +17 -0
- package/dist/commands/feature/add-child.js +120 -0
- package/dist/commands/feature/check.d.ts +14 -0
- package/dist/commands/feature/check.js +97 -0
- package/dist/commands/feature/copy.d.ts +17 -0
- package/dist/commands/feature/copy.js +110 -0
- package/dist/commands/feature/delete.d.ts +11 -0
- package/dist/commands/feature/delete.js +99 -0
- package/dist/commands/feature/edit-attribute.d.ts +16 -0
- package/dist/commands/feature/edit-attribute.js +100 -0
- package/dist/commands/feature/edit-coords.d.ts +15 -0
- package/dist/commands/feature/edit-coords.js +109 -0
- package/dist/commands/feature/edit-type.d.ts +10 -0
- package/dist/commands/feature/edit-type.js +70 -0
- package/dist/commands/feature/edit.d.ts +13 -0
- package/dist/commands/feature/edit.js +81 -0
- package/dist/commands/feature/get-id.d.ts +14 -0
- package/dist/commands/feature/get-id.js +56 -0
- package/dist/commands/feature/get.d.ts +16 -0
- package/dist/commands/feature/get.js +87 -0
- package/dist/commands/feature/import.d.ts +15 -0
- package/dist/commands/feature/import.js +83 -0
- package/dist/commands/feature/search.d.ts +14 -0
- package/dist/commands/feature/search.js +91 -0
- package/dist/commands/login.d.ts +21 -0
- package/dist/commands/login.js +206 -0
- package/dist/commands/login.test.d.ts +1 -0
- package/dist/commands/login.test.js +52 -0
- package/dist/commands/logout.d.ts +10 -0
- package/dist/commands/logout.js +41 -0
- package/dist/commands/logout.test.d.ts +1 -0
- package/dist/commands/logout.test.js +67 -0
- package/dist/commands/refseq/get.d.ts +13 -0
- package/dist/commands/refseq/get.js +44 -0
- package/dist/commands/status.d.ts +6 -0
- package/dist/commands/status.js +38 -0
- package/dist/commands/status.test.d.ts +1 -0
- package/dist/commands/status.test.js +54 -0
- package/dist/commands/user/get.d.ts +14 -0
- package/dist/commands/user/get.js +46 -0
- package/dist/commands/user/get.test.d.ts +1 -0
- package/dist/commands/user/get.test.js +23 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/test/fixtures.d.ts +7 -0
- package/dist/test/fixtures.js +40 -0
- package/dist/utils.d.ts +54 -0
- package/dist/utils.js +373 -0
- package/oclif.manifest.json +1632 -0
- package/package.json +100 -0
package/README.md
ADDED
|
@@ -0,0 +1,899 @@
|
|
|
1
|
+
# Table of contents
|
|
2
|
+
|
|
3
|
+
<!-- toc -->
|
|
4
|
+
* [Table of contents](#table-of-contents)
|
|
5
|
+
* [Usage](#usage)
|
|
6
|
+
* [Commands](#commands)
|
|
7
|
+
<!-- tocstop -->
|
|
8
|
+
|
|
9
|
+
# Usage
|
|
10
|
+
|
|
11
|
+
<!-- usage -->
|
|
12
|
+
```sh-session
|
|
13
|
+
$ npm install -g @apollo-annotation/cli
|
|
14
|
+
$ apollo COMMAND
|
|
15
|
+
running command...
|
|
16
|
+
$ apollo (--version)
|
|
17
|
+
@apollo-annotation/cli/0.1.10 linux-x64 node-v18.20.3
|
|
18
|
+
$ apollo --help [COMMAND]
|
|
19
|
+
USAGE
|
|
20
|
+
$ apollo COMMAND
|
|
21
|
+
...
|
|
22
|
+
```
|
|
23
|
+
<!-- usagestop -->
|
|
24
|
+
|
|
25
|
+
# Commands
|
|
26
|
+
|
|
27
|
+
<!-- commands -->
|
|
28
|
+
* [`apollo assembly add-fasta`](#apollo-assembly-add-fasta)
|
|
29
|
+
* [`apollo assembly add-gff`](#apollo-assembly-add-gff)
|
|
30
|
+
* [`apollo assembly check`](#apollo-assembly-check)
|
|
31
|
+
* [`apollo assembly delete`](#apollo-assembly-delete)
|
|
32
|
+
* [`apollo assembly get`](#apollo-assembly-get)
|
|
33
|
+
* [`apollo assembly sequence`](#apollo-assembly-sequence)
|
|
34
|
+
* [`apollo change get`](#apollo-change-get)
|
|
35
|
+
* [`apollo config [KEY] [VALUE]`](#apollo-config-key-value)
|
|
36
|
+
* [`apollo feature add-child`](#apollo-feature-add-child)
|
|
37
|
+
* [`apollo feature check`](#apollo-feature-check)
|
|
38
|
+
* [`apollo feature copy`](#apollo-feature-copy)
|
|
39
|
+
* [`apollo feature delete`](#apollo-feature-delete)
|
|
40
|
+
* [`apollo feature edit`](#apollo-feature-edit)
|
|
41
|
+
* [`apollo feature edit-attribute`](#apollo-feature-edit-attribute)
|
|
42
|
+
* [`apollo feature edit-coords`](#apollo-feature-edit-coords)
|
|
43
|
+
* [`apollo feature edit-type`](#apollo-feature-edit-type)
|
|
44
|
+
* [`apollo feature get`](#apollo-feature-get)
|
|
45
|
+
* [`apollo feature get-id`](#apollo-feature-get-id)
|
|
46
|
+
* [`apollo feature import`](#apollo-feature-import)
|
|
47
|
+
* [`apollo feature search`](#apollo-feature-search)
|
|
48
|
+
* [`apollo help [COMMANDS]`](#apollo-help-commands)
|
|
49
|
+
* [`apollo login`](#apollo-login)
|
|
50
|
+
* [`apollo logout`](#apollo-logout)
|
|
51
|
+
* [`apollo refseq get`](#apollo-refseq-get)
|
|
52
|
+
* [`apollo status`](#apollo-status)
|
|
53
|
+
* [`apollo user get`](#apollo-user-get)
|
|
54
|
+
|
|
55
|
+
## `apollo assembly add-fasta`
|
|
56
|
+
|
|
57
|
+
Add new assembly from local or external fasta file
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
USAGE
|
|
61
|
+
$ apollo assembly add-fasta -i <value> [--profile <value>] [--config-file <value>] [-a <value>] [-x <value>] [-f]
|
|
62
|
+
|
|
63
|
+
FLAGS
|
|
64
|
+
-a, --assembly=<value> Name for this assembly. Use the file name if omitted
|
|
65
|
+
-f, --force Delete existing assembly, if it exists
|
|
66
|
+
-i, --input-file=<value> (required) Input fasta file
|
|
67
|
+
-x, --index=<value> URL of the index. Required if input is an external source and ignored if input is a local
|
|
68
|
+
file
|
|
69
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
70
|
+
--profile=<value> Use credentials from this profile
|
|
71
|
+
|
|
72
|
+
DESCRIPTION
|
|
73
|
+
Add new assembly from local or external fasta file
|
|
74
|
+
|
|
75
|
+
EXAMPLES
|
|
76
|
+
From local file:
|
|
77
|
+
|
|
78
|
+
$ apollo assembly add-fasta -i genome.fa -a myAssembly
|
|
79
|
+
|
|
80
|
+
From external source we also need the URL of the index:
|
|
81
|
+
|
|
82
|
+
$ apollo assembly add-fasta -i https://.../genome.fa -x https://.../genome.fa.fai -a myAssembly
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
_See code: [src/commands/assembly/add-fasta.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/assembly/add-fasta.ts)_
|
|
86
|
+
|
|
87
|
+
## `apollo assembly add-gff`
|
|
88
|
+
|
|
89
|
+
Add new assembly from gff or gft file
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
USAGE
|
|
93
|
+
$ apollo assembly add-gff -i <value> [--profile <value>] [--config-file <value>] [-a <value>] [-o] [-f]
|
|
94
|
+
|
|
95
|
+
FLAGS
|
|
96
|
+
-a, --assembly=<value> Name for this assembly. Use the file name if omitted
|
|
97
|
+
-f, --force Delete existing assembly, if it exists
|
|
98
|
+
-i, --input-file=<value> (required) Input gff or gtf file
|
|
99
|
+
-o, --omit-features Do not import features, only upload the sequences
|
|
100
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
101
|
+
--profile=<value> Use credentials from this profile
|
|
102
|
+
|
|
103
|
+
DESCRIPTION
|
|
104
|
+
Add new assembly from gff or gft file
|
|
105
|
+
|
|
106
|
+
The gff file is expected to contain sequences as per gff specifications.
|
|
107
|
+
Features are also imported by default.
|
|
108
|
+
|
|
109
|
+
EXAMPLES
|
|
110
|
+
Import sequences and features:
|
|
111
|
+
|
|
112
|
+
$ apollo assembly add-gff -i genome.gff -a myAssembly
|
|
113
|
+
|
|
114
|
+
Import sequences only:
|
|
115
|
+
|
|
116
|
+
$ apollo assembly add-gff -i genome.gff -a myAssembly -o
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
_See code: [src/commands/assembly/add-gff.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/assembly/add-gff.ts)_
|
|
120
|
+
|
|
121
|
+
## `apollo assembly check`
|
|
122
|
+
|
|
123
|
+
Add, view, or delete checks to assembly
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
USAGE
|
|
127
|
+
$ apollo assembly check [--profile <value>] [--config-file <value>] [-a <value>] [-c <value>] [-d]
|
|
128
|
+
|
|
129
|
+
FLAGS
|
|
130
|
+
-a, --assembly=<value> Manage checks in this assembly
|
|
131
|
+
-c, --check=<value>... Add these check names or IDs. If unset, print the checks set for assembly
|
|
132
|
+
-d, --delete Delete (instead of adding) checks
|
|
133
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
134
|
+
--profile=<value> Use credentials from this profile
|
|
135
|
+
|
|
136
|
+
DESCRIPTION
|
|
137
|
+
Add, view, or delete checks to assembly
|
|
138
|
+
|
|
139
|
+
Manage checks, i.e. the rules ensuring features in an assembly are plausible.
|
|
140
|
+
This command only sets the check to apply, to retrieve features flagged by these
|
|
141
|
+
checks use `apollo feature check`.
|
|
142
|
+
|
|
143
|
+
EXAMPLES
|
|
144
|
+
View available check types:
|
|
145
|
+
|
|
146
|
+
$ apollo assembly check
|
|
147
|
+
|
|
148
|
+
View checks set for assembly hg19:
|
|
149
|
+
|
|
150
|
+
$ apollo assembly check -a hg19
|
|
151
|
+
|
|
152
|
+
Add checks to assembly:
|
|
153
|
+
|
|
154
|
+
$ apollo assembly check -a hg19 -c CDSCheck
|
|
155
|
+
|
|
156
|
+
Delete checks from assembly:
|
|
157
|
+
|
|
158
|
+
$ apollo assembly check -a hg19 -c CDSCheck --delete
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
_See code: [src/commands/assembly/check.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/assembly/check.ts)_
|
|
162
|
+
|
|
163
|
+
## `apollo assembly delete`
|
|
164
|
+
|
|
165
|
+
Delete assemblies
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
USAGE
|
|
169
|
+
$ apollo assembly delete -a <value> [--profile <value>] [--config-file <value>] [-v]
|
|
170
|
+
|
|
171
|
+
FLAGS
|
|
172
|
+
-a, --assembly=<value>... (required) Assembly names or IDs to delete
|
|
173
|
+
-v, --verbose Print to stdout the array of assemblies deleted
|
|
174
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
175
|
+
--profile=<value> Use credentials from this profile
|
|
176
|
+
|
|
177
|
+
DESCRIPTION
|
|
178
|
+
Delete assemblies
|
|
179
|
+
|
|
180
|
+
Assemblies to delete may be names or IDs
|
|
181
|
+
|
|
182
|
+
EXAMPLES
|
|
183
|
+
Delete multiple assemblies using name or ID:
|
|
184
|
+
|
|
185
|
+
$ apollo assembly delete -a mouse 6605826fbd0eee691f83e73f
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
_See code: [src/commands/assembly/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/assembly/delete.ts)_
|
|
189
|
+
|
|
190
|
+
## `apollo assembly get`
|
|
191
|
+
|
|
192
|
+
Get available assemblies
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
USAGE
|
|
196
|
+
$ apollo assembly get [--profile <value>] [--config-file <value>] [-a <value>]
|
|
197
|
+
|
|
198
|
+
FLAGS
|
|
199
|
+
-a, --assembly=<value>... Get assemblies in this list of names or IDs
|
|
200
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
201
|
+
--profile=<value> Use credentials from this profile
|
|
202
|
+
|
|
203
|
+
DESCRIPTION
|
|
204
|
+
Get available assemblies
|
|
205
|
+
|
|
206
|
+
Print to stdout the list of assemblies in json format
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
_See code: [src/commands/assembly/get.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/assembly/get.ts)_
|
|
210
|
+
|
|
211
|
+
## `apollo assembly sequence`
|
|
212
|
+
|
|
213
|
+
Get reference sequence in fasta format
|
|
214
|
+
|
|
215
|
+
```
|
|
216
|
+
USAGE
|
|
217
|
+
$ apollo assembly sequence [--profile <value>] [--config-file <value>] [-a <value>] [-r <value>] [-s <value>] [-e
|
|
218
|
+
<value>]
|
|
219
|
+
|
|
220
|
+
FLAGS
|
|
221
|
+
-a, --assembly=<value> Find input reference sequence in this assembly
|
|
222
|
+
-e, --end=<value> End coordinate
|
|
223
|
+
-r, --refseq=<value> Reference sequence. If unset, get all sequences
|
|
224
|
+
-s, --start=<value> [default: 1] Start coordinate (1-based)
|
|
225
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
226
|
+
--profile=<value> Use credentials from this profile
|
|
227
|
+
|
|
228
|
+
DESCRIPTION
|
|
229
|
+
Get reference sequence in fasta format
|
|
230
|
+
|
|
231
|
+
Return the reference sequence for a given assembly and coordinates
|
|
232
|
+
|
|
233
|
+
EXAMPLES
|
|
234
|
+
Get all sequences in myAssembly:
|
|
235
|
+
|
|
236
|
+
$ apollo assembly sequence -a myAssembly
|
|
237
|
+
|
|
238
|
+
Get sequence in coordinates chr1:1..1000:
|
|
239
|
+
|
|
240
|
+
$ apollo assembly sequence -a myAssembly -r chr1 -s 1 -e 1000
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
_See code: [src/commands/assembly/sequence.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/assembly/sequence.ts)_
|
|
244
|
+
|
|
245
|
+
## `apollo change get`
|
|
246
|
+
|
|
247
|
+
Get list of changes
|
|
248
|
+
|
|
249
|
+
```
|
|
250
|
+
USAGE
|
|
251
|
+
$ apollo change get [--profile <value>] [--config-file <value>] [-a <value>]
|
|
252
|
+
|
|
253
|
+
FLAGS
|
|
254
|
+
-a, --assembly=<value>... Get changes only for these assembly names or IDs (but see description)
|
|
255
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
256
|
+
--profile=<value> Use credentials from this profile
|
|
257
|
+
|
|
258
|
+
DESCRIPTION
|
|
259
|
+
Get list of changes
|
|
260
|
+
|
|
261
|
+
Return the change log in json format. Note that when an assembly is deleted the
|
|
262
|
+
link between common name and ID is lost (it can still be recovered by inspecting
|
|
263
|
+
the change log but at present this task is left to the user). In such cases you
|
|
264
|
+
need to use the assembly ID.
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
_See code: [src/commands/change/get.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/change/get.ts)_
|
|
268
|
+
|
|
269
|
+
## `apollo config [KEY] [VALUE]`
|
|
270
|
+
|
|
271
|
+
Get or set apollo configuration options
|
|
272
|
+
|
|
273
|
+
```
|
|
274
|
+
USAGE
|
|
275
|
+
$ apollo config [KEY] [VALUE] [--profile <value>] [---file <value>] [--get-config-file]
|
|
276
|
+
|
|
277
|
+
ARGUMENTS
|
|
278
|
+
KEY Name of configuration parameter
|
|
279
|
+
VALUE Parameter value
|
|
280
|
+
|
|
281
|
+
FLAGS
|
|
282
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
283
|
+
--get-config-file Return the path to the config file and exit (this file may not exist yet)
|
|
284
|
+
--profile=<value> Profile to create or edit
|
|
285
|
+
|
|
286
|
+
DESCRIPTION
|
|
287
|
+
Get or set apollo configuration options
|
|
288
|
+
|
|
289
|
+
Use this command to create or edit a user profile with credentials to access
|
|
290
|
+
Apollo. Configuration options are:
|
|
291
|
+
|
|
292
|
+
- address:
|
|
293
|
+
Address and port e.g http://localhost:3999
|
|
294
|
+
|
|
295
|
+
- accessType:
|
|
296
|
+
How to access Apollo. accessType is typically one of: google, microsoft, guest,
|
|
297
|
+
root. Allowed types depend on your Apollo setup
|
|
298
|
+
|
|
299
|
+
- accessToken:
|
|
300
|
+
Access token. Usually inserted by `apollo login`
|
|
301
|
+
|
|
302
|
+
- rootCredentials.username:
|
|
303
|
+
Username of root account. Only set this for "root" access type
|
|
304
|
+
|
|
305
|
+
- rootCredentials.password:
|
|
306
|
+
Password for root account. Only set this for "root" access type
|
|
307
|
+
|
|
308
|
+
EXAMPLES
|
|
309
|
+
Interactive setup:
|
|
310
|
+
|
|
311
|
+
$ apollo config
|
|
312
|
+
|
|
313
|
+
Setup with key/value pairs:
|
|
314
|
+
|
|
315
|
+
$ apollo config --profile admin address http://localhost:3999
|
|
316
|
+
|
|
317
|
+
Get current address for default profile:
|
|
318
|
+
|
|
319
|
+
$ apollo config address
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
_See code: [src/commands/config.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/config.ts)_
|
|
323
|
+
|
|
324
|
+
## `apollo feature add-child`
|
|
325
|
+
|
|
326
|
+
Add a child feature (e.g. add an exon to an mRNA)
|
|
327
|
+
|
|
328
|
+
```
|
|
329
|
+
USAGE
|
|
330
|
+
$ apollo feature add-child -s <value> -e <value> -t <value> [--profile <value>] [--config-file <value>] [-i <value>]
|
|
331
|
+
|
|
332
|
+
FLAGS
|
|
333
|
+
-e, --end=<value> (required) End coordinate of the child feature (1-based)
|
|
334
|
+
-i, --feature-id=<value> [default: -] Add a child to this feature ID; use - to read it from stdin
|
|
335
|
+
-s, --start=<value> (required) Start coordinate of the child feature (1-based)
|
|
336
|
+
-t, --type=<value> (required) Type of child feature
|
|
337
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
338
|
+
--profile=<value> Use credentials from this profile
|
|
339
|
+
|
|
340
|
+
DESCRIPTION
|
|
341
|
+
Add a child feature (e.g. add an exon to an mRNA)
|
|
342
|
+
|
|
343
|
+
See the other commands under `apollo feature` to retrive the parent ID of
|
|
344
|
+
interest and to populate the child feature with attributes.
|
|
345
|
+
|
|
346
|
+
EXAMPLES
|
|
347
|
+
Add an exon at genomic coordinates 10..20 to this feature ID:
|
|
348
|
+
|
|
349
|
+
$ apollo feature add-child -i 6605826fbd0eee691f83e73f -t exon -s 10 -e 20
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
_See code: [src/commands/feature/add-child.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/feature/add-child.ts)_
|
|
353
|
+
|
|
354
|
+
## `apollo feature check`
|
|
355
|
+
|
|
356
|
+
Get check results
|
|
357
|
+
|
|
358
|
+
```
|
|
359
|
+
USAGE
|
|
360
|
+
$ apollo feature check [--profile <value>] [--config-file <value>] [-i <value>] [-a <value>]
|
|
361
|
+
|
|
362
|
+
FLAGS
|
|
363
|
+
-a, --assembly=<value> Get checks for this assembly
|
|
364
|
+
-i, --feature-id=<value>... Get checks for these feature identifiers
|
|
365
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
366
|
+
--profile=<value> Use credentials from this profile
|
|
367
|
+
|
|
368
|
+
DESCRIPTION
|
|
369
|
+
Get check results
|
|
370
|
+
|
|
371
|
+
Use this command to view which features fail checks along with the reason for
|
|
372
|
+
failing. Use `apollo assembly check` for managing which checks should be applied
|
|
373
|
+
to an assembly
|
|
374
|
+
|
|
375
|
+
EXAMPLES
|
|
376
|
+
Get all check results in the database:
|
|
377
|
+
|
|
378
|
+
$ apollo feature check
|
|
379
|
+
|
|
380
|
+
Get check results for assembly hg19:
|
|
381
|
+
|
|
382
|
+
$ apollo feature check -a hg19
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
_See code: [src/commands/feature/check.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/feature/check.ts)_
|
|
386
|
+
|
|
387
|
+
## `apollo feature copy`
|
|
388
|
+
|
|
389
|
+
Copy a feature to another location
|
|
390
|
+
|
|
391
|
+
```
|
|
392
|
+
USAGE
|
|
393
|
+
$ apollo feature copy -r <value> -s <value> [--profile <value>] [--config-file <value>] [-i <value>] [-a <value>]
|
|
394
|
+
|
|
395
|
+
FLAGS
|
|
396
|
+
-a, --assembly=<value> Name or ID of target assembly. Not required if refseq is unique in the database
|
|
397
|
+
-i, --feature-id=<value> [default: -] Feature ID to copy to; use - to read it from stdin
|
|
398
|
+
-r, --refseq=<value> (required) Name or ID of target reference sequence
|
|
399
|
+
-s, --start=<value> (required) Start position in target reference sequence
|
|
400
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
401
|
+
--profile=<value> Use credentials from this profile
|
|
402
|
+
|
|
403
|
+
DESCRIPTION
|
|
404
|
+
Copy a feature to another location
|
|
405
|
+
|
|
406
|
+
The feature may be copied to the same or to a different assembly. he destination
|
|
407
|
+
reference sequence may be selected by name only if unique in the database or by
|
|
408
|
+
name and assembly or by identifier.
|
|
409
|
+
|
|
410
|
+
EXAMPLES
|
|
411
|
+
Copy this feature ID to chr1:100 in assembly hg38:
|
|
412
|
+
|
|
413
|
+
$ apollo feature copy -i 6605826fbd0eee691f83e73f -r chr1 -s 100 -a hg38
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
_See code: [src/commands/feature/copy.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/feature/copy.ts)_
|
|
417
|
+
|
|
418
|
+
## `apollo feature delete`
|
|
419
|
+
|
|
420
|
+
Delete one or more features by ID
|
|
421
|
+
|
|
422
|
+
```
|
|
423
|
+
USAGE
|
|
424
|
+
$ apollo feature delete [--profile <value>] [--config-file <value>] [-i <value>] [-f] [-n]
|
|
425
|
+
|
|
426
|
+
FLAGS
|
|
427
|
+
-f, --force Ignore non-existing features
|
|
428
|
+
-i, --feature-id=<value>... [default: -] Feature IDs to delete
|
|
429
|
+
-n, --dry-run Only show what would be delete
|
|
430
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
431
|
+
--profile=<value> Use credentials from this profile
|
|
432
|
+
|
|
433
|
+
DESCRIPTION
|
|
434
|
+
Delete one or more features by ID
|
|
435
|
+
|
|
436
|
+
Note that deleting a child feature after deleting its parent will result in an
|
|
437
|
+
error unless you set -f/--force.
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
_See code: [src/commands/feature/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/feature/delete.ts)_
|
|
441
|
+
|
|
442
|
+
## `apollo feature edit`
|
|
443
|
+
|
|
444
|
+
Edit features using an appropiate json input
|
|
445
|
+
|
|
446
|
+
```
|
|
447
|
+
USAGE
|
|
448
|
+
$ apollo feature edit [--profile <value>] [--config-file <value>] [-j <value>]
|
|
449
|
+
|
|
450
|
+
FLAGS
|
|
451
|
+
-j, --json-input=<value> [default: -] Json string or json file or "-" to read json from stdin
|
|
452
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
453
|
+
--profile=<value> Use credentials from this profile
|
|
454
|
+
|
|
455
|
+
DESCRIPTION
|
|
456
|
+
Edit features using an appropiate json input
|
|
457
|
+
|
|
458
|
+
Edit a feature by submitting a json input with all the required attributes for
|
|
459
|
+
Apollo to process it. This is a very low level command which most users probably
|
|
460
|
+
do not need.
|
|
461
|
+
|
|
462
|
+
Input may be a json string or a json file and it may be an array of changes.
|
|
463
|
+
This is an example input for editing feature type:
|
|
464
|
+
|
|
465
|
+
{
|
|
466
|
+
"typeName": "TypeChange",
|
|
467
|
+
"changedIds": [
|
|
468
|
+
"6613f7d22c957525d631b1cc"
|
|
469
|
+
],
|
|
470
|
+
"assembly": "6613f7d1360321540a11e5ed",
|
|
471
|
+
"featureId": "6613f7d22c957525d631b1cc",
|
|
472
|
+
"oldType": "BAC",
|
|
473
|
+
"newType": "G_quartet"
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
EXAMPLES
|
|
477
|
+
Editing by passing a json to stdin:
|
|
478
|
+
|
|
479
|
+
echo '{"typeName": ... "newType": "G_quartet"}' | apollo feature edit -j -
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
_See code: [src/commands/feature/edit.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/feature/edit.ts)_
|
|
483
|
+
|
|
484
|
+
## `apollo feature edit-attribute`
|
|
485
|
+
|
|
486
|
+
Add, edit, or view a feature attribute
|
|
487
|
+
|
|
488
|
+
```
|
|
489
|
+
USAGE
|
|
490
|
+
$ apollo feature edit-attribute -a <value> [--profile <value>] [--config-file <value>] [-i <value>] [-v <value>] [-d]
|
|
491
|
+
|
|
492
|
+
FLAGS
|
|
493
|
+
-a, --attribute=<value> (required) Attribute key to add or edit
|
|
494
|
+
-d, --delete Delete this attribute
|
|
495
|
+
-i, --feature-id=<value> [default: -] Feature ID to edit or "-" to read it from stdin
|
|
496
|
+
-v, --value=<value>... New attribute value. Separated mutliple values by space to them as a list. If unset return
|
|
497
|
+
current value
|
|
498
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
499
|
+
--profile=<value> Use credentials from this profile
|
|
500
|
+
|
|
501
|
+
DESCRIPTION
|
|
502
|
+
Add, edit, or view a feature attribute
|
|
503
|
+
|
|
504
|
+
Be aware that there is no checking whether attributes names and values are
|
|
505
|
+
valid. For example, you can create non-unique ID attributes or you can set gene
|
|
506
|
+
ontology terms to non-existing terms
|
|
507
|
+
|
|
508
|
+
EXAMPLES
|
|
509
|
+
Add attribute "domains" with a list of values:
|
|
510
|
+
|
|
511
|
+
$ apollo feature edit-attribute -i 66...3f -a domains -v ABC PLD
|
|
512
|
+
|
|
513
|
+
Print values in "domains" as json array:
|
|
514
|
+
|
|
515
|
+
$ apollo feature edit-attribute -i 66...3f -a domains
|
|
516
|
+
|
|
517
|
+
Delete attribute "domains"
|
|
518
|
+
|
|
519
|
+
$ apollo feature edit-attribute -i 66...3f -a domains -d
|
|
520
|
+
```
|
|
521
|
+
|
|
522
|
+
_See code: [src/commands/feature/edit-attribute.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/feature/edit-attribute.ts)_
|
|
523
|
+
|
|
524
|
+
## `apollo feature edit-coords`
|
|
525
|
+
|
|
526
|
+
Edit feature start and/or end coordinates
|
|
527
|
+
|
|
528
|
+
```
|
|
529
|
+
USAGE
|
|
530
|
+
$ apollo feature edit-coords [--profile <value>] [--config-file <value>] [-i <value>] [-s <value>] [-e <value>]
|
|
531
|
+
|
|
532
|
+
FLAGS
|
|
533
|
+
-e, --end=<value> New end coordinate (1-based)
|
|
534
|
+
-i, --feature-id=<value> [default: -] Feature ID to edit or "-" to read it from stdin
|
|
535
|
+
-s, --start=<value> New start coordinate (1-based)
|
|
536
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
537
|
+
--profile=<value> Use credentials from this profile
|
|
538
|
+
|
|
539
|
+
DESCRIPTION
|
|
540
|
+
Edit feature start and/or end coordinates
|
|
541
|
+
|
|
542
|
+
If editing a child feature that new coordinates must be within the parent's
|
|
543
|
+
coordinates. To get the identifier of the feature to edit consider using `apollo
|
|
544
|
+
feature get` or `apollo feature search`
|
|
545
|
+
|
|
546
|
+
EXAMPLES
|
|
547
|
+
Edit start and end:
|
|
548
|
+
|
|
549
|
+
$ apollo feature edit-coords -i abc...xyz -s 10 -e 1000
|
|
550
|
+
|
|
551
|
+
Edit end and leave start as it is:
|
|
552
|
+
|
|
553
|
+
$ apollo feature edit-coords -i abc...xyz -e 2000
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
_See code: [src/commands/feature/edit-coords.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/feature/edit-coords.ts)_
|
|
557
|
+
|
|
558
|
+
## `apollo feature edit-type`
|
|
559
|
+
|
|
560
|
+
Edit or view feature type
|
|
561
|
+
|
|
562
|
+
```
|
|
563
|
+
USAGE
|
|
564
|
+
$ apollo feature edit-type [--profile <value>] [--config-file <value>] [-i <value>] [-t <value>]
|
|
565
|
+
|
|
566
|
+
FLAGS
|
|
567
|
+
-i, --feature-id=<value> [default: -] Feature ID to edit or "-" to read it from stdin
|
|
568
|
+
-t, --type=<value> Assign feature to this type. If unset return the current type
|
|
569
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
570
|
+
--profile=<value> Use credentials from this profile
|
|
571
|
+
|
|
572
|
+
DESCRIPTION
|
|
573
|
+
Edit or view feature type
|
|
574
|
+
|
|
575
|
+
Feature type is column 3 in gff format. It must be a valid sequence ontology
|
|
576
|
+
term although but the valifdity of the new term is not checked.
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
_See code: [src/commands/feature/edit-type.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/feature/edit-type.ts)_
|
|
580
|
+
|
|
581
|
+
## `apollo feature get`
|
|
582
|
+
|
|
583
|
+
Get features in assembly, reference sequence or genomic window
|
|
584
|
+
|
|
585
|
+
```
|
|
586
|
+
USAGE
|
|
587
|
+
$ apollo feature get [--profile <value>] [--config-file <value>] [-a <value>] [-r <value>] [-s <value>] [-e
|
|
588
|
+
<value>]
|
|
589
|
+
|
|
590
|
+
FLAGS
|
|
591
|
+
-a, --assembly=<value> Find input reference sequence in this assembly
|
|
592
|
+
-e, --end=<value> End coordinate
|
|
593
|
+
-r, --refseq=<value> Reference sequence. If unset, query all sequences
|
|
594
|
+
-s, --start=<value> [default: 1] Start coordinate (1-based)
|
|
595
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
596
|
+
--profile=<value> Use credentials from this profile
|
|
597
|
+
|
|
598
|
+
DESCRIPTION
|
|
599
|
+
Get features in assembly, reference sequence or genomic window
|
|
600
|
+
|
|
601
|
+
EXAMPLES
|
|
602
|
+
Get all features in myAssembly:
|
|
603
|
+
|
|
604
|
+
$ apollo feature get -a myAssembly
|
|
605
|
+
|
|
606
|
+
Get features intersecting chr1:1..1000. You can omit the assembly name if there
|
|
607
|
+
are no other reference sequences named chr1:
|
|
608
|
+
|
|
609
|
+
$ apollo feature get -a myAssembly -r chr1 -s 1 -e 1000
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
_See code: [src/commands/feature/get.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/feature/get.ts)_
|
|
613
|
+
|
|
614
|
+
## `apollo feature get-id`
|
|
615
|
+
|
|
616
|
+
Get features given their identifiers
|
|
617
|
+
|
|
618
|
+
```
|
|
619
|
+
USAGE
|
|
620
|
+
$ apollo feature get-id [--profile <value>] [--config-file <value>] [-i <value>]
|
|
621
|
+
|
|
622
|
+
FLAGS
|
|
623
|
+
-i, --feature-id=<value>... [default: -] Retrieves feature with these IDs. Use
|
|
624
|
+
"-" to read IDs from stdin (one per
|
|
625
|
+
line)
|
|
626
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
627
|
+
--profile=<value> Use credentials from this profile
|
|
628
|
+
|
|
629
|
+
DESCRIPTION
|
|
630
|
+
Get features given their identifiers
|
|
631
|
+
|
|
632
|
+
Invalid identifiers or identifiers not found in the database will be silently
|
|
633
|
+
ignored
|
|
634
|
+
|
|
635
|
+
EXAMPLES
|
|
636
|
+
Get features for these identifiers:
|
|
637
|
+
|
|
638
|
+
$ apollo feature get-id -i abc...zyz def...foo
|
|
639
|
+
```
|
|
640
|
+
|
|
641
|
+
_See code: [src/commands/feature/get-id.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/feature/get-id.ts)_
|
|
642
|
+
|
|
643
|
+
## `apollo feature import`
|
|
644
|
+
|
|
645
|
+
Import features from local gff file
|
|
646
|
+
|
|
647
|
+
```
|
|
648
|
+
USAGE
|
|
649
|
+
$ apollo feature import -i <value> -a <value> [--profile <value>] [--config-file <value>] [-d]
|
|
650
|
+
|
|
651
|
+
FLAGS
|
|
652
|
+
-a, --assembly=<value> (required) Import into this assembly name or assembly ID
|
|
653
|
+
-d, --delete-existing Delete existing features before importing
|
|
654
|
+
-i, --input-file=<value> (required) Input gff or gtf file
|
|
655
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
656
|
+
--profile=<value> Use credentials from this profile
|
|
657
|
+
|
|
658
|
+
DESCRIPTION
|
|
659
|
+
Import features from local gff file
|
|
660
|
+
|
|
661
|
+
By default, features are added to the existing ones.
|
|
662
|
+
|
|
663
|
+
EXAMPLES
|
|
664
|
+
Delete features in myAssembly and then import features.gff3:
|
|
665
|
+
|
|
666
|
+
$ apollo feature import -d -i features.gff3 -a myAssembly
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
_See code: [src/commands/feature/import.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/feature/import.ts)_
|
|
670
|
+
|
|
671
|
+
## `apollo feature search`
|
|
672
|
+
|
|
673
|
+
Free text search for feature in one or more assemblies
|
|
674
|
+
|
|
675
|
+
```
|
|
676
|
+
USAGE
|
|
677
|
+
$ apollo feature search -t <value> [--profile <value>] [--config-file <value>] [-a <value>]
|
|
678
|
+
|
|
679
|
+
FLAGS
|
|
680
|
+
-a, --assembly=<value>... Assembly names or IDs to search; use "-" to read it from stdin. If omitted
|
|
681
|
+
search all assemblies
|
|
682
|
+
-t, --text=<value> (required) Search for this text query
|
|
683
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
684
|
+
--profile=<value> Use credentials from this profile
|
|
685
|
+
|
|
686
|
+
DESCRIPTION
|
|
687
|
+
Free text search for feature in one or more assemblies
|
|
688
|
+
|
|
689
|
+
Return features matching a query string. This command searches only in:
|
|
690
|
+
|
|
691
|
+
- Attribute *values* (not attribute names)
|
|
692
|
+
- Source field (which in fact is stored as an attribute)
|
|
693
|
+
- Feature type
|
|
694
|
+
|
|
695
|
+
The search mode is:
|
|
696
|
+
|
|
697
|
+
- Case insensitive
|
|
698
|
+
- Match only full words, but not necessarily the full value
|
|
699
|
+
- Common words are ignored. E.g. "the", "with"
|
|
700
|
+
|
|
701
|
+
For example, given this feature:
|
|
702
|
+
|
|
703
|
+
chr1 example SNP 10 30 0.987 . . "someKey=Fingerprint BAC with reads"
|
|
704
|
+
|
|
705
|
+
Queries "bac" or "mRNA" return the feature. Instead these queries will NOT
|
|
706
|
+
match:
|
|
707
|
+
|
|
708
|
+
- "someKey"
|
|
709
|
+
- "with"
|
|
710
|
+
- "Finger"
|
|
711
|
+
- "chr1"
|
|
712
|
+
- "0.987"
|
|
713
|
+
|
|
714
|
+
EXAMPLES
|
|
715
|
+
Search "bac" in these assemblies:
|
|
716
|
+
|
|
717
|
+
$ apollo feature search -a mm9 mm10 -t bac
|
|
718
|
+
```
|
|
719
|
+
|
|
720
|
+
_See code: [src/commands/feature/search.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/feature/search.ts)_
|
|
721
|
+
|
|
722
|
+
## `apollo help [COMMANDS]`
|
|
723
|
+
|
|
724
|
+
Display help for apollo.
|
|
725
|
+
|
|
726
|
+
```
|
|
727
|
+
USAGE
|
|
728
|
+
$ apollo help [COMMANDS] [-n]
|
|
729
|
+
|
|
730
|
+
ARGUMENTS
|
|
731
|
+
COMMANDS Command to show help for.
|
|
732
|
+
|
|
733
|
+
FLAGS
|
|
734
|
+
-n, --nested-commands Include all nested commands in the output.
|
|
735
|
+
|
|
736
|
+
DESCRIPTION
|
|
737
|
+
Display help for apollo.
|
|
738
|
+
```
|
|
739
|
+
|
|
740
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.8/src/commands/help.ts)_
|
|
741
|
+
|
|
742
|
+
## `apollo login`
|
|
743
|
+
|
|
744
|
+
Login to Apollo
|
|
745
|
+
|
|
746
|
+
```
|
|
747
|
+
USAGE
|
|
748
|
+
$ apollo login [--profile <value>] [--config-file <value>] [-a <value>] [-u <value>] [-p <value>] [-f]
|
|
749
|
+
[--port <value>]
|
|
750
|
+
|
|
751
|
+
FLAGS
|
|
752
|
+
-a, --address=<value> Address of Apollo server
|
|
753
|
+
-f, --force Force re-authentication even if user is already logged in
|
|
754
|
+
-p, --password=<value> Password for <username>
|
|
755
|
+
-u, --username=<value> Username for root login
|
|
756
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
757
|
+
--port=<value> [default: 3000] Get token by listening to this port number (usually this is >= 1024 and <
|
|
758
|
+
65536)
|
|
759
|
+
--profile=<value> Use credentials from this profile
|
|
760
|
+
|
|
761
|
+
DESCRIPTION
|
|
762
|
+
Login to Apollo
|
|
763
|
+
|
|
764
|
+
Use the provided credentials to obtain and save the token to access Apollo. Once
|
|
765
|
+
the token for the given profile has been saved in the configuration file, users
|
|
766
|
+
do not normally need to execute this command again unless the token has expired.
|
|
767
|
+
To setup a new profile use "apollo config"
|
|
768
|
+
|
|
769
|
+
EXAMPLES
|
|
770
|
+
The most basic and probably most typical usage is to login using the default
|
|
771
|
+
profile in configuration file:
|
|
772
|
+
|
|
773
|
+
$ apollo login
|
|
774
|
+
|
|
775
|
+
Login with a different profile:
|
|
776
|
+
|
|
777
|
+
$ apollo login --profile my-profile
|
|
778
|
+
```
|
|
779
|
+
|
|
780
|
+
_See code: [src/commands/login.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/login.ts)_
|
|
781
|
+
|
|
782
|
+
## `apollo logout`
|
|
783
|
+
|
|
784
|
+
Logout of Apollo
|
|
785
|
+
|
|
786
|
+
```
|
|
787
|
+
USAGE
|
|
788
|
+
$ apollo logout [--profile <value>] [--config-file <value>]
|
|
789
|
+
|
|
790
|
+
FLAGS
|
|
791
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
792
|
+
--profile=<value> Use credentials from this profile
|
|
793
|
+
|
|
794
|
+
DESCRIPTION
|
|
795
|
+
Logout of Apollo
|
|
796
|
+
|
|
797
|
+
Logout by removing the access token from the selected profile
|
|
798
|
+
|
|
799
|
+
EXAMPLES
|
|
800
|
+
Logout default profile:
|
|
801
|
+
|
|
802
|
+
$ apollo logout
|
|
803
|
+
|
|
804
|
+
Logout selected profile
|
|
805
|
+
|
|
806
|
+
$ apollo logout --profile my-profile
|
|
807
|
+
```
|
|
808
|
+
|
|
809
|
+
_See code: [src/commands/logout.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/logout.ts)_
|
|
810
|
+
|
|
811
|
+
## `apollo refseq get`
|
|
812
|
+
|
|
813
|
+
Get reference sequences
|
|
814
|
+
|
|
815
|
+
```
|
|
816
|
+
USAGE
|
|
817
|
+
$ apollo refseq get [--profile <value>] [--config-file <value>] [-a <value>]
|
|
818
|
+
|
|
819
|
+
FLAGS
|
|
820
|
+
-a, --assembly=<value>... Get reference sequences for these assembly names or IDs; use - to read it from stdin
|
|
821
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
822
|
+
--profile=<value> Use credentials from this profile
|
|
823
|
+
|
|
824
|
+
DESCRIPTION
|
|
825
|
+
Get reference sequences
|
|
826
|
+
|
|
827
|
+
Output the reference sequences in one or more assemblies in json format. This
|
|
828
|
+
command returns the sequence characteristics (e.g., name, ID, etc), not the DNA
|
|
829
|
+
sequences. Use `assembly sequence` for that.
|
|
830
|
+
|
|
831
|
+
EXAMPLES
|
|
832
|
+
All sequences in the database:
|
|
833
|
+
|
|
834
|
+
$ apollo refseq get
|
|
835
|
+
|
|
836
|
+
Only sequences for these assemblies:
|
|
837
|
+
|
|
838
|
+
$ apollo refseq get -a mm9 mm10
|
|
839
|
+
```
|
|
840
|
+
|
|
841
|
+
_See code: [src/commands/refseq/get.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/refseq/get.ts)_
|
|
842
|
+
|
|
843
|
+
## `apollo status`
|
|
844
|
+
|
|
845
|
+
View authentication status
|
|
846
|
+
|
|
847
|
+
```
|
|
848
|
+
USAGE
|
|
849
|
+
$ apollo status [--profile <value>] [--config-file <value>]
|
|
850
|
+
|
|
851
|
+
FLAGS
|
|
852
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
853
|
+
--profile=<value> Use credentials from this profile
|
|
854
|
+
|
|
855
|
+
DESCRIPTION
|
|
856
|
+
View authentication status
|
|
857
|
+
|
|
858
|
+
This command returns "<profile>: Logged in" if the selected profile has an
|
|
859
|
+
access token and "<profile>: Logged out" otherwise. Note that this command does
|
|
860
|
+
not check the validity of the access token.
|
|
861
|
+
```
|
|
862
|
+
|
|
863
|
+
_See code: [src/commands/status.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/status.ts)_
|
|
864
|
+
|
|
865
|
+
## `apollo user get`
|
|
866
|
+
|
|
867
|
+
Get list of users
|
|
868
|
+
|
|
869
|
+
```
|
|
870
|
+
USAGE
|
|
871
|
+
$ apollo user get [--profile <value>] [--config-file <value>] [-u <value>] [-r <value>]
|
|
872
|
+
|
|
873
|
+
FLAGS
|
|
874
|
+
-r, --role=<value> Get users with this role
|
|
875
|
+
-u, --username=<value> Find this username
|
|
876
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
877
|
+
--profile=<value> Use credentials from this profile
|
|
878
|
+
|
|
879
|
+
DESCRIPTION
|
|
880
|
+
Get list of users
|
|
881
|
+
|
|
882
|
+
If set, filters username and role must be both satisfied to return an entry
|
|
883
|
+
|
|
884
|
+
EXAMPLES
|
|
885
|
+
By username:
|
|
886
|
+
|
|
887
|
+
$ apollo user get -u Guest
|
|
888
|
+
|
|
889
|
+
By role:
|
|
890
|
+
|
|
891
|
+
$ apollo user get -r admin
|
|
892
|
+
|
|
893
|
+
Use jq for more control:
|
|
894
|
+
|
|
895
|
+
$ apollo user get | jq '.[] | select(.createdAt > "2024-03-18")'
|
|
896
|
+
```
|
|
897
|
+
|
|
898
|
+
_See code: [src/commands/user/get.ts](https://github.com/GMOD/Apollo3/blob/v0.1.10/packages/apollo-cli/src/commands/user/get.ts)_
|
|
899
|
+
<!-- commandsstop -->
|