@apollo-annotation/cli 0.3.9 → 0.3.11
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 +125 -35
- package/dist/commands/feature/add.d.ts +57 -0
- package/dist/commands/feature/add.js +323 -0
- package/dist/commands/feature/get-indexed-id.d.ts +17 -0
- package/dist/commands/feature/get-indexed-id.js +66 -0
- package/dist/test/test.js +194 -2
- package/oclif.manifest.json +303 -100
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ $ npm install -g @apollo-annotation/cli
|
|
|
16
16
|
$ apollo COMMAND
|
|
17
17
|
running command...
|
|
18
18
|
$ apollo (--version)
|
|
19
|
-
@apollo-annotation/cli/0.3.
|
|
19
|
+
@apollo-annotation/cli/0.3.11 linux-x64 node-v24.11.1
|
|
20
20
|
$ apollo --help [COMMAND]
|
|
21
21
|
USAGE
|
|
22
22
|
$ apollo COMMAND
|
|
@@ -38,6 +38,7 @@ USAGE
|
|
|
38
38
|
- [`apollo change get`](#apollo-change-get)
|
|
39
39
|
- [`apollo config [KEY] [VALUE]`](#apollo-config-key-value)
|
|
40
40
|
- [`apollo export gff3 ASSEMBLY`](#apollo-export-gff3-assembly)
|
|
41
|
+
- [`apollo feature add [FEATURE-JSON]`](#apollo-feature-add-feature-json)
|
|
41
42
|
- [`apollo feature add-child`](#apollo-feature-add-child)
|
|
42
43
|
- [`apollo feature check`](#apollo-feature-check)
|
|
43
44
|
- [`apollo feature copy`](#apollo-feature-copy)
|
|
@@ -48,6 +49,7 @@ USAGE
|
|
|
48
49
|
- [`apollo feature edit-type`](#apollo-feature-edit-type)
|
|
49
50
|
- [`apollo feature get`](#apollo-feature-get)
|
|
50
51
|
- [`apollo feature get-id`](#apollo-feature-get-id)
|
|
52
|
+
- [`apollo feature get-indexed-id ID`](#apollo-feature-get-indexed-id-id)
|
|
51
53
|
- [`apollo feature import INPUT-FILE`](#apollo-feature-import-input-file)
|
|
52
54
|
- [`apollo feature search`](#apollo-feature-search)
|
|
53
55
|
- [`apollo file delete`](#apollo-file-delete)
|
|
@@ -115,7 +117,7 @@ EXAMPLES
|
|
|
115
117
|
```
|
|
116
118
|
|
|
117
119
|
_See code:
|
|
118
|
-
[src/commands/assembly/add-from-fasta.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
120
|
+
[src/commands/assembly/add-from-fasta.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/assembly/add-from-fasta.ts)_
|
|
119
121
|
|
|
120
122
|
## `apollo assembly add-from-gff INPUT-FILE`
|
|
121
123
|
|
|
@@ -151,7 +153,7 @@ EXAMPLES
|
|
|
151
153
|
```
|
|
152
154
|
|
|
153
155
|
_See code:
|
|
154
|
-
[src/commands/assembly/add-from-gff.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
156
|
+
[src/commands/assembly/add-from-gff.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/assembly/add-from-gff.ts)_
|
|
155
157
|
|
|
156
158
|
## `apollo assembly check`
|
|
157
159
|
|
|
@@ -193,7 +195,7 @@ EXAMPLES
|
|
|
193
195
|
```
|
|
194
196
|
|
|
195
197
|
_See code:
|
|
196
|
-
[src/commands/assembly/check.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
198
|
+
[src/commands/assembly/check.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/assembly/check.ts)_
|
|
197
199
|
|
|
198
200
|
## `apollo assembly delete`
|
|
199
201
|
|
|
@@ -221,7 +223,7 @@ EXAMPLES
|
|
|
221
223
|
```
|
|
222
224
|
|
|
223
225
|
_See code:
|
|
224
|
-
[src/commands/assembly/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
226
|
+
[src/commands/assembly/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/assembly/delete.ts)_
|
|
225
227
|
|
|
226
228
|
## `apollo assembly get`
|
|
227
229
|
|
|
@@ -243,7 +245,7 @@ DESCRIPTION
|
|
|
243
245
|
```
|
|
244
246
|
|
|
245
247
|
_See code:
|
|
246
|
-
[src/commands/assembly/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
248
|
+
[src/commands/assembly/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/assembly/get.ts)_
|
|
247
249
|
|
|
248
250
|
## `apollo assembly sequence`
|
|
249
251
|
|
|
@@ -278,7 +280,7 @@ EXAMPLES
|
|
|
278
280
|
```
|
|
279
281
|
|
|
280
282
|
_See code:
|
|
281
|
-
[src/commands/assembly/sequence.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
283
|
+
[src/commands/assembly/sequence.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/assembly/sequence.ts)_
|
|
282
284
|
|
|
283
285
|
## `apollo change get`
|
|
284
286
|
|
|
@@ -302,7 +304,7 @@ DESCRIPTION
|
|
|
302
304
|
```
|
|
303
305
|
|
|
304
306
|
_See code:
|
|
305
|
-
[src/commands/change/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
307
|
+
[src/commands/change/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/change/get.ts)_
|
|
306
308
|
|
|
307
309
|
## `apollo config [KEY] [VALUE]`
|
|
308
310
|
|
|
@@ -354,7 +356,7 @@ EXAMPLES
|
|
|
354
356
|
```
|
|
355
357
|
|
|
356
358
|
_See code:
|
|
357
|
-
[src/commands/config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
359
|
+
[src/commands/config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/config.ts)_
|
|
358
360
|
|
|
359
361
|
## `apollo export gff3 ASSEMBLY`
|
|
360
362
|
|
|
@@ -382,7 +384,63 @@ EXAMPLES
|
|
|
382
384
|
```
|
|
383
385
|
|
|
384
386
|
_See code:
|
|
385
|
-
[src/commands/export/gff3.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
387
|
+
[src/commands/export/gff3.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/export/gff3.ts)_
|
|
388
|
+
|
|
389
|
+
## `apollo feature add [FEATURE-JSON]`
|
|
390
|
+
|
|
391
|
+
Add one or more features to Apollo
|
|
392
|
+
|
|
393
|
+
```
|
|
394
|
+
USAGE
|
|
395
|
+
$ apollo feature add [FEATURE-JSON] [--profile <value>] [--config-file <value>] [-a <value>] [-r <value> -s
|
|
396
|
+
<value> -e <value> -t <value>] [-F <value>]
|
|
397
|
+
|
|
398
|
+
ARGUMENTS
|
|
399
|
+
FEATURE-JSON Inline JSON describing the feature(s) to add. Can also be provided via stdin.
|
|
400
|
+
|
|
401
|
+
FLAGS
|
|
402
|
+
-F, --feature-json-file=<value> File with JSON describing the feature(s) to add
|
|
403
|
+
-a, --assembly=<value> Name or ID of target assembly. Not required if refseq is unique in the database
|
|
404
|
+
-e, --max=<value> End position in target reference sequence
|
|
405
|
+
-r, --refSeq=<value> Name or ID of target reference sequence
|
|
406
|
+
-s, --min=<value> Start position in target reference sequence
|
|
407
|
+
-t, --type=<value> Type of child feature
|
|
408
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
409
|
+
--profile=<value> Use credentials from this profile
|
|
410
|
+
|
|
411
|
+
DESCRIPTION
|
|
412
|
+
Add one or more features to Apollo
|
|
413
|
+
|
|
414
|
+
A single simple feature can be added using the --min, --max, etc. flags.
|
|
415
|
+
|
|
416
|
+
To add multiple features, features with more details, or features with children, you can pass in JSON via argument or
|
|
417
|
+
stdin or use the --feature-json-file options.
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
EXAMPLES
|
|
421
|
+
Add a single feature by specifying its location and type
|
|
422
|
+
|
|
423
|
+
$ apollo feature add --assembly hg19 --refSeq chr3 --min 1000 --max 5000 --type remark
|
|
424
|
+
|
|
425
|
+
Add a single feature from inline JSON
|
|
426
|
+
|
|
427
|
+
$ apollo feature add \
|
|
428
|
+
'{"assembly":"<assemblyNameOrId>","refseq":"<refSeqNameOrId>","min":1,"max":100,"type":"<featureType>"}'
|
|
429
|
+
|
|
430
|
+
Add mutilple features from stdin JSON
|
|
431
|
+
|
|
432
|
+
echo '[{"assembly":"<assemblyNameOrId>","refseq":"<refSeqNameOrId>","min":1,"max":100,"type":"<featureType>"},{" \
|
|
433
|
+
assembly":"<assemblyNameOrId>","refseq":"<refSeqNameOrId>","min":101,"max":200,"type":"<featureType>"}]' | \
|
|
434
|
+
apollo feature add
|
|
435
|
+
|
|
436
|
+
Add a feature with children from inline JSON
|
|
437
|
+
|
|
438
|
+
$ apollo feature add '{"assembly":"<assemblyNameOrId>","refseq":"<refSeqNameOrId>","min":1,"max":100,"type":"<fe \
|
|
439
|
+
atureType>","children":[{"min":1,"max":50,"type":"<featureType>"}]}'
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
_See code:
|
|
443
|
+
[src/commands/feature/add.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/add.ts)_
|
|
386
444
|
|
|
387
445
|
## `apollo feature add-child`
|
|
388
446
|
|
|
@@ -413,7 +471,7 @@ EXAMPLES
|
|
|
413
471
|
```
|
|
414
472
|
|
|
415
473
|
_See code:
|
|
416
|
-
[src/commands/feature/add-child.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
474
|
+
[src/commands/feature/add-child.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/add-child.ts)_
|
|
417
475
|
|
|
418
476
|
## `apollo feature check`
|
|
419
477
|
|
|
@@ -446,7 +504,7 @@ EXAMPLES
|
|
|
446
504
|
```
|
|
447
505
|
|
|
448
506
|
_See code:
|
|
449
|
-
[src/commands/feature/check.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
507
|
+
[src/commands/feature/check.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/check.ts)_
|
|
450
508
|
|
|
451
509
|
## `apollo feature copy`
|
|
452
510
|
|
|
@@ -477,7 +535,7 @@ EXAMPLES
|
|
|
477
535
|
```
|
|
478
536
|
|
|
479
537
|
_See code:
|
|
480
|
-
[src/commands/feature/copy.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
538
|
+
[src/commands/feature/copy.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/copy.ts)_
|
|
481
539
|
|
|
482
540
|
## `apollo feature delete`
|
|
483
541
|
|
|
@@ -501,7 +559,7 @@ DESCRIPTION
|
|
|
501
559
|
```
|
|
502
560
|
|
|
503
561
|
_See code:
|
|
504
|
-
[src/commands/feature/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
562
|
+
[src/commands/feature/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/delete.ts)_
|
|
505
563
|
|
|
506
564
|
## `apollo feature edit`
|
|
507
565
|
|
|
@@ -543,7 +601,7 @@ EXAMPLES
|
|
|
543
601
|
```
|
|
544
602
|
|
|
545
603
|
_See code:
|
|
546
|
-
[src/commands/feature/edit.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
604
|
+
[src/commands/feature/edit.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/edit.ts)_
|
|
547
605
|
|
|
548
606
|
## `apollo feature edit-attribute`
|
|
549
607
|
|
|
@@ -583,7 +641,7 @@ EXAMPLES
|
|
|
583
641
|
```
|
|
584
642
|
|
|
585
643
|
_See code:
|
|
586
|
-
[src/commands/feature/edit-attribute.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
644
|
+
[src/commands/feature/edit-attribute.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/edit-attribute.ts)_
|
|
587
645
|
|
|
588
646
|
## `apollo feature edit-coords`
|
|
589
647
|
|
|
@@ -617,7 +675,7 @@ EXAMPLES
|
|
|
617
675
|
```
|
|
618
676
|
|
|
619
677
|
_See code:
|
|
620
|
-
[src/commands/feature/edit-coords.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
678
|
+
[src/commands/feature/edit-coords.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/edit-coords.ts)_
|
|
621
679
|
|
|
622
680
|
## `apollo feature edit-type`
|
|
623
681
|
|
|
@@ -641,7 +699,7 @@ DESCRIPTION
|
|
|
641
699
|
```
|
|
642
700
|
|
|
643
701
|
_See code:
|
|
644
|
-
[src/commands/feature/edit-type.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
702
|
+
[src/commands/feature/edit-type.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/edit-type.ts)_
|
|
645
703
|
|
|
646
704
|
## `apollo feature get`
|
|
647
705
|
|
|
@@ -675,7 +733,7 @@ EXAMPLES
|
|
|
675
733
|
```
|
|
676
734
|
|
|
677
735
|
_See code:
|
|
678
|
-
[src/commands/feature/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
736
|
+
[src/commands/feature/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/get.ts)_
|
|
679
737
|
|
|
680
738
|
## `apollo feature get-id`
|
|
681
739
|
|
|
@@ -703,7 +761,39 @@ EXAMPLES
|
|
|
703
761
|
```
|
|
704
762
|
|
|
705
763
|
_See code:
|
|
706
|
-
[src/commands/feature/get-id.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
764
|
+
[src/commands/feature/get-id.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/get-id.ts)_
|
|
765
|
+
|
|
766
|
+
## `apollo feature get-indexed-id ID`
|
|
767
|
+
|
|
768
|
+
Get features given an indexed identifier
|
|
769
|
+
|
|
770
|
+
```
|
|
771
|
+
USAGE
|
|
772
|
+
$ apollo feature get-indexed-id ID [--profile <value>] [--config-file <value>] [-a <value>] [--topLevel]
|
|
773
|
+
|
|
774
|
+
ARGUMENTS
|
|
775
|
+
ID Indexed identifier to search for
|
|
776
|
+
|
|
777
|
+
FLAGS
|
|
778
|
+
-a, --assembly=<value>... Assembly names or IDs to search; use "-" to read it from stdin. If omitted search all
|
|
779
|
+
assemblies
|
|
780
|
+
--config-file=<value> Use this config file (mostly for testing)
|
|
781
|
+
--profile=<value> Use credentials from this profile
|
|
782
|
+
--topLevel Return the top-level parent of the feature instead of the feature itself
|
|
783
|
+
|
|
784
|
+
DESCRIPTION
|
|
785
|
+
Get features given an indexed identifier
|
|
786
|
+
|
|
787
|
+
Get features that match a given indexed identifier, such as the ID of a feature from an imported GFF3 file
|
|
788
|
+
|
|
789
|
+
EXAMPLES
|
|
790
|
+
Get features for this indexed identifier:
|
|
791
|
+
|
|
792
|
+
$ apollo feature get-indexed-id -i abc...zyz def...foo
|
|
793
|
+
```
|
|
794
|
+
|
|
795
|
+
_See code:
|
|
796
|
+
[src/commands/feature/get-indexed-id.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/get-indexed-id.ts)_
|
|
707
797
|
|
|
708
798
|
## `apollo feature import INPUT-FILE`
|
|
709
799
|
|
|
@@ -734,7 +824,7 @@ EXAMPLES
|
|
|
734
824
|
```
|
|
735
825
|
|
|
736
826
|
_See code:
|
|
737
|
-
[src/commands/feature/import.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
827
|
+
[src/commands/feature/import.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/import.ts)_
|
|
738
828
|
|
|
739
829
|
## `apollo feature search`
|
|
740
830
|
|
|
@@ -785,7 +875,7 @@ EXAMPLES
|
|
|
785
875
|
```
|
|
786
876
|
|
|
787
877
|
_See code:
|
|
788
|
-
[src/commands/feature/search.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
878
|
+
[src/commands/feature/search.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/feature/search.ts)_
|
|
789
879
|
|
|
790
880
|
## `apollo file delete`
|
|
791
881
|
|
|
@@ -812,7 +902,7 @@ EXAMPLES
|
|
|
812
902
|
```
|
|
813
903
|
|
|
814
904
|
_See code:
|
|
815
|
-
[src/commands/file/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
905
|
+
[src/commands/file/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/file/delete.ts)_
|
|
816
906
|
|
|
817
907
|
## `apollo file download`
|
|
818
908
|
|
|
@@ -840,7 +930,7 @@ EXAMPLES
|
|
|
840
930
|
```
|
|
841
931
|
|
|
842
932
|
_See code:
|
|
843
|
-
[src/commands/file/download.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
933
|
+
[src/commands/file/download.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/file/download.ts)_
|
|
844
934
|
|
|
845
935
|
## `apollo file get`
|
|
846
936
|
|
|
@@ -867,7 +957,7 @@ EXAMPLES
|
|
|
867
957
|
```
|
|
868
958
|
|
|
869
959
|
_See code:
|
|
870
|
-
[src/commands/file/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
960
|
+
[src/commands/file/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/file/get.ts)_
|
|
871
961
|
|
|
872
962
|
## `apollo file upload INPUT-FILE`
|
|
873
963
|
|
|
@@ -904,7 +994,7 @@ EXAMPLES
|
|
|
904
994
|
```
|
|
905
995
|
|
|
906
996
|
_See code:
|
|
907
|
-
[src/commands/file/upload.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
997
|
+
[src/commands/file/upload.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/file/upload.ts)_
|
|
908
998
|
|
|
909
999
|
## `apollo help [COMMANDS]`
|
|
910
1000
|
|
|
@@ -970,7 +1060,7 @@ EXAMPLES
|
|
|
970
1060
|
```
|
|
971
1061
|
|
|
972
1062
|
_See code:
|
|
973
|
-
[src/commands/jbrowse/desktop.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1063
|
+
[src/commands/jbrowse/desktop.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/jbrowse/desktop.ts)_
|
|
974
1064
|
|
|
975
1065
|
## `apollo jbrowse get-config`
|
|
976
1066
|
|
|
@@ -996,7 +1086,7 @@ EXAMPLES
|
|
|
996
1086
|
```
|
|
997
1087
|
|
|
998
1088
|
_See code:
|
|
999
|
-
[src/commands/jbrowse/get-config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1089
|
+
[src/commands/jbrowse/get-config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/jbrowse/get-config.ts)_
|
|
1000
1090
|
|
|
1001
1091
|
## `apollo jbrowse set-config INPUTFILE`
|
|
1002
1092
|
|
|
@@ -1025,7 +1115,7 @@ EXAMPLES
|
|
|
1025
1115
|
```
|
|
1026
1116
|
|
|
1027
1117
|
_See code:
|
|
1028
|
-
[src/commands/jbrowse/set-config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1118
|
+
[src/commands/jbrowse/set-config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/jbrowse/set-config.ts)_
|
|
1029
1119
|
|
|
1030
1120
|
## `apollo login`
|
|
1031
1121
|
|
|
@@ -1064,7 +1154,7 @@ EXAMPLES
|
|
|
1064
1154
|
```
|
|
1065
1155
|
|
|
1066
1156
|
_See code:
|
|
1067
|
-
[src/commands/login.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1157
|
+
[src/commands/login.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/login.ts)_
|
|
1068
1158
|
|
|
1069
1159
|
## `apollo logout`
|
|
1070
1160
|
|
|
@@ -1094,7 +1184,7 @@ EXAMPLES
|
|
|
1094
1184
|
```
|
|
1095
1185
|
|
|
1096
1186
|
_See code:
|
|
1097
|
-
[src/commands/logout.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1187
|
+
[src/commands/logout.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/logout.ts)_
|
|
1098
1188
|
|
|
1099
1189
|
## `apollo refseq add-alias INPUT-FILE`
|
|
1100
1190
|
|
|
@@ -1125,7 +1215,7 @@ EXAMPLES
|
|
|
1125
1215
|
```
|
|
1126
1216
|
|
|
1127
1217
|
_See code:
|
|
1128
|
-
[src/commands/refseq/add-alias.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1218
|
+
[src/commands/refseq/add-alias.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/refseq/add-alias.ts)_
|
|
1129
1219
|
|
|
1130
1220
|
## `apollo refseq get`
|
|
1131
1221
|
|
|
@@ -1157,7 +1247,7 @@ EXAMPLES
|
|
|
1157
1247
|
```
|
|
1158
1248
|
|
|
1159
1249
|
_See code:
|
|
1160
|
-
[src/commands/refseq/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1250
|
+
[src/commands/refseq/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/refseq/get.ts)_
|
|
1161
1251
|
|
|
1162
1252
|
## `apollo status`
|
|
1163
1253
|
|
|
@@ -1179,7 +1269,7 @@ DESCRIPTION
|
|
|
1179
1269
|
```
|
|
1180
1270
|
|
|
1181
1271
|
_See code:
|
|
1182
|
-
[src/commands/status.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1272
|
+
[src/commands/status.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/status.ts)_
|
|
1183
1273
|
|
|
1184
1274
|
## `apollo user get`
|
|
1185
1275
|
|
|
@@ -1215,6 +1305,6 @@ EXAMPLES
|
|
|
1215
1305
|
```
|
|
1216
1306
|
|
|
1217
1307
|
_See code:
|
|
1218
|
-
[src/commands/user/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1308
|
+
[src/commands/user/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.11/packages/apollo-cli/src/commands/user/get.ts)_
|
|
1219
1309
|
|
|
1220
1310
|
<!-- commandsstop -->
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type AnnotationFeatureSnapshot } from '@apollo-annotation/mst';
|
|
2
|
+
import { type SerializedAddFeatureChange } from '@apollo-annotation/shared';
|
|
3
|
+
import { type Response } from 'undici';
|
|
4
|
+
import { BaseCommand } from '../../baseCommand.js';
|
|
5
|
+
interface BaseFeatureJSON {
|
|
6
|
+
min: number;
|
|
7
|
+
max: number;
|
|
8
|
+
type: string;
|
|
9
|
+
children?: BaseFeatureJSON[];
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
interface FeatureJSON extends BaseFeatureJSON {
|
|
13
|
+
assembly?: string;
|
|
14
|
+
refSeq: string;
|
|
15
|
+
}
|
|
16
|
+
export default class Add extends BaseCommand<typeof Add> {
|
|
17
|
+
static summary: string;
|
|
18
|
+
static description: string;
|
|
19
|
+
static examples: {
|
|
20
|
+
description: string;
|
|
21
|
+
command: string;
|
|
22
|
+
}[];
|
|
23
|
+
static flags: {
|
|
24
|
+
assembly: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
25
|
+
refSeq: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
26
|
+
min: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
27
|
+
max: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
28
|
+
type: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
29
|
+
'feature-json-file': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
30
|
+
};
|
|
31
|
+
static args: {
|
|
32
|
+
'feature-json': import("@oclif/core/lib/interfaces/parser.js").Arg<string | undefined, Record<string, unknown>>;
|
|
33
|
+
};
|
|
34
|
+
run(): Promise<void>;
|
|
35
|
+
addFeatureFromJSON(featureJSONString: string): Promise<void>;
|
|
36
|
+
makeFeatureSnapshot(details: FeatureJSON, ids: string[]): AnnotationFeatureSnapshot;
|
|
37
|
+
addFeatureFromFlags(refSeqNameOrId: string, min: number, max: number, type: string, assemblyNameOrId?: string): Promise<void>;
|
|
38
|
+
getAssemblyAndRefSeqIds(refSeqNameOrId: string, assemblyNameOrId?: string): Promise<[string, string]>;
|
|
39
|
+
getAssembly(assemblyNameOrId: string): Promise<{
|
|
40
|
+
_id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
aliases?: string[];
|
|
43
|
+
}>;
|
|
44
|
+
getRefSeq(refSeqNameOrId: string, assemblyId?: string): Promise<{
|
|
45
|
+
_id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
assembly: string;
|
|
48
|
+
aliases?: string[];
|
|
49
|
+
}>;
|
|
50
|
+
submitChange(change: SerializedAddFeatureChange): Promise<void>;
|
|
51
|
+
fetch(endpoint: string, options?: {
|
|
52
|
+
method?: string;
|
|
53
|
+
body?: string;
|
|
54
|
+
headers?: Record<string, string>;
|
|
55
|
+
}): Promise<Response>;
|
|
56
|
+
}
|
|
57
|
+
export {};
|