@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.
@@ -236,105 +236,6 @@
236
236
  "status.js"
237
237
  ]
238
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
- },
251
- "config-file": {
252
- "description": "Use this config file (mostly for testing)",
253
- "name": "config-file",
254
- "hasDynamicHelp": false,
255
- "multiple": false,
256
- "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
- }
266
- },
267
- "hasDynamicHelp": false,
268
- "hiddenAliases": [],
269
- "id": "change:get",
270
- "pluginAlias": "@apollo-annotation/cli",
271
- "pluginName": "@apollo-annotation/cli",
272
- "pluginType": "core",
273
- "strict": true,
274
- "summary": "Get list of changes",
275
- "enableJsonFlag": false,
276
- "isESM": true,
277
- "relativePath": [
278
- "dist",
279
- "commands",
280
- "change",
281
- "get.js"
282
- ]
283
- },
284
- "export:gff3": {
285
- "aliases": [],
286
- "args": {
287
- "assembly": {
288
- "description": "Export annotations for this assembly name or id",
289
- "name": "assembly",
290
- "required": true
291
- }
292
- },
293
- "description": "Export the annotations for an assembly to stdout as gff3",
294
- "examples": [
295
- {
296
- "description": "Export annotations for myAssembly:",
297
- "command": "<%= config.bin %> <%= command.id %> myAssembly > out.gff3"
298
- }
299
- ],
300
- "flags": {
301
- "profile": {
302
- "description": "Use credentials from this profile",
303
- "name": "profile",
304
- "hasDynamicHelp": false,
305
- "multiple": false,
306
- "type": "option"
307
- },
308
- "config-file": {
309
- "description": "Use this config file (mostly for testing)",
310
- "name": "config-file",
311
- "hasDynamicHelp": false,
312
- "multiple": false,
313
- "type": "option"
314
- },
315
- "include-fasta": {
316
- "description": "Include fasta sequence in output",
317
- "name": "include-fasta",
318
- "allowNo": false,
319
- "type": "boolean"
320
- }
321
- },
322
- "hasDynamicHelp": false,
323
- "hiddenAliases": [],
324
- "id": "export:gff3",
325
- "pluginAlias": "@apollo-annotation/cli",
326
- "pluginName": "@apollo-annotation/cli",
327
- "pluginType": "core",
328
- "strict": true,
329
- "enableJsonFlag": false,
330
- "isESM": true,
331
- "relativePath": [
332
- "dist",
333
- "commands",
334
- "export",
335
- "gff3.js"
336
- ]
337
- },
338
239
  "assembly:add-from-fasta": {
339
240
  "aliases": [],
340
241
  "args": {
@@ -783,6 +684,105 @@
783
684
  "sequence.js"
784
685
  ]
785
686
  },
687
+ "change:get": {
688
+ "aliases": [],
689
+ "args": {},
690
+ "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.",
691
+ "flags": {
692
+ "profile": {
693
+ "description": "Use credentials from this profile",
694
+ "name": "profile",
695
+ "hasDynamicHelp": false,
696
+ "multiple": false,
697
+ "type": "option"
698
+ },
699
+ "config-file": {
700
+ "description": "Use this config file (mostly for testing)",
701
+ "name": "config-file",
702
+ "hasDynamicHelp": false,
703
+ "multiple": false,
704
+ "type": "option"
705
+ },
706
+ "assembly": {
707
+ "char": "a",
708
+ "description": "Get changes only for these assembly names or IDs (but see description)",
709
+ "name": "assembly",
710
+ "hasDynamicHelp": false,
711
+ "multiple": true,
712
+ "type": "option"
713
+ }
714
+ },
715
+ "hasDynamicHelp": false,
716
+ "hiddenAliases": [],
717
+ "id": "change:get",
718
+ "pluginAlias": "@apollo-annotation/cli",
719
+ "pluginName": "@apollo-annotation/cli",
720
+ "pluginType": "core",
721
+ "strict": true,
722
+ "summary": "Get list of changes",
723
+ "enableJsonFlag": false,
724
+ "isESM": true,
725
+ "relativePath": [
726
+ "dist",
727
+ "commands",
728
+ "change",
729
+ "get.js"
730
+ ]
731
+ },
732
+ "export:gff3": {
733
+ "aliases": [],
734
+ "args": {
735
+ "assembly": {
736
+ "description": "Export annotations for this assembly name or id",
737
+ "name": "assembly",
738
+ "required": true
739
+ }
740
+ },
741
+ "description": "Export the annotations for an assembly to stdout as gff3",
742
+ "examples": [
743
+ {
744
+ "description": "Export annotations for myAssembly:",
745
+ "command": "<%= config.bin %> <%= command.id %> myAssembly > out.gff3"
746
+ }
747
+ ],
748
+ "flags": {
749
+ "profile": {
750
+ "description": "Use credentials from this profile",
751
+ "name": "profile",
752
+ "hasDynamicHelp": false,
753
+ "multiple": false,
754
+ "type": "option"
755
+ },
756
+ "config-file": {
757
+ "description": "Use this config file (mostly for testing)",
758
+ "name": "config-file",
759
+ "hasDynamicHelp": false,
760
+ "multiple": false,
761
+ "type": "option"
762
+ },
763
+ "include-fasta": {
764
+ "description": "Include fasta sequence in output",
765
+ "name": "include-fasta",
766
+ "allowNo": false,
767
+ "type": "boolean"
768
+ }
769
+ },
770
+ "hasDynamicHelp": false,
771
+ "hiddenAliases": [],
772
+ "id": "export:gff3",
773
+ "pluginAlias": "@apollo-annotation/cli",
774
+ "pluginName": "@apollo-annotation/cli",
775
+ "pluginType": "core",
776
+ "strict": true,
777
+ "enableJsonFlag": false,
778
+ "isESM": true,
779
+ "relativePath": [
780
+ "dist",
781
+ "commands",
782
+ "export",
783
+ "gff3.js"
784
+ ]
785
+ },
786
786
  "feature:add-child": {
787
787
  "aliases": [],
788
788
  "args": {},
@@ -862,6 +862,146 @@
862
862
  "add-child.js"
863
863
  ]
