@apollo-annotation/cli 1.1.1 → 1.1.2

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.
Files changed (161) hide show
  1. package/README.md +133 -87
  2. package/dist/ApolloConf.d.ts.map +1 -1
  3. package/dist/ApolloConf.js +14 -3
  4. package/dist/ApolloConf.js.map +1 -1
  5. package/dist/baseCommand.d.ts +37 -1
  6. package/dist/baseCommand.d.ts.map +1 -1
  7. package/dist/baseCommand.js +226 -9
  8. package/dist/baseCommand.js.map +1 -1
  9. package/dist/commands/assembly/add-from-fasta.d.ts +8 -8
  10. package/dist/commands/assembly/add-from-fasta.d.ts.map +1 -1
  11. package/dist/commands/assembly/add-from-fasta.js +20 -16
  12. package/dist/commands/assembly/add-from-fasta.js.map +1 -1
  13. package/dist/commands/assembly/add-from-gff.d.ts +5 -5
  14. package/dist/commands/assembly/add-from-gff.d.ts.map +1 -1
  15. package/dist/commands/assembly/add-from-gff.js +2 -4
  16. package/dist/commands/assembly/add-from-gff.js.map +1 -1
  17. package/dist/commands/assembly/check.d.ts +3 -3
  18. package/dist/commands/assembly/check.d.ts.map +1 -1
  19. package/dist/commands/assembly/check.js +10 -48
  20. package/dist/commands/assembly/check.js.map +1 -1
  21. package/dist/commands/assembly/delete.d.ts +2 -2
  22. package/dist/commands/assembly/delete.d.ts.map +1 -1
  23. package/dist/commands/assembly/delete.js +4 -5
  24. package/dist/commands/assembly/delete.js.map +1 -1
  25. package/dist/commands/assembly/get.d.ts +1 -1
  26. package/dist/commands/assembly/get.d.ts.map +1 -1
  27. package/dist/commands/assembly/get.js +3 -5
  28. package/dist/commands/assembly/get.js.map +1 -1
  29. package/dist/commands/assembly/sequence.d.ts +4 -4
  30. package/dist/commands/assembly/sequence.d.ts.map +1 -1
  31. package/dist/commands/assembly/sequence.js +9 -29
  32. package/dist/commands/assembly/sequence.js.map +1 -1
  33. package/dist/commands/change/get.d.ts +1 -1
  34. package/dist/commands/change/get.d.ts.map +1 -1
  35. package/dist/commands/change/get.js +3 -5
  36. package/dist/commands/change/get.js.map +1 -1
  37. package/dist/commands/config.d.ts +4 -4
  38. package/dist/commands/config.d.ts.map +1 -1
  39. package/dist/commands/config.js +12 -19
  40. package/dist/commands/config.js.map +1 -1
  41. package/dist/commands/export/gff3.d.ts +2 -2
  42. package/dist/commands/export/gff3.d.ts.map +1 -1
  43. package/dist/commands/export/gff3.js +4 -26
  44. package/dist/commands/export/gff3.js.map +1 -1
  45. package/dist/commands/feature/add-child.d.ts +4 -4
  46. package/dist/commands/feature/add-child.d.ts.map +1 -1
  47. package/dist/commands/feature/add-child.js +6 -32
  48. package/dist/commands/feature/add-child.js.map +1 -1
  49. package/dist/commands/feature/add.d.ts +7 -18
  50. package/dist/commands/feature/add.d.ts.map +1 -1
  51. package/dist/commands/feature/add.js +4 -57
  52. package/dist/commands/feature/add.js.map +1 -1
  53. package/dist/commands/feature/check.d.ts +3 -2
  54. package/dist/commands/feature/check.d.ts.map +1 -1
  55. package/dist/commands/feature/check.js +16 -35
  56. package/dist/commands/feature/check.js.map +1 -1
  57. package/dist/commands/feature/copy.d.ts +4 -4
  58. package/dist/commands/feature/copy.d.ts.map +1 -1
  59. package/dist/commands/feature/copy.js +6 -32
  60. package/dist/commands/feature/copy.js.map +1 -1
  61. package/dist/commands/feature/delete.d.ts +4 -3
  62. package/dist/commands/feature/delete.d.ts.map +1 -1
  63. package/dist/commands/feature/delete.js +25 -46
  64. package/dist/commands/feature/delete.js.map +1 -1
  65. package/dist/commands/feature/edit-attribute.d.ts +4 -4
  66. package/dist/commands/feature/edit-attribute.d.ts.map +1 -1
  67. package/dist/commands/feature/edit-attribute.js +4 -24
  68. package/dist/commands/feature/edit-attribute.js.map +1 -1
  69. package/dist/commands/feature/edit-coords.d.ts +3 -3
  70. package/dist/commands/feature/edit-coords.d.ts.map +1 -1
  71. package/dist/commands/feature/edit-coords.js +4 -24
  72. package/dist/commands/feature/edit-coords.js.map +1 -1
  73. package/dist/commands/feature/edit-type.d.ts +2 -2
  74. package/dist/commands/feature/edit-type.d.ts.map +1 -1
  75. package/dist/commands/feature/edit-type.js +4 -24
  76. package/dist/commands/feature/edit-type.js.map +1 -1
  77. package/dist/commands/feature/edit.d.ts +1 -1
  78. package/dist/commands/feature/edit.d.ts.map +1 -1
  79. package/dist/commands/feature/edit.js +2 -18
  80. package/dist/commands/feature/edit.js.map +1 -1
  81. package/dist/commands/feature/get-id.d.ts +1 -1
  82. package/dist/commands/feature/get-id.d.ts.map +1 -1
  83. package/dist/commands/feature/get-id.js +5 -15
  84. package/dist/commands/feature/get-id.js.map +1 -1
  85. package/dist/commands/feature/get-indexed-id.d.ts +3 -3
  86. package/dist/commands/feature/get-indexed-id.d.ts.map +1 -1
  87. package/dist/commands/feature/get-indexed-id.js +3 -20
  88. package/dist/commands/feature/get-indexed-id.js.map +1 -1
  89. package/dist/commands/feature/get.d.ts +4 -4
  90. package/dist/commands/feature/get.d.ts.map +1 -1
  91. package/dist/commands/feature/get.js +4 -21
  92. package/dist/commands/feature/get.js.map +1 -1
  93. package/dist/commands/feature/import.d.ts +4 -4
  94. package/dist/commands/feature/import.d.ts.map +1 -1
  95. package/dist/commands/feature/import.js +4 -21
  96. package/dist/commands/feature/import.js.map +1 -1
  97. package/dist/commands/feature/search.d.ts +2 -2
  98. package/dist/commands/feature/search.d.ts.map +1 -1
  99. package/dist/commands/feature/search.js +9 -28
  100. package/dist/commands/feature/search.js.map +1 -1
  101. package/dist/commands/file/delete.d.ts +2 -1
  102. package/dist/commands/file/delete.d.ts.map +1 -1
  103. package/dist/commands/file/delete.js +12 -21
  104. package/dist/commands/file/delete.js.map +1 -1
  105. package/dist/commands/file/download.d.ts +2 -2
  106. package/dist/commands/file/download.d.ts.map +1 -1
  107. package/dist/commands/file/download.js +3 -7
  108. package/dist/commands/file/download.js.map +1 -1
  109. package/dist/commands/file/get.d.ts +1 -1
  110. package/dist/commands/file/get.d.ts.map +1 -1
  111. package/dist/commands/file/get.js +2 -4
  112. package/dist/commands/file/get.js.map +1 -1
  113. package/dist/commands/file/upload.d.ts +4 -4
  114. package/dist/commands/file/upload.d.ts.map +1 -1
  115. package/dist/commands/file/upload.js +3 -7
  116. package/dist/commands/file/upload.js.map +1 -1
  117. package/dist/commands/jbrowse/desktop.d.ts +4 -4
  118. package/dist/commands/jbrowse/get-config.d.ts.map +1 -1
  119. package/dist/commands/jbrowse/get-config.js +1 -7
  120. package/dist/commands/jbrowse/get-config.js.map +1 -1
  121. package/dist/commands/jbrowse/set-config.d.ts +1 -1
  122. package/dist/commands/jbrowse/set-config.d.ts.map +1 -1
  123. package/dist/commands/jbrowse/set-config.js +1 -19
  124. package/dist/commands/jbrowse/set-config.js.map +1 -1
  125. package/dist/commands/login.d.ts +5 -5
  126. package/dist/commands/login.d.ts.map +1 -1
  127. package/dist/commands/login.js +8 -7
  128. package/dist/commands/login.js.map +1 -1
  129. package/dist/commands/logout.d.ts.map +1 -1
  130. package/dist/commands/logout.js +2 -6
  131. package/dist/commands/logout.js.map +1 -1
  132. package/dist/commands/refseq/add-alias.d.ts +2 -2
  133. package/dist/commands/refseq/add-alias.d.ts.map +1 -1
  134. package/dist/commands/refseq/add-alias.js +2 -21
  135. package/dist/commands/refseq/add-alias.js.map +1 -1
  136. package/dist/commands/refseq/get.d.ts +1 -1
  137. package/dist/commands/refseq/get.d.ts.map +1 -1
  138. package/dist/commands/refseq/get.js +3 -5
  139. package/dist/commands/refseq/get.js.map +1 -1
  140. package/dist/commands/status.d.ts.map +1 -1
  141. package/dist/commands/status.js +2 -6
  142. package/dist/commands/status.js.map +1 -1
  143. package/dist/commands/user/get.d.ts +2 -2
  144. package/dist/commands/user/get.d.ts.map +1 -1
  145. package/dist/commands/user/get.js +1 -4
  146. package/dist/commands/user/get.js.map +1 -1
  147. package/dist/fileCommand.d.ts +2 -1
  148. package/dist/fileCommand.d.ts.map +1 -1
  149. package/dist/fileCommand.js +18 -11
  150. package/dist/fileCommand.js.map +1 -1
  151. package/dist/test/test.js +154 -30
  152. package/dist/test/test.js.map +1 -1
  153. package/dist/test/utils.d.ts.map +1 -1
  154. package/dist/test/utils.js +15 -2
  155. package/dist/test/utils.js.map +1 -1
  156. package/dist/utils.d.ts +1 -21
  157. package/dist/utils.d.ts.map +1 -1
  158. package/dist/utils.js +1 -234
  159. package/dist/utils.js.map +1 -1
  160. package/oclif.manifest.json +820 -532
  161. package/package.json +14 -15
@@ -43,6 +43,14 @@
43
43
  "multiple": false,
44
44
  "type": "option"
45
45
  },
46
+ "timeout": {
47
+ "description": "Timeout for each request to the server",
48
+ "name": "timeout",
49
+ "default": "1h",
50
+ "hasDynamicHelp": false,
51
+ "multiple": false,
52
+ "type": "option"
53
+ },
46
54
  "get-config-file": {
47
55
  "description": "Return the path to the config file and exit (this file may not exist yet)",
48
56
  "name": "get-config-file",
@@ -95,6 +103,14 @@
95
103
  "multiple": false,
96
104
  "type": "option"
97
105
  },
106
+ "timeout": {
107
+ "description": "Timeout for each request to the server",
108
+ "name": "timeout",
109
+ "default": "1h",
110
+ "hasDynamicHelp": false,
111
+ "multiple": false,
112
+ "type": "option"
113
+ },
98
114
  "address": {
99
115
  "char": "a",
100
116
  "description": "Address of Apollo server",
@@ -182,6 +198,14 @@
182
198
  "hasDynamicHelp": false,
183
199
  "multiple": false,
184
200
  "type": "option"
201
+ },
202
+ "timeout": {
203
+ "description": "Timeout for each request to the server",
204
+ "name": "timeout",
205
+ "default": "1h",
206
+ "hasDynamicHelp": false,
207
+ "multiple": false,
208
+ "type": "option"
185
209
  }
186
210
  },
187
211
  "hasDynamicHelp": false,
@@ -218,67 +242,30 @@
218
242
  "hasDynamicHelp": false,
219
243
  "multiple": false,
220
244
  "type": "option"
221
- }
222
- },
223
- "hasDynamicHelp": false,
224
- "hiddenAliases": [],
225
- "id": "status",
226
- "pluginAlias": "@apollo-annotation/cli",
227
- "pluginName": "@apollo-annotation/cli",
228
- "pluginType": "core",
229
- "strict": true,
230
- "summary": "View authentication status",
231
- "enableJsonFlag": false,
232
- "isESM": true,
233
- "relativePath": [
234
- "dist",
235
- "commands",
236
- "status.js"
237
- ]
238
- },
239
- "change:get": {
240
- "aliases": [],
241
- "args": {},
242
- "description": "Return the change log in json format. Note that when an assembly is deleted the link between common name and ID is lost (it can still be recovered by inspecting the change log but at present this task is left to the user). In such cases you need to use the assembly ID.",
243
- "flags": {
244
- "profile": {
245
- "description": "Use credentials from this profile",
246
- "name": "profile",
247
- "hasDynamicHelp": false,
248
- "multiple": false,
249
- "type": "option"
250
245
  },
251
- "config-file": {
252
- "description": "Use this config file (mostly for testing)",
253
- "name": "config-file",
246
+ "timeout": {
247
+ "description": "Timeout for each request to the server",
248
+ "name": "timeout",
249
+ "default": "1h",
254
250
  "hasDynamicHelp": false,
255
251
  "multiple": false,
256
252
  "type": "option"
257
- },
258
- "assembly": {
259
- "char": "a",
260
- "description": "Get changes only for these assembly names or IDs (but see description)",
261
- "name": "assembly",
262
- "hasDynamicHelp": false,
263
- "multiple": true,
264
- "type": "option"
265
253
  }
266
254
  },
267
255
  "hasDynamicHelp": false,
268
256
  "hiddenAliases": [],
269
- "id": "change:get",
257
+ "id": "status",
270
258
  "pluginAlias": "@apollo-annotation/cli",
271
259
  "pluginName": "@apollo-annotation/cli",
272
260
  "pluginType": "core",
273
261
  "strict": true,
274
- "summary": "Get list of changes",
262
+ "summary": "View authentication status",
275
263
  "enableJsonFlag": false,
276
264
  "isESM": true,
277
265
  "relativePath": [
278
266
  "dist",
279
267
  "commands",
280
- "change",
281
- "get.js"
268
+ "status.js"
282
269
  ]
283
270
  },
284
271
  "assembly:add-from-fasta": {
@@ -320,6 +307,14 @@
320
307
  "multiple": false,
321
308
  "type": "option"
322
309
  },
310
+ "timeout": {
311
+ "description": "Timeout for each request to the server",
312
+ "name": "timeout",
313
+ "default": "1h",
314
+ "hasDynamicHelp": false,
315
+ "multiple": false,
316
+ "type": "option"
317
+ },
323
318
  "assembly": {
324
319
  "char": "a",
325
320
  "description": "Name for this assembly. Use the file name if omitted",
@@ -428,6 +423,14 @@
428
423
  "multiple": false,
429
424
  "type": "option"
430
425
  },
426
+ "timeout": {
427
+ "description": "Timeout for each request to the server",
428
+ "name": "timeout",
429
+ "default": "1h",
430
+ "hasDynamicHelp": false,
431
+ "multiple": false,
432
+ "type": "option"
433
+ },
431
434
  "assembly": {
432
435
  "char": "a",
433
436
  "description": "Name for this assembly. Use the file name if omitted",
@@ -510,6 +513,14 @@
510
513
  "multiple": false,
511
514
  "type": "option"
512
515
  },
516
+ "timeout": {
517
+ "description": "Timeout for each request to the server",
518
+ "name": "timeout",
519
+ "default": "1h",
520
+ "hasDynamicHelp": false,
521
+ "multiple": false,
522
+ "type": "option"
523
+ },
513
524
  "assembly": {
514
525
  "char": "a",
515
526
  "description": "Manage checks in this assembly",
@@ -576,6 +587,14 @@
576
587
  "multiple": false,
577
588
  "type": "option"
578
589
  },
590
+ "timeout": {
591
+ "description": "Timeout for each request to the server",
592
+ "name": "timeout",
593
+ "default": "1h",
594
+ "hasDynamicHelp": false,
595
+ "multiple": false,
596
+ "type": "option"
597
+ },
579
598
  "assembly": {
580
599
  "char": "a",
581
600
  "description": "Assembly names or IDs to delete",
@@ -629,6 +648,14 @@
629
648
  "multiple": false,
630
649
  "type": "option"
631
650
  },
651
+ "timeout": {
652
+ "description": "Timeout for each request to the server",
653
+ "name": "timeout",
654
+ "default": "1h",
655
+ "hasDynamicHelp": false,
656
+ "multiple": false,
657
+ "type": "option"
658
+ },
632
659
  "assembly": {
633
660
  "char": "a",
634
661
  "description": "Get assemblies in this list of names or IDs",
@@ -684,6 +711,14 @@
684
711
  "multiple": false,
685
712
  "type": "option"
686
713
  },
714
+ "timeout": {
715
+ "description": "Timeout for each request to the server",
716
+ "name": "timeout",
717
+ "default": "1h",
718
+ "hasDynamicHelp": false,
719
+ "multiple": false,
720
+ "type": "option"
721
+ },
687
722
  "assembly": {
688
723
  "char": "a",
689
724
  "description": "Find input reference sequence in this assembly",
@@ -766,6 +801,14 @@
766
801
  "multiple": false,
767
802
  "type": "option"
768
803
  },
804
+ "timeout": {
805
+ "description": "Timeout for each request to the server",
806
+ "name": "timeout",
807
+ "default": "1h",
808
+ "hasDynamicHelp": false,
809
+ "multiple": false,
810
+ "type": "option"
811
+ },
769
812
  "include-fasta": {
770
813
  "description": "Include fasta sequence in output",
771
814
  "name": "include-fasta",
@@ -789,16 +832,10 @@
789
832
  "gff3.js"
790
833
  ]
791
834
  },