864
864
  },
865
+ "feature:add": {
866
+ "aliases": [],
867
+ "args": {
868
+ "feature-json": {
869
+ "description": "Inline JSON describing the feature(s) to add. Can also be provided via stdin.",
870
+ "name": "feature-json"
871
+ }
872
+ },
873
+ "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",
874
+ "examples": [
875
+ {
876
+ "description": "Add a single feature by specifying its location and type",
877
+ "command": "<%= config.bin %> <%= command.id %> --assembly hg19 --refSeq chr3 --min 1000 --max 5000 --type remark"
878
+ },
879
+ {
880
+ "description": "Add a single feature from inline JSON",
881
+ "command": "<%= config.bin %> <%= command.id %> '{\"assembly\":\"<assemblyNameOrId>\",\"refseq\":\"<refSeqNameOrId>\",\"min\":1,\"max\":100,\"type\":\"<featureType>\"}'"
882
+ },
883
+ {
884
+ "description": "Add mutilple features from stdin JSON",
885
+ "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 %>"
886
+ },
887
+ {
888
+ "description": "Add a feature with children from inline JSON",
889
+ "command": "<%= config.bin %> <%= command.id %> '{\"assembly\":\"<assemblyNameOrId>\",\"refseq\":\"<refSeqNameOrId>\",\"min\":1,\"max\":100,\"type\":\"<featureType>\",\"children\":[{\"min\":1,\"max\":50,\"type\":\"<featureType>\"}]}'"
890
+ }
891
+ ],
892
+ "flags": {
893
+ "profile": {
894
+ "description": "Use credentials from this profile",
895
+ "name": "profile",
896
+ "hasDynamicHelp": false,
897
+ "multiple": false,
898
+ "type": "option"
899
+ },
900
+ "config-file": {
901
+ "description": "Use this config file (mostly for testing)",
902
+ "name": "config-file",
903
+ "hasDynamicHelp": false,
904
+ "multiple": false,
905
+ "type": "option"
906
+ },
907
+ "assembly": {
908
+ "char": "a",
909
+ "description": "Name or ID of target assembly. Not required if refseq is unique in the database",
910
+ "name": "assembly",
911
+ "hasDynamicHelp": false,
912
+ "multiple": false,
913
+ "type": "option"
914
+ },
915
+ "refSeq": {
916
+ "char": "r",
917
+ "dependsOn": [
918
+ "min",
919
+ "max",
920
+ "type"
921
+ ],
922
+ "description": "Name or ID of target reference sequence",
923
+ "exclusive": [
924
+ "feature-json-file"
925
+ ],
926
+ "name": "refSeq",
927
+ "hasDynamicHelp": false,
928
+ "multiple": false,
929
+ "type": "option"
930
+ },
931
+ "min": {
932
+ "char": "s",
933
+ "dependsOn": [
934
+ "refSeq",
935
+ "max",
936
+ "type"
937
+ ],
938
+ "description": "Start position in target reference sequence",
939
+ "exclusive": [
940
+ "feature-json-file"
941
+ ],
942
+ "name": "min",
943
+ "hasDynamicHelp": false,
944
+ "multiple": false,
945
+ "type": "option"
946
+ },
947
+ "max": {
948
+ "char": "e",
949
+ "dependsOn": [
950
+ "refSeq",
951
+ "min",
952
+ "type"
953
+ ],
954
+ "description": "End position in target reference sequence",
955
+ "exclusive": [
956
+ "feature-json-file"
957
+ ],
958
+ "name": "max",
959
+ "hasDynamicHelp": false,
960
+ "multiple": false,
961
+ "type": "option"
962
+ },
963
+ "type": {
964
+ "char": "t",
965
+ "dependsOn": [
966
+ "refSeq",
967
+ "min",
968
+ "max"
969
+ ],
970
+ "description": "Type of child feature",
971
+ "exclusive": [
972
+ "feature-json-file"
973
+ ],
974
+ "name": "type",
975
+ "hasDynamicHelp": false,
976
+ "multiple": false,
977
+ "type": "option"
978
+ },
979
+ "feature-json-file": {
980
+ "char": "F",
981
+ "description": "File with JSON describing the feature(s) to add",
982
+ "name": "feature-json-file",
983
+ "hasDynamicHelp": false,
984
+ "multiple": false,
985
+ "type": "option"
986
+ }
987
+ },
988
+ "hasDynamicHelp": false,
989
+ "hiddenAliases": [],
990
+ "id": "feature:add",
991
+ "pluginAlias": "@apollo-annotation/cli",
992
+ "pluginName": "@apollo-annotation/cli",
993
+ "pluginType": "core",
994
+ "strict": true,
995
+ "summary": "Add one or more features to Apollo",
996
+ "enableJsonFlag": false,
997
+ "isESM": true,
998
+ "relativePath": [
999
+ "dist",
1000
+ "commands",
1001
+ "feature",
1002
+ "add.js"
1003
+ ]
1004
+ },
865
1005
  "feature:check": {
866
1006
  "aliases": [],
867
1007
  "args": {},
@@ -1382,6 +1522,69 @@
1382
1522
  "get-id.js"
1383
1523
  ]
1384
1524
  },
1525
+ "feature:get-indexed-id": {
1526
+ "aliases": [],
1527
+ "args": {
1528
+ "id": {
1529
+ "description": "Indexed identifier to search for",
1530
+ "name": "id",
1531
+ "required": true
1532
+ }
1533
+ },
1534
+ "description": "Get features that match a given indexed identifier, such as the ID of a feature from an imported GFF3 file",
1535
+ "examples": [
1536
+ {
1537
+ "description": "Get features for this indexed identifier:",
1538
+ "command": "<%= config.bin %> <%= command.id %> -i abc...zyz def...foo"
1539
+ }
1540
+ ],
1541
+ "flags": {
1542
+ "profile": {
1543
+ "description": "Use credentials from this profile",
1544
+ "name": "profile",
1545
+ "hasDynamicHelp": false,
1546
+ "multiple": false,
1547
+ "type": "option"
1548
+ },
1549
+ "config-file": {
1550
+ "description": "Use this config file (mostly for testing)",
1551
+ "name": "config-file",
1552
+ "hasDynamicHelp": false,
1553
+ "multiple": false,
1554
+ "type": "option"
1555
+ },
1556
+ "assembly": {
1557
+ "char": "a",
1558
+ "description": "Assembly names or IDs to search; use \"-\" to read it from stdin. If omitted search all assemblies",
1559
+ "name": "assembly",
1560
+ "hasDynamicHelp": false,
1561
+ "multiple": true,
1562
+ "type": "option"
1563
+ },
1564
+ "topLevel": {
1565
+ "description": "Return the top-level parent of the feature instead of the feature itself",
1566
+ "name": "topLevel",
1567
+ "allowNo": false,
1568
+ "type": "boolean"
1569
+ }
1570
+ },
1571
+ "hasDynamicHelp": false,
1572
+ "hiddenAliases": [],
1573
+ "id": "feature:get-indexed-id",
1574
+ "pluginAlias": "@apollo-annotation/cli",
1575
+ "pluginName": "@apollo-annotation/cli",
1576
+ "pluginType": "core",
1577
+ "strict": true,
1578
+ "summary": "Get features given an indexed identifier",
1579
+ "enableJsonFlag": false,
1580
+ "isESM": true,
1581
+ "relativePath": [
1582
+ "dist",
1583
+ "commands",
1584
+ "feature",
1585
+ "get-indexed-id.js"
1586
+ ]
1587
+ },
1385
1588
  "feature:get": {
1386
1589
  "aliases": [],
1387
1590
  "args": {},
@@ -2196,5 +2399,5 @@
2196
2399
  ]
2197
2400
  }
2198
2401
  },
2199
- "version": "0.3.9"
2402
+ "version": "0.3.11"
2200
2403
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apollo-annotation/cli",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "description": "Command line interface for the Apollo annotation server",
5
5
  "repository": {
6
6
  "type": "git",
@@ -89,8 +89,8 @@
89
89
  "yaml": "^2.3.4"
90
90
  },
91
91
  "devDependencies": {
92
- "@apollo-annotation/mst": "^0.3.9",
93
- "@apollo-annotation/shared": "^0.3.9",
92
+ "@apollo-annotation/mst": "^0.3.11",
93
+ "@apollo-annotation/shared": "^0.3.11",
94
94
  "@istanbuljs/esm-loader-hook": "^0.2.0",
95
95
  "@istanbuljs/nyc-config-typescript": "^1.0.2",
96
96
  "@oclif/test": "^3.1.3",
@@ -103,6 +103,7 @@
103
103
  "babel-plugin-istanbul": "^6.1.1",
104
104
  "cross-spawn": "^7.0.3",
105
105
  "mocha": "^10.2.0",
106
+ "mongodb": "^4.7.0",
106
107
  "nyc": "^15.1.0",
107
108
  "oclif": "^4.4.2",
108
109
  "prettier": "^3.3.2",