792
- "feature:add-child": {
835
+ "change:get": {
793
836
  "aliases": [],
794
837
  "args": {},
795
- "description": "See the other commands under `apollo feature` to retrive the parent ID of interest and to populate the child feature with attributes.",
796
- "examples": [
797
- {
798
- "description": "Add an exon at genomic coordinates 10..20 to this feature ID:",
799
- "command": "<%= config.bin %> <%= command.id %> -i 660...73f -t exon -s 10 -e 20"
800
- }
801
- ],
838
+ "description": "Return the change log in json format. Note that when an assembly is deleted the link between common name and ID is lost (it can still be recovered by inspecting the change log but at present this task is left to the user). In such cases you need to use the assembly ID.",
802
839
  "flags": {
803
840
  "profile": {
804
841
  "description": "Use credentials from this profile",
@@ -814,85 +851,48 @@
814
851
  "multiple": false,
815
852
  "type": "option"
816
853
  },
817
- "feature-id": {
818
- "char": "i",
819
- "description": "Add a child to this feature ID; use - to read it from stdin",
820
- "name": "feature-id",
821
- "default": "-",
822
- "hasDynamicHelp": false,
823
- "multiple": false,
824
- "type": "option"
825
- },
826
- "start": {
827
- "char": "s",
828
- "description": "Start coordinate of the child feature (1-based)",
829
- "name": "start",
830
- "required": true,
831
- "hasDynamicHelp": false,
832
- "multiple": false,
833
- "type": "option"
834
- },
835
- "end": {
836
- "char": "e",
837
- "description": "End coordinate of the child feature (1-based)",
838
- "name": "end",
839
- "required": true,
854
+ "timeout": {
855
+ "description": "Timeout for each request to the server",
856
+ "name": "timeout",
857
+ "default": "1h",
840
858
  "hasDynamicHelp": false,
841
859
  "multiple": false,
842
860
  "type": "option"
843
861
  },
844
- "type": {
845
- "char": "t",
846
- "description": "Type of child feature",
847
- "name": "type",
848
- "required": true,
862
+ "assembly": {
863
+ "char": "a",
864
+ "description": "Get changes only for these assembly names or IDs (but see description)",
865
+ "name": "assembly",
849
866
  "hasDynamicHelp": false,
850
- "multiple": false,
867
+ "multiple": true,
851
868
  "type": "option"
852
869
  }
853
870
  },
854
871
  "hasDynamicHelp": false,
855
872
  "hiddenAliases": [],
856
- "id": "feature:add-child",
873
+ "id": "change:get",
857
874
  "pluginAlias": "@apollo-annotation/cli",
858
875
  "pluginName": "@apollo-annotation/cli",
859
876
  "pluginType": "core",
860
877
  "strict": true,
861
- "summary": "Add a child feature (e.g. add an exon to an mRNA)",
878
+ "summary": "Get list of changes",
862
879
  "enableJsonFlag": false,
863
880
  "isESM": true,
864
881
  "relativePath": [
865
882
  "dist",
866
883
  "commands",
867
- "feature",
868
- "add-child.js"
884
+ "change",
885
+ "get.js"
869
886
  ]
870
887
  },
871
- "feature:add": {
888
+ "file:delete": {
872
889
  "aliases": [],
873
- "args": {
874
- "feature-json": {
875
- "description": "Inline JSON describing the feature(s) to add. Can also be provided via stdin.",
876
- "name": "feature-json"
877
- }
878
- },
879
- "description": "A single simple feature can be added using the --min, --max, etc. flags.\n\nTo add multiple features, features with more details, or features with children, you can pass in JSON via argument or stdin or use the --feature-json-file options.\n",
890
+ "args": {},
891
+ "description": "Deleted files are printed to stdout. See also `apollo file get` to list the files on the server",
880
892
  "examples": [
881
893
  {
882
- "description": "Add a single feature by specifying its location and type",
883
- "command": "<%= config.bin %> <%= command.id %> --assembly hg19 --refSeq chr3 --min 1000 --max 5000 --type remark"
884
- },
885
- {
886
- "description": "Add a single feature from inline JSON",
887
- "command": "<%= config.bin %> <%= command.id %> '{\"assembly\":\"<assemblyNameOrId>\",\"refseq\":\"<refSeqNameOrId>\",\"min\":1,\"max\":100,\"type\":\"<featureType>\"}'"
888
- },
889
- {
890
- "description": "Add mutilple features from stdin JSON",
891
- "command": "echo '[{\"assembly\":\"<assemblyNameOrId>\",\"refseq\":\"<refSeqNameOrId>\",\"min\":1,\"max\":100,\"type\":\"<featureType>\"},{\"assembly\":\"<assemblyNameOrId>\",\"refseq\":\"<refSeqNameOrId>\",\"min\":101,\"max\":200,\"type\":\"<featureType>\"}]' | <%= config.bin %> <%= command.id %>"
892
- },
893
- {
894
- "description": "Add a feature with children from inline JSON",
895
- "command": "<%= config.bin %> <%= command.id %> '{\"assembly\":\"<assemblyNameOrId>\",\"refseq\":\"<refSeqNameOrId>\",\"min\":1,\"max\":100,\"type\":\"<featureType>\",\"children\":[{\"min\":1,\"max\":50,\"type\":\"<featureType>\"}]}'"
894
+ "description": "Delete file multiple files:",
895
+ "command": "<%= config.bin %> <%= command.id %> -i 123...abc xyz...789"
896
896
  }
897
897
  ],
898
898
  "flags": {
@@ -910,116 +910,51 @@
910
910
  "multiple": false,
911
911
  "type": "option"
912
912
  },
913
- "assembly": {
914
- "char": "a",
915
- "description": "Name or ID of target assembly. Not required if refseq is unique in the database",
916
- "name": "assembly",
917
- "hasDynamicHelp": false,
918
- "multiple": false,
919
- "type": "option"
920
- },
921
- "refSeq": {
922
- "char": "r",
923
- "dependsOn": [
924
- "min",
925
- "max",
926
- "type"
927
- ],
928
- "description": "Name or ID of target reference sequence",
929
- "exclusive": [
930
- "feature-json-file"
931
- ],
932
- "name": "refSeq",
933
- "hasDynamicHelp": false,
934
- "multiple": false,
935
- "type": "option"
936
- },
937
- "min": {
938
- "char": "s",
939
- "dependsOn": [
940
- "refSeq",
941
- "max",
942
- "type"
943
- ],
944
- "description": "Start position in target reference sequence",
945
- "exclusive": [
946
- "feature-json-file"
947
- ],
948
- "name": "min",
949
- "hasDynamicHelp": false,
950
- "multiple": false,
951
- "type": "option"
952
- },
953
- "max": {
954
- "char": "e",
955
- "dependsOn": [
956
- "refSeq",
957
- "min",
958
- "type"
959
- ],
960
- "description": "End position in target reference sequence",
961
- "exclusive": [
962
- "feature-json-file"
963
- ],
964
- "name": "max",
913
+ "timeout": {
914
+ "description": "Timeout for each request to the server",
915
+ "name": "timeout",
916
+ "default": "1h",
965
917
  "hasDynamicHelp": false,
966
918
  "multiple": false,
967
919
  "type": "option"
968
920
  },
969
- "type": {
970
- "char": "t",
971
- "dependsOn": [
972
- "refSeq",
973
- "min",
974
- "max"
975
- ],
976
- "description": "Type of child feature",
977
- "exclusive": [
978
- "feature-json-file"
921
+ "file-id": {
922
+ "char": "i",
923
+ "description": "IDs of the files to delete",
924
+ "name": "file-id",
925
+ "default": [
926
+ "-"
979
927
  ],
980
- "name": "type",
981
- "hasDynamicHelp": false,
982
- "multiple": false,
983
- "type": "option"
984
- },
985
- "feature-json-file": {
986
- "char": "F",
987
- "description": "File with JSON describing the feature(s) to add",
988
- "name": "feature-json-file",
989
928
  "hasDynamicHelp": false,
990
- "multiple": false,
929
+ "multiple": true,
991
930
  "type": "option"
992
931
  }
993
932
  },
994
933
  "hasDynamicHelp": false,
995
934
  "hiddenAliases": [],
996
- "id": "feature:add",
935
+ "id": "file:delete",
997
936
  "pluginAlias": "@apollo-annotation/cli",
998
937
  "pluginName": "@apollo-annotation/cli",
999
938
  "pluginType": "core",
1000
939
  "strict": true,
1001
- "summary": "Add one or more features to Apollo",
940
+ "summary": "Delete files from the Apollo server",
1002
941
  "enableJsonFlag": false,
1003
942
  "isESM": true,
1004
943
  "relativePath": [
1005
944
  "dist",
1006
945
  "commands",
1007
- "feature",
1008
- "add.js"
946
+ "file",
947
+ "delete.js"
1009
948
  ]
1010
949
  },
1011
- "feature:check": {
950
+ "file:download": {
1012
951
  "aliases": [],
1013
952
  "args": {},
1014
- "description": "Use this command to view which features fail checks along with the reason for failing.Use `apollo assembly check` for managing which checks should be applied to an assembly",
953
+ "description": "See also `apollo file get` to list the files on the server",
1015
954
  "examples": [
1016
955
  {
1017
- "description": "Get all check results in the database:",
1018
- "command": "<%= config.bin %> <%= command.id %>"
1019
- },
1020
- {
1021
- "description": "Get check results for assembly hg19:",
1022
- "command": "<%= config.bin %> <%= command.id %> -a hg19"
956
+ "description": "Download file with id xyz",
957
+ "command": "<%= config.bin %> <%= command.id %> -i xyz -o genome.fa"
1023
958
  }
1024
959
  ],
1025
960
  "flags": {
@@ -1037,18 +972,27 @@
1037
972
  "multiple": false,
1038
973
  "type": "option"
1039
974
  },
1040
- "feature-id": {
975
+ "timeout": {
976
+ "description": "Timeout for each request to the server",
977
+ "name": "timeout",
978
+ "default": "1h",
979
+ "hasDynamicHelp": false,
980
+ "multiple": false,
981
+ "type": "option"
982
+ },
983
+ "file-id": {
1041
984
  "char": "i",
1042
- "description": "Get checks for these feature identifiers",
1043
- "name": "feature-id",
985
+ "description": "ID of the file to download",
986
+ "name": "file-id",
987
+ "default": "-",
1044
988
  "hasDynamicHelp": false,
1045
- "multiple": true,
989
+ "multiple": false,
1046
990
  "type": "option"
1047
991
  },
1048
- "assembly": {
1049
- "char": "a",
1050
- "description": "Get checks for this assembly",
1051
- "name": "assembly",
992
+ "output": {
993
+ "char": "o",
994
+ "description": "Write output to this file or \"-\" for stdout. Default to the name of the uploaded file.",
995
+ "name": "output",
1052
996
  "hasDynamicHelp": false,
1053
997
  "multiple": false,
1054
998
  "type": "option"
@@ -1056,29 +1000,29 @@
1056
1000
  },
1057
1001
  "hasDynamicHelp": false,
1058
1002
  "hiddenAliases": [],
1059
- "id": "feature:check",
1003
+ "id": "file:download",
1060
1004
  "pluginAlias": "@apollo-annotation/cli",
1061
1005
  "pluginName": "@apollo-annotation/cli",
1062
1006
  "pluginType": "core",
1063
1007
  "strict": true,
1064
- "summary": "Get check results",
1008
+ "summary": "Download a file from the Apollo server",
1065
1009
  "enableJsonFlag": false,
1066
1010
  "isESM": true,
1067
1011
  "relativePath": [
1068
1012
  "dist",
1069
1013
  "commands",
1070
- "feature",
1071
- "check.js"
1014
+ "file",
1015
+ "download.js"
1072
1016
  ]
1073
1017
  },
1074
- "feature:copy": {
1018
+ "file:get": {
1075
1019
  "aliases": [],
1076
1020
  "args": {},
1077
- "description": "The feature may be copied to the same or to a different assembly. The destination reference sequence may be selected by name only if unique in the database or by name and assembly or by identifier.",
1021
+ "description": "Print to stdout the list of files in json format",
1078
1022
  "examples": [
1079
1023
  {
1080
- "description": "Copy this feature ID to chr1:100 in assembly hg38:",
1081
- "command": "<%= config.bin %> <%= command.id %> -i 6605826fbd0eee691f83e73f -r chr1 -s 100 -a hg38"
1024
+ "description": "Get files by id:",
1025
+ "command": "<%= config.bin %> <%= command.id %> -i xyz abc"
1082
1026
  }
1083
1027
  ],
1084
1028
  "flags": {
@@ -1096,64 +1040,56 @@
1096
1040
  "multiple": false,
1097
1041
  "type": "option"
1098
1042
  },
1099
- "feature-id": {
1100
- "char": "i",
1101
- "description": "Feature ID to copy to; use - to read it from stdin",
1102
- "name": "feature-id",
1103
- "default": "-",
1104
- "hasDynamicHelp": false,
1105
- "multiple": false,
1106
- "type": "option"
1107
- },
1108
- "refseq": {
1109
- "char": "r",
1110
- "description": "Name or ID of target reference sequence",
1111
- "name": "refseq",
1112
- "required": true,
1113
- "hasDynamicHelp": false,
1114
- "multiple": false,
1115
- "type": "option"
1116
- },
1117
- "start": {
1118
- "char": "s",
1119
- "description": "Start position in target reference sequence",
1120
- "name": "start",
1121
- "required": true,
1043
+ "timeout": {
1044
+ "description": "Timeout for each request to the server",
1045
+ "name": "timeout",
1046
+ "default": "1h",
1122
1047
  "hasDynamicHelp": false,
1123
1048
  "multiple": false,
1124
1049
  "type": "option"
1125
1050
  },
1126
- "assembly": {
1127
- "char": "a",
1128
- "description": "Name or ID of target assembly. Not required if refseq is unique in the database",
1129
- "name": "assembly",
1130
- "required": false,
1051
+ "file-id": {
1052
+ "char": "i",
1053
+ "description": "Get files matching this IDs",
1054
+ "name": "file-id",
1131
1055
  "hasDynamicHelp": false,
1132
- "multiple": false,
1056
+ "multiple": true,
1133
1057
  "type": "option"
1134
1058
  }
1135
1059
  },
1136
1060
  "hasDynamicHelp": false,
1137
1061
  "hiddenAliases": [],
1138
- "id": "feature:copy",
1062
+ "id": "file:get",
1139
1063
  "pluginAlias": "@apollo-annotation/cli",
1140
1064
  "pluginName": "@apollo-annotation/cli",
1141
1065
  "pluginType": "core",
1142
1066
  "strict": true,
1143
- "summary": "Copy a feature to another location",
1067
+ "summary": "Get list of files uploaded to the Apollo server",
1144
1068
  "enableJsonFlag": false,
1145
1069
  "isESM": true,
1146
1070
  "relativePath": [
1147
1071
  "dist",
1148
1072
  "commands",
1149
- "feature",
1150
- "copy.js"
1073
+ "file",
1074
+ "get.js"
1151
1075
  ]
1152
1076
  },
1153
- "feature:delete": {
1077
+ "file:upload": {
1154
1078
  "aliases": [],
1155
- "args": {},
1156
- "description": "Note that deleting a child feature after deleting its parent will result in an error unless you set -f/--force.",
1079
+ "args": {
1080
+ "input-file": {
1081
+ "description": "Local file to upload",
1082
+ "name": "input-file",
1083
+ "required": true
1084
+ }
1085
+ },
1086
+ "description": "This command only uploads a file and returns the corresponding file id.\n To add an assembly based on this file or to upload & add an assembly in a single pass see `apollo assembly add-from-fasta` and `add-from-gff`",
1087
+ "examples": [
1088
+ {
1089
+ "description": "Upload local file, type auto-detected:",
1090
+ "command": "<%= config.bin %> <%= command.id %> genome.fa > file.json"
1091
+ }
1092
+ ],
1157
1093
  "flags": {
1158
1094
  "profile": {
1159
1095
  "description": "Use credentials from this profile",
@@ -1169,65 +1105,74 @@
1169
1105
  "multiple": false,
1170
1106
  "type": "option"
1171
1107
  },
1172
- "feature-id": {
1173
- "char": "i",
1174
- "description": "Feature IDs to delete",
1175
- "name": "feature-id",
1176
- "default": [
1177
- "-"
1178
- ],
1108
+ "timeout": {
1109
+ "description": "Timeout for each request to the server",
1110
+ "name": "timeout",
1111
+ "default": "1h",
1179
1112
  "hasDynamicHelp": false,
1180
- "multiple": true,
1113
+ "multiple": false,
1181
1114
  "type": "option"
1182
1115
  },
1183
- "force": {
1184
- "char": "f",
1185
- "description": "Ignore non-existing features",
1186
- "name": "force",
1116
+ "type": {
1117
+ "char": "t",
1118
+ "description": "Set file type or autodetected it if not set.\n NB: There is no check for whether the file complies to this type",
1119
+ "name": "type",
1120
+ "hasDynamicHelp": false,
1121
+ "multiple": false,
1122
+ "options": [
1123
+ "text/x-fasta",
1124
+ "text/x-gff3",
1125
+ "application/x-bgzip-fasta",
1126
+ "text/x-fai",
1127
+ "application/x-gzi"
1128
+ ],
1129
+ "type": "option"
1130
+ },
1131
+ "gzip": {
1132
+ "char": "z",
1133
+ "description": "Override autodetection and instruct that input is gzip compressed",
1134
+ "exclusive": [
1135
+ "decompressed"
1136
+ ],
1137
+ "name": "gzip",
1187
1138
  "allowNo": false,
1188
1139
  "type": "boolean"
1189
1140
  },
1190
- "dry-run": {
1191
- "char": "n",
1192
- "description": "Only show what would be delete",
1193
- "name": "dry-run",
1141
+ "decompressed": {
1142
+ "char": "d",
1143
+ "description": "Override autodetection and instruct that input is decompressed",
1144
+ "exclusive": [
1145
+ "gzip"
1146
+ ],
1147
+ "name": "decompressed",
1194
1148
  "allowNo": false,
1195
1149
  "type": "boolean"
1196
1150
  }
1197
1151
  },
1198
1152
  "hasDynamicHelp": false,
1199
1153
  "hiddenAliases": [],
1200
- "id": "feature:delete",
1154
+ "id": "file:upload",
1201
1155
  "pluginAlias": "@apollo-annotation/cli",
1202
1156
  "pluginName": "@apollo-annotation/cli",
1203
1157
  "pluginType": "core",
1204
1158
  "strict": true,
1205
- "summary": "Delete one or more features by ID",
1206
- "enableJsonFlag": false,
1159
+ "summary": "Upload a local file to the Apollo server",
1207
1160
  "isESM": true,
1208
1161
  "relativePath": [
1209
1162
  "dist",
1210
1163
  "commands",
1211
- "feature",
1212
- "delete.js"
1164
+ "file",
1165
+ "upload.js"
1213
1166
  ]
1214
1167
  },
1215
- "feature:edit-attribute": {
1168
+ "feature:add-child": {
1216
1169
  "aliases": [],
1217
1170
  "args": {},
1218
- "description": "Be aware that there is no checking whether attributes names and values are valid. For example, you can create non-unique ID attributes or you can set gene ontology terms to non-existing terms",
1171
+ "description": "See the other commands under `apollo feature` to retrive the parent ID of interest and to populate the child feature with attributes.",
1219
1172
  "examples": [
1220
1173
  {
1221
- "description": "Add attribute \"domains\" with a list of values:",
1222
- "command": "<%= config.bin %> <%= command.id %> -i 66...3f -a domains -v ABC PLD"
1223
- },
1224
- {
1225
- "description": "Print values in \"domains\" as json array:",
1226
- "command": "<%= config.bin %> <%= command.id %> -i 66...3f -a domains"
1227
- },
1228
- {
1229
- "description": "Delete attribute \"domains\"",
1230
- "command": "<%= config.bin %> <%= command.id %> -i 66...3f -a domains -d"
1174
+ "description": "Add an exon at genomic coordinates 10..20 to this feature ID:",
1175
+ "command": "<%= config.bin %> <%= command.id %> -i 660...73f -t exon -s 10 -e 20"
1231
1176
  }
1232
1177
  ],
1233
1178
  "flags": {
@@ -1245,69 +1190,93 @@
1245
1190
  "multiple": false,
1246
1191
  "type": "option"
1247
1192
  },
1193
+ "timeout": {
1194
+ "description": "Timeout for each request to the server",
1195
+ "name": "timeout",
1196
+ "default": "1h",
1197
+ "hasDynamicHelp": false,
1198
+ "multiple": false,
1199
+ "type": "option"
1200
+ },
1248
1201
  "feature-id": {
1249
1202
  "char": "i",
1250
- "description": "Feature ID to edit or \"-\" to read it from stdin",
1203
+ "description": "Add a child to this feature ID; use - to read it from stdin",
1251
1204
  "name": "feature-id",
1252
1205
  "default": "-",
1253
1206
  "hasDynamicHelp": false,
1254
1207
  "multiple": false,
1255
1208
  "type": "option"
1256
1209
  },
1257
- "attribute": {
1258
- "char": "a",
1259
- "description": "Attribute key to add or edit",
1260
- "name": "attribute",
1210
+ "start": {
1211
+ "char": "s",
1212
+ "description": "Start coordinate of the child feature (1-based)",
1213
+ "name": "start",
1261
1214
  "required": true,
1262
1215
  "hasDynamicHelp": false,
1263
1216
  "multiple": false,
1264
1217
  "type": "option"
1265
1218
  },
1266
- "value": {
1267
- "char": "v",
1268
- "description": "New attribute value. Separated mutliple values by space to them as a list. If unset return current value",
1269
- "name": "value",
1219
+ "end": {
1220
+ "char": "e",
1221
+ "description": "End coordinate of the child feature (1-based)",
1222
+ "name": "end",
1223
+ "required": true,
1270
1224
  "hasDynamicHelp": false,
1271
- "multiple": true,
1225
+ "multiple": false,
1272
1226
  "type": "option"
1273
1227
  },
1274
- "delete": {
1275
- "char": "d",
1276
- "description": "Delete this attribute",
1277
- "name": "delete",
1278
- "allowNo": false,
1279
- "type": "boolean"
1228
+ "type": {
1229
+ "char": "t",
1230
+ "description": "Type of child feature",
1231
+ "name": "type",
1232
+ "required": true,
1233
+ "hasDynamicHelp": false,
1234
+ "multiple": false,
1235
+ "type": "option"
1280
1236
  }
1281
1237
  },
1282
1238
  "hasDynamicHelp": false,
1283
1239
  "hiddenAliases": [],
1284
- "id": "feature:edit-attribute",
1240
+ "id": "feature:add-child",
1285
1241
  "pluginAlias": "@apollo-annotation/cli",
1286
1242
  "pluginName": "@apollo-annotation/cli",
1287
1243
  "pluginType": "core",
1288
1244
  "strict": true,
1289
- "summary": "Add, edit, or view a feature attribute",
1245
+ "summary": "Add a child feature (e.g. add an exon to an mRNA)",
1290
1246
  "enableJsonFlag": false,
1291
1247
  "isESM": true,
1292
1248
  "relativePath": [
1293
1249
  "dist",
1294
1250
  "commands",
1295
1251
  "feature",
1296
- "edit-attribute.js"
1252
+ "add-child.js"
1297
1253
  ]
1298
1254
  },
1299
- "feature:edit-coords": {
1255
+ "feature:add": {
1300
1256
  "aliases": [],
1301
- "args": {},
1302
- "description": "If editing a child feature that new coordinates must be within the parent's coordinates.To get the identifier of the feature to edit consider using `apollo feature get` or `apollo feature search`",
1257
+ "args": {
1258
+ "feature-json": {
1259
+ "description": "Inline JSON describing the feature(s) to add. Can also be provided via stdin.",
1260
+ "name": "feature-json"
1261
+ }
1262
+ },
1263
+ "description": "A single simple feature can be added using the --min, --max, etc. flags.\n\nTo add multiple features, features with more details, or features with children, you can pass in JSON via argument or stdin or use the --feature-json-file options.\n",
1303
1264
  "examples": [
1304
1265
  {
1305
- "description": "Edit start and end:",
1306
- "command": "<%= config.bin %> <%= command.id %> -i abc...xyz -s 10 -e 1000"
1266
+ "description": "Add a single feature by specifying its location and type",
1267
+ "command": "<%= config.bin %> <%= command.id %> --assembly hg19 --refSeq chr3 --min 1000 --max 5000 --type remark"
1307
1268
  },
1308
1269
  {
1309
- "description": "Edit end and leave start as it is:",
1310
- "command": "<%= config.bin %> <%= command.id %> -i abc...xyz -e 2000"
1270
+ "description": "Add a single feature from inline JSON",
1271
+ "command": "<%= config.bin %> <%= command.id %> '{\"assembly\":\"<assemblyNameOrId>\",\"refseq\":\"<refSeqNameOrId>\",\"min\":1,\"max\":100,\"type\":\"<featureType>\"}'"
1272
+ },
1273
+ {
1274
+ "description": "Add mutilple features from stdin JSON",
1275
+ "command": "echo '[{\"assembly\":\"<assemblyNameOrId>\",\"refseq\":\"<refSeqNameOrId>\",\"min\":1,\"max\":100,\"type\":\"<featureType>\"},{\"assembly\":\"<assemblyNameOrId>\",\"refseq\":\"<refSeqNameOrId>\",\"min\":101,\"max\":200,\"type\":\"<featureType>\"}]' | <%= config.bin %> <%= command.id %>"
1276
+ },
1277
+ {
1278
+ "description": "Add a feature with children from inline JSON",
1279
+ "command": "<%= config.bin %> <%= command.id %> '{\"assembly\":\"<assemblyNameOrId>\",\"refseq\":\"<refSeqNameOrId>\",\"min\":1,\"max\":100,\"type\":\"<featureType>\",\"children\":[{\"min\":1,\"max\":50,\"type\":\"<featureType>\"}]}'"
1311
1280
  }
1312
1281
  ],
1313
1282
  "flags": {
@@ -1325,27 +1294,90 @@
1325
1294
  "multiple": false,
1326
1295
  "type": "option"
1327
1296
  },
1328
- "feature-id": {
1329
- "char": "i",
1330
- "description": "Feature ID to edit or \"-\" to read it from stdin",
1331
- "name": "feature-id",
1332
- "default": "-",
1297
+ "timeout": {
1298
+ "description": "Timeout for each request to the server",
1299
+ "name": "timeout",
1300
+ "default": "1h",
1333
1301
  "hasDynamicHelp": false,
1334
1302
  "multiple": false,
1335
1303
  "type": "option"
1336
1304
  },
1337
- "start": {
1305
+ "assembly": {
1306
+ "char": "a",
1307
+ "description": "Name or ID of target assembly. Not required if refseq is unique in the database",
1308
+ "name": "assembly",
1309
+ "hasDynamicHelp": false,
1310
+ "multiple": false,
1311
+ "type": "option"
1312
+ },
1313
+ "refSeq": {
1314
+ "char": "r",
1315
+ "dependsOn": [
1316
+ "min",
1317
+ "max",
1318
+ "type"
1319
+ ],
1320
+ "description": "Name or ID of target reference sequence",
1321
+ "exclusive": [
1322
+ "feature-json-file"
1323
+ ],
1324
+ "name": "refSeq",
1325
+ "hasDynamicHelp": false,
1326
+ "multiple": false,
1327
+ "type": "option"
1328
+ },
1329
+ "min": {
1338
1330
  "char": "s",
1339
- "description": "New start coordinate (1-based)",
1340
- "name": "start",
1331
+ "dependsOn": [
1332
+ "refSeq",
1333
+ "max",
1334
+ "type"
1335
+ ],
1336
+ "description": "Start position in target reference sequence",
1337
+ "exclusive": [
1338
+ "feature-json-file"
1339
+ ],
1340
+ "name": "min",
1341
1341
  "hasDynamicHelp": false,
1342
1342
  "multiple": false,
1343
1343
  "type": "option"
1344
1344
  },
1345
- "end": {
1345
+ "max": {
1346
1346
  "char": "e",
1347
- "description": "New end coordinate (1-based)",
1348
- "name": "end",
1347
+ "dependsOn": [
1348
+ "refSeq",
1349
+ "min",
1350
+ "type"
1351
+ ],
1352
+ "description": "End position in target reference sequence",
1353
+ "exclusive": [
1354
+ "feature-json-file"
1355
+ ],
1356
+ "name": "max",
1357
+ "hasDynamicHelp": false,
1358
+ "multiple": false,
1359
+ "type": "option"
1360
+ },
1361
+ "type": {
1362
+ "char": "t",
1363
+ "dependsOn": [
1364
+ "refSeq",
1365
+ "min",
1366
+ "max"
1367
+ ],
1368
+ "description": "Type of child feature",
1369
+ "exclusive": [
1370
+ "feature-json-file"
1371
+ ],
1372
+ "name": "type",
1373
+ "hasDynamicHelp": false,
1374
+ "multiple": false,
1375
+ "type": "option"
1376
+ },
1377
+ "feature-json-file": {
1378
+ "char": "F",
1379
+ "description": "File with JSON describing the feature(s) to add",
1380
+ "name": "feature-json-file",
1349
1381
  "hasDynamicHelp": false,
1350
1382
  "multiple": false,
1351
1383
  "type": "option"
@@ -1353,25 +1385,35 @@
1353
1385
  },
1354
1386
  "hasDynamicHelp": false,
1355
1387
  "hiddenAliases": [],
1356
- "id": "feature:edit-coords",
1388
+ "id": "feature:add",
1357
1389
  "pluginAlias": "@apollo-annotation/cli",
1358
1390
  "pluginName": "@apollo-annotation/cli",
1359
1391
  "pluginType": "core",
1360
1392
  "strict": true,
1361
- "summary": "Edit feature start and/or end coordinates",
1393
+ "summary": "Add one or more features to Apollo",
1362
1394
  "enableJsonFlag": false,
1363
1395
  "isESM": true,
1364
1396
  "relativePath": [
1365
1397
  "dist",
1366
1398
  "commands",
1367
1399
  "feature",
1368
- "edit-coords.js"
1400
+ "add.js"
1369
1401
  ]
1370
1402
  },
1371
- "feature:edit-type": {
1403
+ "feature:check": {
1372
1404
  "aliases": [],
1373
1405
  "args": {},
1374
- "description": "Feature type is column 3 in gff format.It must be a valid sequence ontology term although but the valifdity of the new term is not checked.",
1406
+ "description": "Use this command to view which features fail checks along with the reason for failing.Use `apollo assembly check` for managing which checks should be applied to an assembly",
1407
+ "examples": [
1408
+ {
1409
+ "description": "Get all check results in the database:",
1410
+ "command": "<%= config.bin %> <%= command.id %>"
1411
+ },
1412
+ {
1413
+ "description": "Get check results for assembly hg19:",
1414
+ "command": "<%= config.bin %> <%= command.id %> -a hg19"
1415
+ }
1416
+ ],
1375
1417
  "flags": {
1376
1418
  "profile": {
1377
1419
  "description": "Use credentials from this profile",
@@ -1387,19 +1429,26 @@
1387
1429
  "multiple": false,
1388
1430
  "type": "option"
1389
1431
  },
1432
+ "timeout": {
1433
+ "description": "Timeout for each request to the server",
1434
+ "name": "timeout",
1435
+ "default": "1h",
1436
+ "hasDynamicHelp": false,
1437
+ "multiple": false,
1438
+ "type": "option"
1439
+ },
1390
1440
  "feature-id": {
1391
1441
  "char": "i",
1392
- "description": "Feature ID to edit or \"-\" to read it from stdin",
1442
+ "description": "Get checks for these feature identifiers",
1393
1443
  "name": "feature-id",
1394
- "default": "-",
1395
1444
  "hasDynamicHelp": false,
1396
- "multiple": false,
1445
+ "multiple": true,
1397
1446
  "type": "option"
1398
1447
  },
1399
- "type": {
1400
- "char": "t",
1401
- "description": "Assign feature to this type. If unset return the current type",
1402
- "name": "type",
1448
+ "assembly": {
1449
+ "char": "a",
1450
+ "description": "Get checks for this assembly",
1451
+ "name": "assembly",
1403
1452
  "hasDynamicHelp": false,
1404
1453
  "multiple": false,
1405
1454
  "type": "option"
@@ -1407,29 +1456,29 @@
1407
1456
  },
1408
1457
  "hasDynamicHelp": false,
1409
1458
  "hiddenAliases": [],
1410
- "id": "feature:edit-type",
1459
+ "id": "feature:check",
1411
1460
  "pluginAlias": "@apollo-annotation/cli",
1412
1461
  "pluginName": "@apollo-annotation/cli",
1413
1462
  "pluginType": "core",
1414
1463
  "strict": true,
1415
- "summary": "Edit or view feature type",
1464
+ "summary": "Get check results",
1416
1465
  "enableJsonFlag": false,
1417
1466
  "isESM": true,
1418
1467
  "relativePath": [
1419
1468
  "dist",
1420
1469
  "commands",
1421
1470
  "feature",
1422
- "edit-type.js"
1471
+ "check.js"
1423
1472
  ]
1424
1473
  },
1425
- "feature:edit": {
1474
+ "feature:copy": {
1426
1475
  "aliases": [],
1427
1476
  "args": {},
1428
- "description": "Edit a feature by submitting a json input with all the required attributes for Apollo to process it. This is a very low level command which most users probably do not need.\n\n Input may be a json string or a json file and it may be an array of changes. This is an example input for editing feature type:\n\n {\n \"typeName\": \"TypeChange\",\n \"changedIds\": [\n \"6613f7d22c957525d631b1cc\"\n ],\n \"assembly\": \"6613f7d1360321540a11e5ed\",\n \"featureId\": \"6613f7d22c957525d631b1cc\",\n \"oldType\": \"BAC\",\n \"newType\": \"G_quartet\"\n }",
1477
+ "description": "The feature may be copied to the same or to a different assembly. The destination reference sequence may be selected by name only if unique in the database or by name and assembly or by identifier.",
1429
1478
  "examples": [
1430
1479
  {
1431
- "description": "Editing by passing a json to stdin:",
1432
- "command": "echo '{\"typeName\": ... \"newType\": \"G_quartet\"}' | <%= config.bin %> <%= command.id %> -j -"
1480
+ "description": "Copy this feature ID to chr1:100 in assembly hg38:",
1481
+ "command": "<%= config.bin %> <%= command.id %> -i 6605826fbd0eee691f83e73f -r chr1 -s 100 -a hg38"
1433
1482
  }
1434
1483
  ],
1435
1484
  "flags": {
@@ -1447,43 +1496,72 @@
1447
1496
  "multiple": false,
1448
1497
  "type": "option"
1449
1498
  },
1450
- "json-input": {
1451
- "char": "j",
1452
- "description": "Json string or json file or \"-\" to read json from stdin",
1453
- "name": "json-input",
1499
+ "timeout": {
1500
+ "description": "Timeout for each request to the server",
1501
+ "name": "timeout",
1502
+ "default": "1h",
1503
+ "hasDynamicHelp": false,
1504
+ "multiple": false,
1505
+ "type": "option"
1506
+ },
1507
+ "feature-id": {
1508
+ "char": "i",
1509
+ "description": "Feature ID to copy to; use - to read it from stdin",
1510
+ "name": "feature-id",
1454
1511
  "default": "-",
1455
1512
  "hasDynamicHelp": false,
1456
1513
  "multiple": false,
1457
1514
  "type": "option"
1515
+ },
1516
+ "refseq": {
1517
+ "char": "r",
1518
+ "description": "Name or ID of target reference sequence",
1519
+ "name": "refseq",
1520
+ "required": true,
1521
+ "hasDynamicHelp": false,
1522
+ "multiple": false,
1523
+ "type": "option"
1524
+ },
1525
+ "start": {
1526
+ "char": "s",
1527
+ "description": "Start position in target reference sequence",
1528
+ "name": "start",
1529
+ "required": true,
1530
+ "hasDynamicHelp": false,
1531
+ "multiple": false,
1532
+ "type": "option"
1533
+ },
1534
+ "assembly": {
1535
+ "char": "a",
1536
+ "description": "Name or ID of target assembly. Not required if refseq is unique in the database",
1537
+ "name": "assembly",
1538
+ "required": false,
1539
+ "hasDynamicHelp": false,
1540
+ "multiple": false,
1541
+ "type": "option"
1458
1542
  }
1459
1543
  },
1460
1544
  "hasDynamicHelp": false,
1461
1545
  "hiddenAliases": [],
1462
- "id": "feature:edit",
1546
+ "id": "feature:copy",
1463
1547
  "pluginAlias": "@apollo-annotation/cli",
1464
1548
  "pluginName": "@apollo-annotation/cli",
1465
1549
  "pluginType": "core",
1466
1550
  "strict": true,
1467
- "summary": "Edit features using an appropiate json input",
1551
+ "summary": "Copy a feature to another location",
1468
1552
  "enableJsonFlag": false,
1469
1553
  "isESM": true,
1470
1554
  "relativePath": [
1471
1555
  "dist",
1472
1556
  "commands",
1473
1557
  "feature",
1474
- "edit.js"
1475
- ]
1476
- },
1477
- "feature:get-id": {
1478
- "aliases": [],
1479
- "args": {},
1480
- "description": "Invalid identifiers or identifiers not found in the database will be silently ignored",
1481
- "examples": [
1482
- {
1483
- "description": "Get features for these identifiers:",
1484
- "command": "<%= config.bin %> <%= command.id %> -i abc...zyz def...foo"
1485
- }
1486
- ],
1558
+ "copy.js"
1559
+ ]
1560
+ },
1561
+ "feature:delete": {
1562
+ "aliases": [],
1563
+ "args": {},
1564
+ "description": "Note that deleting a child feature after deleting its parent will result in an error unless you set -f/--force.",
1487
1565
  "flags": {
1488
1566
  "profile": {
1489
1567
  "description": "Use credentials from this profile",
@@ -1499,9 +1577,17 @@
1499
1577
  "multiple": false,
1500
1578
  "type": "option"
1501
1579
  },
1580
+ "timeout": {
1581
+ "description": "Timeout for each request to the server",
1582
+ "name": "timeout",
1583
+ "default": "1h",
1584
+ "hasDynamicHelp": false,
1585
+ "multiple": false,
1586
+ "type": "option"
1587
+ },
1502
1588
  "feature-id": {
1503
1589
  "char": "i",
1504
- "description": "Retrieves feature with these IDs. Use \"-\" to read IDs from stdin (one per line)",
1590
+ "description": "Feature IDs to delete",
1505
1591
  "name": "feature-id",
1506
1592
  "default": [
1507
1593
  "-"
@@ -1509,39 +1595,55 @@
1509
1595
  "hasDynamicHelp": false,
1510
1596
  "multiple": true,
1511
1597
  "type": "option"
1598
+ },
1599
+ "force": {
1600
+ "char": "f",
1601
+ "description": "Ignore non-existing features",
1602
+ "name": "force",
1603
+ "allowNo": false,
1604
+ "type": "boolean"
1605
+ },
1606
+ "dry-run": {
1607
+ "char": "n",
1608
+ "description": "Only show what would be delete",
1609
+ "name": "dry-run",
1610
+ "allowNo": false,
1611
+ "type": "boolean"
1512
1612
  }
1513
1613
  },
1514
1614
  "hasDynamicHelp": false,
1515
1615
  "hiddenAliases": [],
1516
- "id": "feature:get-id",
1616
+ "id": "feature:delete",
1517
1617
  "pluginAlias": "@apollo-annotation/cli",
1518
1618
  "pluginName": "@apollo-annotation/cli",
1519
1619
  "pluginType": "core",
1520
1620
  "strict": true,
1521
- "summary": "Get features given their identifiers",
1621
+ "summary": "Delete one or more features by ID",
1522
1622
  "enableJsonFlag": false,
1523
1623
  "isESM": true,
1524
1624
  "relativePath": [
1525
1625
  "dist",
1526
1626
  "commands",
1527
1627
  "feature",
1528
- "get-id.js"
1628
+ "delete.js"
1529
1629
  ]
1530
1630
  },
1531
- "feature:get-indexed-id": {
1631
+ "feature:edit-attribute": {
1532
1632
  "aliases": [],
1533
- "args": {
1534
- "id": {
1535
- "description": "Indexed identifier to search for",
1536
- "name": "id",
1537
- "required": true
1538
- }
1539
- },
1540
- "description": "Get features that match a given indexed identifier, such as the ID of a feature from an imported GFF3 file",
1633
+ "args": {},
1634
+ "description": "Be aware that there is no checking whether attributes names and values are valid. For example, you can create non-unique ID attributes or you can set gene ontology terms to non-existing terms",
1541
1635
  "examples": [
1542
1636
  {
1543
- "description": "Get features for this indexed identifier:",
1544
- "command": "<%= config.bin %> <%= command.id %> -i abc...zyz def...foo"
1637
+ "description": "Add attribute \"domains\" with a list of values:",
1638
+ "command": "<%= config.bin %> <%= command.id %> -i 66...3f -a domains -v ABC PLD"
1639
+ },
1640
+ {
1641
+ "description": "Print values in \"domains\" as json array:",
1642
+ "command": "<%= config.bin %> <%= command.id %> -i 66...3f -a domains"
1643
+ },
1644
+ {
1645
+ "description": "Delete attribute \"domains\"",
1646
+ "command": "<%= config.bin %> <%= command.id %> -i 66...3f -a domains -d"
1545
1647
  }
1546
1648
  ],
1547
1649
  "flags": {
@@ -1559,50 +1661,77 @@
1559
1661
  "multiple": false,
1560
1662
  "type": "option"
1561
1663
  },
1562
- "assembly": {
1664
+ "timeout": {
1665
+ "description": "Timeout for each request to the server",
1666
+ "name": "timeout",
1667
+ "default": "1h",
1668
+ "hasDynamicHelp": false,
1669
+ "multiple": false,
1670
+ "type": "option"
1671
+ },
1672
+ "feature-id": {
1673
+ "char": "i",
1674
+ "description": "Feature ID to edit or \"-\" to read it from stdin",
1675
+ "name": "feature-id",
1676
+ "default": "-",
1677
+ "hasDynamicHelp": false,
1678
+ "multiple": false,
1679
+ "type": "option"
1680
+ },
1681
+ "attribute": {
1563
1682
  "char": "a",
1564
- "description": "Assembly names or IDs to search; use \"-\" to read it from stdin. If omitted search all assemblies",
1565
- "name": "assembly",
1683
+ "description": "Attribute key to add or edit",
1684
+ "name": "attribute",
1685
+ "required": true,
1686
+ "hasDynamicHelp": false,
1687
+ "multiple": false,
1688
+ "type": "option"
1689
+ },
1690
+ "value": {
1691
+ "char": "v",
1692
+ "description": "New attribute value. Separated mutliple values by space to them as a list. If unset return current value",
1693
+ "name": "value",
1566
1694
  "hasDynamicHelp": false,
1567
1695
  "multiple": true,
1568
1696
  "type": "option"
1569
1697
  },
1570
- "topLevel": {
1571
- "description": "Return the top-level parent of the feature instead of the feature itself",
1572
- "name": "topLevel",
1698
+ "delete": {
1699
+ "char": "d",
1700
+ "description": "Delete this attribute",
1701
+ "name": "delete",
1573
1702
  "allowNo": false,
1574
1703
  "type": "boolean"
1575
1704
  }
1576
1705
  },
1577
1706
  "hasDynamicHelp": false,
1578
1707
  "hiddenAliases": [],
1579
- "id": "feature:get-indexed-id",
1708
+ "id": "feature:edit-attribute",
1580
1709
  "pluginAlias": "@apollo-annotation/cli",
1581
1710
  "pluginName": "@apollo-annotation/cli",
1582
1711
  "pluginType": "core",
1583
1712
  "strict": true,
1584
- "summary": "Get features given an indexed identifier",
1713
+ "summary": "Add, edit, or view a feature attribute",
1585
1714
  "enableJsonFlag": false,
1586
1715
  "isESM": true,
1587
1716
  "relativePath": [
1588
1717
  "dist",
1589
1718
  "commands",
1590
1719
  "feature",
1591
- "get-indexed-id.js"
1720
+ "edit-attribute.js"
1592
1721
  ]
1593
1722
  },
1594
- "feature:get": {
1723
+ "feature:edit-coords": {
1595
1724
  "aliases": [],
1596
1725
  "args": {},
1597
- "description": "Get features in assembly, reference sequence or genomic window",
1726
+ "description": "If editing a child feature that new coordinates must be within the parent's coordinates.To get the identifier of the feature to edit consider using `apollo feature get` or `apollo feature search`",
1598
1727
  "examples": [
1599
1728
  {
1600
- "description": "Get all features in myAssembly:",
1601
- "command": "<%= config.bin %> <%= command.id %> -a myAssembly"
1729
+ "description": "Edit start and end:",
1730
+ "command": "<%= config.bin %> <%= command.id %> -i abc...xyz -s 10 -e 1000"
1602
1731
  },
1603
1732
  {
1604
- "description": "Get features intersecting chr1:1..1000. You can omit the assembly name if there are no other reference sequences named chr1:",
1605
- "command": "<%= config.bin %> <%= command.id %> -a myAssembly -r chr1 -s 1 -e 1000"
1733
+ "description": "Edit end and leave start as it is:",
1734
+ "command": "<%= config.bin %> <%= command.id %> -i abc...xyz -e 2000"
1606
1735
  }
1607
1736
  ],
1608
1737
  "flags": {
@@ -1620,34 +1749,34 @@
1620
1749
  "multiple": false,
1621
1750
  "type": "option"
1622
1751
  },
1623
- "assembly": {
1624
- "char": "a",
1625
- "description": "Find input reference sequence in this assembly",
1626
- "name": "assembly",
1752
+ "timeout": {
1753
+ "description": "Timeout for each request to the server",
1754
+ "name": "timeout",
1755
+ "default": "1h",
1627
1756
  "hasDynamicHelp": false,
1628
1757
  "multiple": false,
1629
1758
  "type": "option"
1630
1759
  },
1631
- "refseq": {
1632
- "char": "r",
1633
- "description": "Reference sequence. If unset, query all sequences",
1634
- "name": "refseq",
1760
+ "feature-id": {
1761
+ "char": "i",
1762
+ "description": "Feature ID to edit or \"-\" to read it from stdin",
1763
+ "name": "feature-id",
1764
+ "default": "-",
1635
1765
  "hasDynamicHelp": false,
1636
1766
  "multiple": false,
1637
1767
  "type": "option"
1638
1768
  },
1639
1769
  "start": {
1640
1770
  "char": "s",
1641
- "description": "Start coordinate (1-based)",
1771
+ "description": "New start coordinate (1-based)",
1642
1772
  "name": "start",
1643
- "default": 1,
1644
1773
  "hasDynamicHelp": false,
1645
1774
  "multiple": false,
1646
1775
  "type": "option"
1647
1776
  },
1648
1777
  "end": {
1649
1778
  "char": "e",
1650
- "description": "End coordinate",
1779
+ "description": "New end coordinate (1-based)",
1651
1780
  "name": "end",
1652
1781
  "hasDynamicHelp": false,
1653
1782
  "multiple": false,
@@ -1656,34 +1785,91 @@
1656
1785
  },
1657
1786
  "hasDynamicHelp": false,
1658
1787
  "hiddenAliases": [],
1659
- "id": "feature:get",
1788
+ "id": "feature:edit-coords",
1660
1789
  "pluginAlias": "@apollo-annotation/cli",
1661
1790
  "pluginName": "@apollo-annotation/cli",
1662
1791
  "pluginType": "core",
1663
1792
  "strict": true,
1793
+ "summary": "Edit feature start and/or end coordinates",
1664
1794
  "enableJsonFlag": false,
1665
1795
  "isESM": true,
1666
1796
  "relativePath": [
1667
1797
  "dist",
1668
1798
  "commands",
1669
1799
  "feature",
1670
- "get.js"
1800
+ "edit-coords.js"
1671
1801
  ]
1672
1802
  },
1673
- "feature:import": {
1803
+ "feature:edit-type": {
1674
1804
  "aliases": [],
1675
- "args": {
1676
- "input-file": {
1677
- "description": "Input gff file",
1678
- "name": "input-file",
1679
- "required": true
1805
+ "args": {},
1806
+ "description": "Feature type is column 3 in gff format.It must be a valid sequence ontology term although but the valifdity of the new term is not checked.",
1807
+ "flags": {
1808
+ "profile": {
1809
+ "description": "Use credentials from this profile",
1810
+ "name": "profile",
1811
+ "hasDynamicHelp": false,
1812
+ "multiple": false,
1813
+ "type": "option"
1814
+ },
1815
+ "config-file": {
1816
+ "description": "Use this config file (mostly for testing)",
1817
+ "name": "config-file",
1818
+ "hasDynamicHelp": false,
1819
+ "multiple": false,
1820
+ "type": "option"
1821
+ },
1822
+ "timeout": {
1823
+ "description": "Timeout for each request to the server",
1824
+ "name": "timeout",
1825
+ "default": "1h",
1826
+ "hasDynamicHelp": false,
1827
+ "multiple": false,
1828
+ "type": "option"
1829
+ },
1830
+ "feature-id": {
1831
+ "char": "i",
1832
+ "description": "Feature ID to edit or \"-\" to read it from stdin",
1833
+ "name": "feature-id",
1834
+ "default": "-",
1835
+ "hasDynamicHelp": false,
1836
+ "multiple": false,
1837
+ "type": "option"
1838
+ },
1839
+ "type": {
1840
+ "char": "t",
1841
+ "description": "Assign feature to this type. If unset return the current type",
1842
+ "name": "type",
1843
+ "hasDynamicHelp": false,
1844
+ "multiple": false,
1845
+ "type": "option"
1680
1846
  }
1681
1847
  },
1682
- "description": "By default, features are added to the existing ones.",
1848
+ "hasDynamicHelp": false,
1849
+ "hiddenAliases": [],
1850
+ "id": "feature:edit-type",
1851
+ "pluginAlias": "@apollo-annotation/cli",
1852
+ "pluginName": "@apollo-annotation/cli",
1853
+ "pluginType": "core",
1854
+ "strict": true,
1855
+ "summary": "Edit or view feature type",
1856
+ "enableJsonFlag": false,
1857
+ "isESM": true,
1858
+ "relativePath": [
1859
+ "dist",
1860
+ "commands",
1861
+ "feature",
1862
+ "edit-type.js"
1863
+ ]
1864
+ },
1865
+ "feature:edit": {
1866
+ "aliases": [],
1867
+ "args": {},
1868
+ "description": "Edit a feature by submitting a json input with all the required attributes for Apollo to process it. This is a very low level command which most users probably do not need.\n\n Input may be a json string or a json file and it may be an array of changes. This is an example input for editing feature type:\n\n {\n \"typeName\": \"TypeChange\",\n \"changedIds\": [\n \"6613f7d22c957525d631b1cc\"\n ],\n \"assembly\": \"6613f7d1360321540a11e5ed\",\n \"featureId\": \"6613f7d22c957525d631b1cc\",\n \"oldType\": \"BAC\",\n \"newType\": \"G_quartet\"\n }",
1683
1869
  "examples": [
1684
1870
  {
1685
- "description": "Delete features in myAssembly and then import features.gff3:",
1686
- "command": "<%= config.bin %> <%= command.id %> features.gff3 -d -a myAssembly"
1871
+ "description": "Editing by passing a json to stdin:",
1872
+ "command": "echo '{\"typeName\": ... \"newType\": \"G_quartet\"}' | <%= config.bin %> <%= command.id %> -j -"
1687
1873
  }
1688
1874
  ],
1689
1875
  "flags": {
@@ -1701,53 +1887,49 @@
1701
1887
  "multiple": false,
1702
1888
  "type": "option"
1703
1889
  },
1704
- "assembly": {
1705
- "char": "a",
1706
- "description": "Import into this assembly name or assembly ID",
1707
- "name": "assembly",
1708
- "required": true,
1890
+ "timeout": {
1891
+ "description": "Timeout for each request to the server",
1892
+ "name": "timeout",
1893
+ "default": "1h",
1709
1894
  "hasDynamicHelp": false,
1710
1895
  "multiple": false,
1711
1896
  "type": "option"
1712
1897
  },
1713
- "delete-existing": {
1714
- "char": "d",
1715
- "description": "Delete existing features before importing",
1716
- "name": "delete-existing",
1717
- "allowNo": false,
1718
- "type": "boolean"
1719
- },
1720
- "no-strict": {
1721
- "description": "If any lines in the GFF3 can't be processed, skip them instead of aborting the import",
1722
- "name": "no-strict",
1723
- "allowNo": false,
1724
- "type": "boolean"
1898
+ "json-input": {
1899
+ "char": "j",
1900
+ "description": "Json string or json file or \"-\" to read json from stdin",
1901
+ "name": "json-input",
1902
+ "default": "-",
1903
+ "hasDynamicHelp": false,
1904
+ "multiple": false,
1905
+ "type": "option"
1725
1906
  }
1726
1907
  },
1727
1908
  "hasDynamicHelp": false,
1728
1909
  "hiddenAliases": [],
1729
- "id": "feature:import",
1910
+ "id": "feature:edit",
1730
1911
  "pluginAlias": "@apollo-annotation/cli",
1731
1912
  "pluginName": "@apollo-annotation/cli",
1732
1913
  "pluginType": "core",
1733
1914
  "strict": true,
1734
- "summary": "Import features from local gff file",
1915
+ "summary": "Edit features using an appropiate json input",
1916
+ "enableJsonFlag": false,
1735
1917
  "isESM": true,
1736
1918
  "relativePath": [
1737
1919
  "dist",
1738
1920
  "commands",
1739
1921
  "feature",
1740
- "import.js"
1922
+ "edit.js"
1741
1923
  ]
1742
1924
  },
1743
- "feature:search": {
1925
+ "feature:get-id": {
1744
1926
  "aliases": [],
1745
1927
  "args": {},
1746
- "description": "Return features matching a query string. This command searches only in:\n\n - Attribute *values* (not attribute names)\n - Source field (which in fact is stored as an attribute)\n - Feature type\n\n The search mode is:\n\n - Case insensitive\n - Match only full words, but not necessarily the full value\n - Common words are ignored. E.g. \"the\", \"with\"\n\n For example, given this feature:\n\n chr1 example SNP 10 30 0.987 . . \"someKey=Fingerprint BAC with reads\"\n\n Queries \"bac\" or \"mRNA\" return the feature. Instead these queries will NOT match:\n\n - \"someKey\"\n - \"with\"\n - \"Finger\"\n - \"chr1\"\n - \"0.987\"",
1928
+ "description": "Invalid identifiers or identifiers not found in the database will be silently ignored",
1747
1929
  "examples": [
1748
1930
  {
1749
- "description": "Search \"bac\" in these assemblies:",
1750
- "command": "<%= config.bin %> <%= command.id %> -a mm9 mm10 -t bac"
1931
+ "description": "Get features for these identifiers:",
1932
+ "command": "<%= config.bin %> <%= command.id %> -i abc...zyz def...foo"
1751
1933
  }
1752
1934
  ],
1753
1935
  "flags": {
@@ -1765,19 +1947,21 @@
1765
1947
  "multiple": false,
1766
1948
  "type": "option"
1767
1949
  },
1768
- "text": {
1769
- "char": "t",
1770
- "description": "Search for this text query",
1771
- "name": "text",
1772
- "required": true,
1950
+ "timeout": {
1951
+ "description": "Timeout for each request to the server",
1952
+ "name": "timeout",
1953
+ "default": "1h",
1773
1954
  "hasDynamicHelp": false,
1774
1955
  "multiple": false,
1775
1956
  "type": "option"
1776
1957
  },
1777
- "assembly": {
1778
- "char": "a",
1779
- "description": "Assembly names or IDs to search; use \"-\" to read it from stdin. If omitted search all assemblies",
1780
- "name": "assembly",
1958
+ "feature-id": {
1959
+ "char": "i",
1960
+ "description": "Retrieves feature with these IDs. Use \"-\" to read IDs from stdin (one per line)",
1961
+ "name": "feature-id",
1962
+ "default": [
1963
+ "-"
1964
+ ],
1781
1965
  "hasDynamicHelp": false,
1782
1966
  "multiple": true,
1783
1967
  "type": "option"
@@ -1785,29 +1969,35 @@
1785
1969
  },
1786
1970
  "hasDynamicHelp": false,
1787
1971
  "hiddenAliases": [],
1788
- "id": "feature:search",
1972
+ "id": "feature:get-id",
1789
1973
  "pluginAlias": "@apollo-annotation/cli",
1790
1974
  "pluginName": "@apollo-annotation/cli",
1791
1975
  "pluginType": "core",
1792
1976
  "strict": true,
1793
- "summary": "Free text search for feature in one or more assemblies",
1977
+ "summary": "Get features given their identifiers",
1794
1978
  "enableJsonFlag": false,
1795
1979
  "isESM": true,
1796
1980
  "relativePath": [
1797
1981
  "dist",
1798
1982
  "commands",
1799
1983
  "feature",
1800
- "search.js"
1984
+ "get-id.js"
1801
1985
  ]
1802
1986
  },
1803
- "file:delete": {
1987
+ "feature:get-indexed-id": {
1804
1988
  "aliases": [],
1805
- "args": {},
1806
- "description": "Deleted files are printed to stdout. See also `apollo file get` to list the files on the server",
1989
+ "args": {
1990
+ "id": {
1991
+ "description": "Indexed identifier to search for",
1992
+ "name": "id",
1993
+ "required": true
1994
+ }
1995
+ },
1996
+ "description": "Get features that match a given indexed identifier, such as the ID of a feature from an imported GFF3 file",
1807
1997
  "examples": [
1808
1998
  {
1809
- "description": "Delete file multiple files:",
1810
- "command": "<%= config.bin %> <%= command.id %> -i 123...abc xyz...789"
1999
+ "description": "Get features for this indexed identifier:",
2000
+ "command": "<%= config.bin %> <%= command.id %> -i abc...zyz def...foo"
1811
2001
  }
1812
2002
  ],
1813
2003
  "flags": {
@@ -1825,43 +2015,58 @@
1825
2015
  "multiple": false,
1826
2016
  "type": "option"
1827
2017
  },
1828
- "file-id": {
1829
- "char": "i",
1830
- "description": "IDs of the files to delete",
1831
- "name": "file-id",
1832
- "default": [
1833
- "-"
1834
- ],
2018
+ "timeout": {
2019
+ "description": "Timeout for each request to the server",
2020
+ "name": "timeout",
2021
+ "default": "1h",
2022
+ "hasDynamicHelp": false,
2023
+ "multiple": false,
2024
+ "type": "option"
2025
+ },
2026
+ "assembly": {
2027
+ "char": "a",
2028
+ "description": "Assembly names or IDs to search; use \"-\" to read it from stdin. If omitted search all assemblies",
2029
+ "name": "assembly",
1835
2030
  "hasDynamicHelp": false,
1836
2031
  "multiple": true,
1837
2032
  "type": "option"
2033
+ },
2034
+ "topLevel": {
2035
+ "description": "Return the top-level parent of the feature instead of the feature itself",
2036
+ "name": "topLevel",
2037
+ "allowNo": false,
2038
+ "type": "boolean"
1838
2039
  }
1839
2040
  },
1840
2041
  "hasDynamicHelp": false,
1841
2042
  "hiddenAliases": [],
1842
- "id": "file:delete",
2043
+ "id": "feature:get-indexed-id",
1843
2044
  "pluginAlias": "@apollo-annotation/cli",
1844
2045
  "pluginName": "@apollo-annotation/cli",
1845
2046
  "pluginType": "core",
1846
2047
  "strict": true,
1847
- "summary": "Delete files from the Apollo server",
2048
+ "summary": "Get features given an indexed identifier",
1848
2049
  "enableJsonFlag": false,
1849
2050
  "isESM": true,
1850
2051
  "relativePath": [
1851
2052
  "dist",
1852
2053
  "commands",
1853
- "file",
1854
- "delete.js"
2054
+ "feature",
2055
+ "get-indexed-id.js"
1855
2056
  ]
1856
2057
  },
1857
- "file:download": {
2058
+ "feature:get": {
1858
2059
  "aliases": [],
1859
2060
  "args": {},
1860
- "description": "See also `apollo file get` to list the files on the server",
2061
+ "description": "Get features in assembly, reference sequence or genomic window",
1861
2062
  "examples": [
1862
2063
  {
1863
- "description": "Download file with id xyz",
1864
- "command": "<%= config.bin %> <%= command.id %> -i xyz -o genome.fa"
2064
+ "description": "Get all features in myAssembly:",
2065
+ "command": "<%= config.bin %> <%= command.id %> -a myAssembly"
2066
+ },
2067
+ {
2068
+ "description": "Get features intersecting chr1:1..1000. You can omit the assembly name if there are no other reference sequences named chr1:",
2069
+ "command": "<%= config.bin %> <%= command.id %> -a myAssembly -r chr1 -s 1 -e 1000"
1865
2070
  }
1866
2071
  ],
1867
2072
  "flags": {
@@ -1879,19 +2084,43 @@
1879
2084
  "multiple": false,
1880
2085
  "type": "option"
1881
2086
  },
1882
- "file-id": {
1883
- "char": "i",
1884
- "description": "ID of the file to download",
1885
- "name": "file-id",
1886
- "default": "-",
2087
+ "timeout": {
2088
+ "description": "Timeout for each request to the server",
2089
+ "name": "timeout",
2090
+ "default": "1h",
1887
2091
  "hasDynamicHelp": false,
1888
2092
  "multiple": false,
1889
2093
  "type": "option"
1890
2094
  },
1891
- "output": {
1892
- "char": "o",
1893
- "description": "Write output to this file or \"-\" for stdout. Default to the name of the uploaded file.",
1894
- "name": "output",
2095
+ "assembly": {
2096
+ "char": "a",
2097
+ "description": "Find input reference sequence in this assembly",
2098
+ "name": "assembly",
2099
+ "hasDynamicHelp": false,
2100
+ "multiple": false,
2101
+ "type": "option"
2102
+ },
2103
+ "refseq": {
2104
+ "char": "r",
2105
+ "description": "Reference sequence. If unset, query all sequences",
2106
+ "name": "refseq",
2107
+ "hasDynamicHelp": false,
2108
+ "multiple": false,
2109
+ "type": "option"
2110
+ },
2111
+ "start": {
2112
+ "char": "s",
2113
+ "description": "Start coordinate (1-based)",
2114
+ "name": "start",
2115
+ "default": 1,
2116
+ "hasDynamicHelp": false,
2117
+ "multiple": false,
2118
+ "type": "option"
2119
+ },
2120
+ "end": {
2121
+ "char": "e",
2122
+ "description": "End coordinate",
2123
+ "name": "end",
1895
2124
  "hasDynamicHelp": false,
1896
2125
  "multiple": false,
1897
2126
  "type": "option"
@@ -1899,29 +2128,34 @@
1899
2128
  },
1900
2129
  "hasDynamicHelp": false,
1901
2130
  "hiddenAliases": [],
1902
- "id": "file:download",
2131
+ "id": "feature:get",
1903
2132
  "pluginAlias": "@apollo-annotation/cli",
1904
2133
  "pluginName": "@apollo-annotation/cli",
1905
2134
  "pluginType": "core",
1906
2135
  "strict": true,
1907
- "summary": "Download a file from the Apollo server",
1908
2136
  "enableJsonFlag": false,
1909
2137
  "isESM": true,
1910
2138
  "relativePath": [
1911
2139
  "dist",
1912
2140
  "commands",
1913
- "file",
1914
- "download.js"
2141
+ "feature",
2142
+ "get.js"
1915
2143
  ]
1916
2144
  },
1917
- "file:get": {
2145
+ "feature:import": {
1918
2146
  "aliases": [],
1919
- "args": {},
1920
- "description": "Print to stdout the list of files in json format",
2147
+ "args": {
2148
+ "input-file": {
2149
+ "description": "Input gff file",
2150
+ "name": "input-file",
2151
+ "required": true
2152
+ }
2153
+ },
2154
+ "description": "By default, features are added to the existing ones.",
1921
2155
  "examples": [
1922
2156
  {
1923
- "description": "Get files by id:",
1924
- "command": "<%= config.bin %> <%= command.id %> -i xyz abc"
2157
+ "description": "Delete features in myAssembly and then import features.gff3:",
2158
+ "command": "<%= config.bin %> <%= command.id %> features.gff3 -d -a myAssembly"
1925
2159
  }
1926
2160
  ],
1927
2161
  "flags": {
@@ -1939,46 +2173,61 @@
1939
2173
  "multiple": false,
1940
2174
  "type": "option"
1941
2175
  },
1942
- "file-id": {
1943
- "char": "i",
1944
- "description": "Get files matching this IDs",
1945
- "name": "file-id",
2176
+ "timeout": {
2177
+ "description": "Timeout for each request to the server",
2178
+ "name": "timeout",
2179
+ "default": "1h",
1946
2180
  "hasDynamicHelp": false,
1947
- "multiple": true,
2181
+ "multiple": false,
2182
+ "type": "option"
2183
+ },
2184
+ "assembly": {
2185
+ "char": "a",
2186
+ "description": "Import into this assembly name or assembly ID",
2187
+ "name": "assembly",
2188
+ "required": true,
2189
+ "hasDynamicHelp": false,
2190
+ "multiple": false,
1948
2191
  "type": "option"
2192
+ },
2193
+ "delete-existing": {
2194
+ "char": "d",
2195
+ "description": "Delete existing features before importing",
2196
+ "name": "delete-existing",
2197
+ "allowNo": false,
2198
+ "type": "boolean"
2199
+ },
2200
+ "no-strict": {
2201
+ "description": "If any lines in the GFF3 can't be processed, skip them instead of aborting the import",
2202
+ "name": "no-strict",
2203
+ "allowNo": false,
2204
+ "type": "boolean"
1949
2205
  }
1950
2206
  },
1951
2207
  "hasDynamicHelp": false,
1952
2208
  "hiddenAliases": [],
1953
- "id": "file:get",
2209
+ "id": "feature:import",
1954
2210
  "pluginAlias": "@apollo-annotation/cli",
1955
2211
  "pluginName": "@apollo-annotation/cli",
1956
2212
  "pluginType": "core",
1957
2213
  "strict": true,
1958
- "summary": "Get list of files uploaded to the Apollo server",
1959
- "enableJsonFlag": false,
2214
+ "summary": "Import features from local gff file",
1960
2215
  "isESM": true,
1961
2216
  "relativePath": [
1962
2217
  "dist",
1963
2218
  "commands",
1964
- "file",
1965
- "get.js"
2219
+ "feature",
2220
+ "import.js"
1966
2221
  ]
1967
2222
  },
1968
- "file:upload": {
2223
+ "feature:search": {
1969
2224
  "aliases": [],
1970
- "args": {
1971
- "input-file": {
1972
- "description": "Local file to upload",
1973
- "name": "input-file",
1974
- "required": true
1975
- }
1976
- },
1977
- "description": "This command only uploads a file and returns the corresponding file id.\n To add an assembly based on this file or to upload & add an assembly in a single pass see `apollo assembly add-from-fasta` and `add-from-gff`",
2225
+ "args": {},
2226
+ "description": "Return features matching a query string. This command searches only in:\n\n - Attribute *values* (not attribute names)\n - Source field (which in fact is stored as an attribute)\n - Feature type\n\n The search mode is:\n\n - Case insensitive\n - Match only full words, but not necessarily the full value\n - Common words are ignored. E.g. \"the\", \"with\"\n\n For example, given this feature:\n\n chr1 example SNP 10 30 0.987 . . \"someKey=Fingerprint BAC with reads\"\n\n Queries \"bac\" or \"mRNA\" return the feature. Instead these queries will NOT match:\n\n - \"someKey\"\n - \"with\"\n - \"Finger\"\n - \"chr1\"\n - \"0.987\"",
1978
2227
  "examples": [
1979
2228
  {
1980
- "description": "Upload local file, type auto-detected:",
1981
- "command": "<%= config.bin %> <%= command.id %> genome.fa > file.json"
2229
+ "description": "Search \"bac\" in these assemblies:",
2230
+ "command": "<%= config.bin %> <%= command.id %> -a mm9 mm10 -t bac"
1982
2231
  }
1983
2232
  ],
1984
2233
  "flags": {
@@ -1996,56 +2245,47 @@
1996
2245
  "multiple": false,
1997
2246
  "type": "option"
1998
2247
  },
1999
- "type": {
2000
- "char": "t",
2001
- "description": "Set file type or autodetected it if not set.\n NB: There is no check for whether the file complies to this type",
2002
- "name": "type",
2248
+ "timeout": {
2249
+ "description": "Timeout for each request to the server",
2250
+ "name": "timeout",
2251
+ "default": "1h",
2003
2252
  "hasDynamicHelp": false,
2004
2253
  "multiple": false,
2005
- "options": [
2006
- "text/x-fasta",
2007
- "text/x-gff3",
2008
- "application/x-bgzip-fasta",
2009
- "text/x-fai",
2010
- "application/x-gzi"
2011
- ],
2012
2254
  "type": "option"
2013
2255
  },
2014
- "gzip": {
2015
- "char": "z",
2016
- "description": "Override autodetection and instruct that input is gzip compressed",
2017
- "exclusive": [
2018
- "decompressed"
2019
- ],
2020
- "name": "gzip",
2021
- "allowNo": false,
2022
- "type": "boolean"
2256
+ "text": {
2257
+ "char": "t",
2258
+ "description": "Search for this text query",
2259
+ "name": "text",
2260
+ "required": true,
2261
+ "hasDynamicHelp": false,
2262
+ "multiple": false,
2263
+ "type": "option"
2023
2264
  },
2024
- "decompressed": {
2025
- "char": "d",
2026
- "description": "Override autodetection and instruct that input is decompressed",
2027
- "exclusive": [
2028
- "gzip"
2029
- ],
2030
- "name": "decompressed",
2031
- "allowNo": false,
2032
- "type": "boolean"
2265
+ "assembly": {
2266
+ "char": "a",
2267
+ "description": "Assembly names or IDs to search; use \"-\" to read it from stdin. If omitted search all assemblies",
2268
+ "name": "assembly",
2269
+ "hasDynamicHelp": false,
2270
+ "multiple": true,
2271
+ "type": "option"
2033
2272
  }
2034
2273
  },
2035
2274
  "hasDynamicHelp": false,
2036
2275
  "hiddenAliases": [],
2037
- "id": "file:upload",
2276
+ "id": "feature:search",
2038
2277
  "pluginAlias": "@apollo-annotation/cli",
2039
2278
  "pluginName": "@apollo-annotation/cli",
2040
2279
  "pluginType": "core",
2041
2280
  "strict": true,
2042
- "summary": "Upload a local file to the Apollo server",
2281
+ "summary": "Free text search for feature in one or more assemblies",
2282
+ "enableJsonFlag": false,
2043
2283
  "isESM": true,
2044
2284
  "relativePath": [
2045
2285
  "dist",
2046
2286
  "commands",
2047
- "file",
2048
- "upload.js"
2287
+ "feature",
2288
+ "search.js"
2049
2289
  ]
2050
2290
  },
2051
2291
  "jbrowse:desktop": {
@@ -2091,6 +2331,14 @@
2091
2331
  "multiple": false,
2092
2332
  "type": "option"
2093
2333
  },
2334
+ "timeout": {
2335
+ "description": "Timeout for each request to the server",
2336
+ "name": "timeout",
2337
+ "default": "1h",
2338
+ "hasDynamicHelp": false,
2339
+ "multiple": false,
2340
+ "type": "option"
2341
+ },
2094
2342
  "open": {
2095
2343
  "char": "o",
2096
2344
  "description": "open generated file",
@@ -2162,6 +2410,14 @@
2162
2410
  "hasDynamicHelp": false,
2163
2411
  "multiple": false,
2164
2412
  "type": "option"
2413
+ },
2414
+ "timeout": {
2415
+ "description": "Timeout for each request to the server",
2416
+ "name": "timeout",
2417
+ "default": "1h",
2418
+ "hasDynamicHelp": false,
2419
+ "multiple": false,
2420
+ "type": "option"
2165
2421
  }
2166
2422
  },
2167
2423
  "hasDynamicHelp": false,
@@ -2211,6 +2467,14 @@
2211
2467
  "hasDynamicHelp": false,
2212
2468
  "multiple": false,
2213
2469
  "type": "option"
2470
+ },
2471
+ "timeout": {
2472
+ "description": "Timeout for each request to the server",
2473
+ "name": "timeout",
2474
+ "default": "1h",
2475
+ "hasDynamicHelp": false,
2476
+ "multiple": false,
2477
+ "type": "option"
2214
2478
  }
2215
2479
  },
2216
2480
  "hasDynamicHelp": false,
@@ -2261,6 +2525,14 @@
2261
2525
  "multiple": false,
2262
2526
  "type": "option"
2263
2527
  },
2528
+ "timeout": {
2529
+ "description": "Timeout for each request to the server",
2530
+ "name": "timeout",
2531
+ "default": "1h",
2532
+ "hasDynamicHelp": false,
2533
+ "multiple": false,
2534
+ "type": "option"
2535
+ },
2264
2536
  "assembly": {
2265
2537
  "char": "a",
2266
2538
  "description": "Name for this assembly.",
@@ -2317,6 +2589,14 @@
2317
2589
  "multiple": false,
2318
2590
  "type": "option"
2319
2591
  },
2592
+ "timeout": {
2593
+ "description": "Timeout for each request to the server",
2594
+ "name": "timeout",
2595
+ "default": "1h",
2596
+ "hasDynamicHelp": false,
2597
+ "multiple": false,
2598
+ "type": "option"
2599
+ },
2320
2600
  "assembly": {
2321
2601
  "char": "a",
2322
2602
  "description": "Get reference sequences for these assembly names or IDs; use - to read it from stdin",
@@ -2376,6 +2656,14 @@
2376
2656
  "multiple": false,
2377
2657
  "type": "option"
2378
2658
  },
2659
+ "timeout": {
2660
+ "description": "Timeout for each request to the server",
2661
+ "name": "timeout",
2662
+ "default": "1h",
2663
+ "hasDynamicHelp": false,
2664
+ "multiple": false,
2665
+ "type": "option"
2666
+ },
2379
2667
  "username": {
2380
2668
  "char": "u",
2381
2669
  "description": "Find this username",
@@ -2411,5 +2699,5 @@
2411
2699
  ]
2412
2700
  }
2413
2701
  },
2414
- "version": "1.1.1"
2702
+ "version": "1.1.2"
2415
2703
  }