@apollo-annotation/cli 0.3.1 → 0.3.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.
- package/README.md +73 -39
- package/dist/commands/assembly/add-from-fasta.js +23 -8
- package/dist/commands/export/gff3.d.ts +15 -0
- package/dist/commands/export/gff3.js +74 -0
- package/dist/test/test.d.ts +11 -0
- package/dist/test/test.js +978 -0
- package/dist/test/test_docker.d.ts +1 -0
- package/dist/test/test_docker.js +51 -0
- package/dist/test/utils.d.ts +9 -0
- package/dist/test/utils.js +28 -0
- package/oclif.manifest.json +282 -224
- package/package.json +9 -3
package/oclif.manifest.json
CHANGED
|
@@ -240,20 +240,24 @@
|
|
|
240
240
|
"aliases": [],
|
|
241
241
|
"args": {
|
|
242
242
|
"input": {
|
|
243
|
-
"description": "Input fasta file, local or remote, or id of a previously uploaded file. For local or remote files, it is assumed the file is bgzip'd with `bgzip` and indexed with `samtools faidx`. The indexes are assumed to be at <my.fasta.gz>.fai and <my.fasta.gz>.gzi unless the options --fai and --gzi are provided.",
|
|
243
|
+
"description": "Input fasta file, local or remote, or id of a previously uploaded file. For local or remote files, it is assumed the file is bgzip'd with `bgzip` and indexed with `samtools faidx`. The indexes are assumed to be at <my.fasta.gz>.fai and <my.fasta.gz>.gzi unless the options --fai and --gzi are provided. A local file can be uncompressed if the flag -e/--editable is set (but see below about using -e)",
|
|
244
244
|
"name": "input",
|
|
245
245
|
"required": true
|
|
246
246
|
}
|
|
247
247
|
},
|
|
248
|
-
"description": "Add new assembly. The input fasta may be:\n * A local file\n * An external fasta file\n * The id of a file previously uploaded to Apollo",
|
|
248
|
+
"description": "Add new assembly. The input fasta may be:\n * A local file bgzip'd and indexed. It can be uncompressed if the -e/--editable is set (but see description of -e)\n * An external fasta file bgzip'd and indexed\n * The id of a file previously uploaded to Apollo",
|
|
249
249
|
"examples": [
|
|
250
250
|
{
|
|
251
|
-
"description": "From local file:",
|
|
251
|
+
"description": "From local file assuming indexes genome.gz.fai and genome.gz.gzi are present:",
|
|
252
|
+
"command": "<%= config.bin %> <%= command.id %> genome.fa.gz -a myAssembly"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"description": "Local file with editable sequence does not require compression and indexing:",
|
|
252
256
|
"command": "<%= config.bin %> <%= command.id %> genome.fa -a myAssembly"
|
|
253
257
|
},
|
|
254
258
|
{
|
|
255
|
-
"description": "From external source
|
|
256
|
-
"command": "<%= config.bin %> <%= command.id %> https://.../genome.fa
|
|
259
|
+
"description": "From external source assuming there are also indexes https://.../genome.fa.gz.fai and https://.../genome.fa.gz.gzi:",
|
|
260
|
+
"command": "<%= config.bin %> <%= command.id %> https://.../genome.fa.gz -a myAssembly"
|
|
257
261
|
}
|
|
258
262
|
],
|
|
259
263
|
"flags": {
|
|
@@ -680,113 +684,20 @@
|
|
|
680
684
|
"sequence.js"
|
|
681
685
|
]
|
|
682
686
|
},
|
|
683
|
-
"
|
|
687
|
+
"export:gff3": {
|
|
684
688
|
"aliases": [],
|
|
685
|
-
"args": {
|
|
686
|
-
"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.",
|
|
687
|
-
"flags": {
|
|
688
|
-
"profile": {
|
|
689
|
-
"description": "Use credentials from this profile",
|
|
690
|
-
"name": "profile",
|
|
691
|
-
"hasDynamicHelp": false,
|
|
692
|
-
"multiple": false,
|
|
693
|
-
"type": "option"
|
|
694
|
-
},
|
|
695
|
-
"config-file": {
|
|
696
|
-
"description": "Use this config file (mostly for testing)",
|
|
697
|
-
"name": "config-file",
|
|
698
|
-
"hasDynamicHelp": false,
|
|
699
|
-
"multiple": false,
|
|
700
|
-
"type": "option"
|
|
701
|
-
},
|
|
689
|
+
"args": {
|
|
702
690
|
"assembly": {
|
|
703
|
-
"
|
|
704
|
-
"description": "Get changes only for these assembly names or IDs (but see description)",
|
|
691
|
+
"description": "Export annotations for this assembly name or id",
|
|
705
692
|
"name": "assembly",
|
|
706
|
-
"
|
|
707
|
-
"multiple": true,
|
|
708
|
-
"type": "option"
|
|
709
|
-
}
|
|
710
|
-
},
|
|
711
|
-
"hasDynamicHelp": false,
|
|
712
|
-
"hiddenAliases": [],
|
|
713
|
-
"id": "change:get",
|
|
714
|
-
"pluginAlias": "@apollo-annotation/cli",
|
|
715
|
-
"pluginName": "@apollo-annotation/cli",
|
|
716
|
-
"pluginType": "core",
|
|
717
|
-
"strict": true,
|
|
718
|
-
"summary": "Get list of changes",
|
|
719
|
-
"enableJsonFlag": false,
|
|
720
|
-
"isESM": true,
|
|
721
|
-
"relativePath": [
|
|
722
|
-
"dist",
|
|
723
|
-
"commands",
|
|
724
|
-
"change",
|
|
725
|
-
"get.js"
|
|
726
|
-
]
|
|
727
|
-
},
|
|
728
|
-
"file:delete": {
|
|
729
|
-
"aliases": [],
|
|
730
|
-
"args": {},
|
|
731
|
-
"description": "Deleted files are printed to stdout. See also `apollo file get` to list the files on the server",
|
|
732
|
-
"examples": [
|
|
733
|
-
{
|
|
734
|
-
"description": "Delete file multiple files:",
|
|
735
|
-
"command": "<%= config.bin %> <%= command.id %> -i 123...abc xyz...789"
|
|
736
|
-
}
|
|
737
|
-
],
|
|
738
|
-
"flags": {
|
|
739
|
-
"profile": {
|
|
740
|
-
"description": "Use credentials from this profile",
|
|
741
|
-
"name": "profile",
|
|
742
|
-
"hasDynamicHelp": false,
|
|
743
|
-
"multiple": false,
|
|
744
|
-
"type": "option"
|
|
745
|
-
},
|
|
746
|
-
"config-file": {
|
|
747
|
-
"description": "Use this config file (mostly for testing)",
|
|
748
|
-
"name": "config-file",
|
|
749
|
-
"hasDynamicHelp": false,
|
|
750
|
-
"multiple": false,
|
|
751
|
-
"type": "option"
|
|
752
|
-
},
|
|
753
|
-
"file-id": {
|
|
754
|
-
"char": "i",
|
|
755
|
-
"description": "IDs of the files to delete",
|
|
756
|
-
"name": "file-id",
|
|
757
|
-
"default": [
|
|
758
|
-
"-"
|
|
759
|
-
],
|
|
760
|
-
"hasDynamicHelp": false,
|
|
761
|
-
"multiple": true,
|
|
762
|
-
"type": "option"
|
|
693
|
+
"required": true
|
|
763
694
|
}
|
|
764
695
|
},
|
|
765
|
-
"
|
|
766
|
-
"hiddenAliases": [],
|
|
767
|
-
"id": "file:delete",
|
|
768
|
-
"pluginAlias": "@apollo-annotation/cli",
|
|
769
|
-
"pluginName": "@apollo-annotation/cli",
|
|
770
|
-
"pluginType": "core",
|
|
771
|
-
"strict": true,
|
|
772
|
-
"summary": "Delete files from the Apollo server",
|
|
773
|
-
"enableJsonFlag": false,
|
|
774
|
-
"isESM": true,
|
|
775
|
-
"relativePath": [
|
|
776
|
-
"dist",
|
|
777
|
-
"commands",
|
|
778
|
-
"file",
|
|
779
|
-
"delete.js"
|
|
780
|
-
]
|
|
781
|
-
},
|
|
782
|
-
"file:download": {
|
|
783
|
-
"aliases": [],
|
|
784
|
-
"args": {},
|
|
785
|
-
"description": "See also `apollo file get` to list the files on the server",
|
|
696
|
+
"description": "Export the annotations for an assembly to stdout as gff3",
|
|
786
697
|
"examples": [
|
|
787
698
|
{
|
|
788
|
-
"description": "
|
|
789
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
699
|
+
"description": "Export annotations for myAssembly:",
|
|
700
|
+
"command": "<%= config.bin %> <%= command.id %> myAssembly > out.gff3"
|
|
790
701
|
}
|
|
791
702
|
],
|
|
792
703
|
"flags": {
|
|
@@ -804,51 +715,33 @@
|
|
|
804
715
|
"multiple": false,
|
|
805
716
|
"type": "option"
|
|
806
717
|
},
|
|
807
|
-
"
|
|
808
|
-
"
|
|
809
|
-
"
|
|
810
|
-
"
|
|
811
|
-
"
|
|
812
|
-
"hasDynamicHelp": false,
|
|
813
|
-
"multiple": false,
|
|
814
|
-
"type": "option"
|
|
815
|
-
},
|
|
816
|
-
"output": {
|
|
817
|
-
"char": "o",
|
|
818
|
-
"description": "Write output to this file or \"-\" for stdout. Default to the name of the uploaded file.",
|
|
819
|
-
"name": "output",
|
|
820
|
-
"hasDynamicHelp": false,
|
|
821
|
-
"multiple": false,
|
|
822
|
-
"type": "option"
|
|
718
|
+
"include-fasta": {
|
|
719
|
+
"description": "Include fasta sequence in output",
|
|
720
|
+
"name": "include-fasta",
|
|
721
|
+
"allowNo": false,
|
|
722
|
+
"type": "boolean"
|
|
823
723
|
}
|
|
824
724
|
},
|
|
825
725
|
"hasDynamicHelp": false,
|
|
826
726
|
"hiddenAliases": [],
|
|
827
|
-
"id": "
|
|
727
|
+
"id": "export:gff3",
|
|
828
728
|
"pluginAlias": "@apollo-annotation/cli",
|
|
829
729
|
"pluginName": "@apollo-annotation/cli",
|
|
830
730
|
"pluginType": "core",
|
|
831
731
|
"strict": true,
|
|
832
|
-
"summary": "Download a file from the Apollo server",
|
|
833
732
|
"enableJsonFlag": false,
|
|
834
733
|
"isESM": true,
|
|
835
734
|
"relativePath": [
|
|
836
735
|
"dist",
|
|
837
736
|
"commands",
|
|
838
|
-
"
|
|
839
|
-
"
|
|
737
|
+
"export",
|
|
738
|
+
"gff3.js"
|
|
840
739
|
]
|
|
841
740
|
},
|
|
842
|
-
"
|
|
741
|
+
"change:get": {
|
|
843
742
|
"aliases": [],
|
|
844
743
|
"args": {},
|
|
845
|
-
"description": "
|
|
846
|
-
"examples": [
|
|
847
|
-
{
|
|
848
|
-
"description": "Get files by id:",
|
|
849
|
-
"command": "<%= config.bin %> <%= command.id %> -i xyz abc"
|
|
850
|
-
}
|
|
851
|
-
],
|
|
744
|
+
"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.",
|
|
852
745
|
"flags": {
|
|
853
746
|
"profile": {
|
|
854
747
|
"description": "Use credentials from this profile",
|
|
@@ -864,10 +757,10 @@
|
|
|
864
757
|
"multiple": false,
|
|
865
758
|
"type": "option"
|
|
866
759
|
},
|
|
867
|
-
"
|
|
868
|
-
"char": "
|
|
869
|
-
"description": "Get
|
|
870
|
-
"name": "
|
|
760
|
+
"assembly": {
|
|
761
|
+
"char": "a",
|
|
762
|
+
"description": "Get changes only for these assembly names or IDs (but see description)",
|
|
763
|
+
"name": "assembly",
|
|
871
764
|
"hasDynamicHelp": false,
|
|
872
765
|
"multiple": true,
|
|
873
766
|
"type": "option"
|
|
@@ -875,104 +768,21 @@
|
|
|
875
768
|
},
|
|
876
769
|
"hasDynamicHelp": false,
|
|
877
770
|
"hiddenAliases": [],
|
|
878
|
-
"id": "
|
|
771
|
+
"id": "change:get",
|
|
879
772
|
"pluginAlias": "@apollo-annotation/cli",
|
|
880
773
|
"pluginName": "@apollo-annotation/cli",
|
|
881
774
|
"pluginType": "core",
|
|
882
775
|
"strict": true,
|
|
883
|
-
"summary": "Get list of
|
|
776
|
+
"summary": "Get list of changes",
|
|
884
777
|
"enableJsonFlag": false,
|
|
885
778
|
"isESM": true,
|
|
886
779
|
"relativePath": [
|
|
887
780
|
"dist",
|
|
888
781
|
"commands",
|
|
889
|
-
"
|
|
782
|
+
"change",
|
|
890
783
|
"get.js"
|
|
891
784
|
]
|
|
892
785
|
},
|
|
893
|
-
"file:upload": {
|
|
894
|
-
"aliases": [],
|
|
895
|
-
"args": {
|
|
896
|
-
"input-file": {
|
|
897
|
-
"description": "Local file to upload",
|
|
898
|
-
"name": "input-file",
|
|
899
|
-
"required": true
|
|
900
|
-
}
|
|
901
|
-
},
|
|
902
|
-
"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`",
|
|
903
|
-
"examples": [
|
|
904
|
-
{
|
|
905
|
-
"description": "Upload local file, type auto-detected:",
|
|
906
|
-
"command": "<%= config.bin %> <%= command.id %> genome.fa > file.json"
|
|
907
|
-
}
|
|
908
|
-
],
|
|
909
|
-
"flags": {
|
|
910
|
-
"profile": {
|
|
911
|
-
"description": "Use credentials from this profile",
|
|
912
|
-
"name": "profile",
|
|
913
|
-
"hasDynamicHelp": false,
|
|
914
|
-
"multiple": false,
|
|
915
|
-
"type": "option"
|
|
916
|
-
},
|
|
917
|
-
"config-file": {
|
|
918
|
-
"description": "Use this config file (mostly for testing)",
|
|
919
|
-
"name": "config-file",
|
|
920
|
-
"hasDynamicHelp": false,
|
|
921
|
-
"multiple": false,
|
|
922
|
-
"type": "option"
|
|
923
|
-
},
|
|
924
|
-
"type": {
|
|
925
|
-
"char": "t",
|
|
926
|
-
"description": "Set file type or autodetected it if not set.\n NB: There is no check for whether the file complies to this type",
|
|
927
|
-
"name": "type",
|
|
928
|
-
"hasDynamicHelp": false,
|
|
929
|
-
"multiple": false,
|
|
930
|
-
"options": [
|
|
931
|
-
"text/x-fasta",
|
|
932
|
-
"text/x-gff3",
|
|
933
|
-
"application/x-bgzip-fasta",
|
|
934
|
-
"text/x-fai",
|
|
935
|
-
"application/x-gzi"
|
|
936
|
-
],
|
|
937
|
-
"type": "option"
|
|
938
|
-
},
|
|
939
|
-
"gzip": {
|
|
940
|
-
"char": "z",
|
|
941
|
-
"description": "Override autodetection and instruct that input is gzip compressed",
|
|
942
|
-
"exclusive": [
|
|
943
|
-
"decompressed"
|
|
944
|
-
],
|
|
945
|
-
"name": "gzip",
|
|
946
|
-
"allowNo": false,
|
|
947
|
-
"type": "boolean"
|
|
948
|
-
},
|
|
949
|
-
"decompressed": {
|
|
950
|
-
"char": "d",
|
|
951
|
-
"description": "Override autodetection and instruct that input is decompressed",
|
|
952
|
-
"exclusive": [
|
|
953
|
-
"gzip"
|
|
954
|
-
],
|
|
955
|
-
"name": "decompressed",
|
|
956
|
-
"allowNo": false,
|
|
957
|
-
"type": "boolean"
|
|
958
|
-
}
|
|
959
|
-
},
|
|
960
|
-
"hasDynamicHelp": false,
|
|
961
|
-
"hiddenAliases": [],
|
|
962
|
-
"id": "file:upload",
|
|
963
|
-
"pluginAlias": "@apollo-annotation/cli",
|
|
964
|
-
"pluginName": "@apollo-annotation/cli",
|
|
965
|
-
"pluginType": "core",
|
|
966
|
-
"strict": true,
|
|
967
|
-
"summary": "Upload a local file to the Apollo server",
|
|
968
|
-
"isESM": true,
|
|
969
|
-
"relativePath": [
|
|
970
|
-
"dist",
|
|
971
|
-
"commands",
|
|
972
|
-
"file",
|
|
973
|
-
"upload.js"
|
|
974
|
-
]
|
|
975
|
-
},
|
|
976
786
|
"feature:add-child": {
|
|
977
787
|
"aliases": [],
|
|
978
788
|
"args": {},
|
|
@@ -1775,6 +1585,254 @@
|
|
|
1775
1585
|
"search.js"
|
|
1776
1586
|
]
|
|
1777
1587
|
},
|
|
1588
|
+
"file:delete": {
|
|
1589
|
+
"aliases": [],
|
|
1590
|
+
"args": {},
|
|
1591
|
+
"description": "Deleted files are printed to stdout. See also `apollo file get` to list the files on the server",
|
|
1592
|
+
"examples": [
|
|
1593
|
+
{
|
|
1594
|
+
"description": "Delete file multiple files:",
|
|
1595
|
+
"command": "<%= config.bin %> <%= command.id %> -i 123...abc xyz...789"
|
|
1596
|
+
}
|
|
1597
|
+
],
|
|
1598
|
+
"flags": {
|
|
1599
|
+
"profile": {
|
|
1600
|
+
"description": "Use credentials from this profile",
|
|
1601
|
+
"name": "profile",
|
|
1602
|
+
"hasDynamicHelp": false,
|
|
1603
|
+
"multiple": false,
|
|
1604
|
+
"type": "option"
|
|
1605
|
+
},
|
|
1606
|
+
"config-file": {
|
|
1607
|
+
"description": "Use this config file (mostly for testing)",
|
|
1608
|
+
"name": "config-file",
|
|
1609
|
+
"hasDynamicHelp": false,
|
|
1610
|
+
"multiple": false,
|
|
1611
|
+
"type": "option"
|
|
1612
|
+
},
|
|
1613
|
+
"file-id": {
|
|
1614
|
+
"char": "i",
|
|
1615
|
+
"description": "IDs of the files to delete",
|
|
1616
|
+
"name": "file-id",
|
|
1617
|
+
"default": [
|
|
1618
|
+
"-"
|
|
1619
|
+
],
|
|
1620
|
+
"hasDynamicHelp": false,
|
|
1621
|
+
"multiple": true,
|
|
1622
|
+
"type": "option"
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
"hasDynamicHelp": false,
|
|
1626
|
+
"hiddenAliases": [],
|
|
1627
|
+
"id": "file:delete",
|
|
1628
|
+
"pluginAlias": "@apollo-annotation/cli",
|
|
1629
|
+
"pluginName": "@apollo-annotation/cli",
|
|
1630
|
+
"pluginType": "core",
|
|
1631
|
+
"strict": true,
|
|
1632
|
+
"summary": "Delete files from the Apollo server",
|
|
1633
|
+
"enableJsonFlag": false,
|
|
1634
|
+
"isESM": true,
|
|
1635
|
+
"relativePath": [
|
|
1636
|
+
"dist",
|
|
1637
|
+
"commands",
|
|
1638
|
+
"file",
|
|
1639
|
+
"delete.js"
|
|
1640
|
+
]
|
|
1641
|
+
},
|
|
1642
|
+
"file:download": {
|
|
1643
|
+
"aliases": [],
|
|
1644
|
+
"args": {},
|
|
1645
|
+
"description": "See also `apollo file get` to list the files on the server",
|
|
1646
|
+
"examples": [
|
|
1647
|
+
{
|
|
1648
|
+
"description": "Download file with id xyz",
|
|
1649
|
+
"command": "<%= config.bin %> <%= command.id %> -i xyz -o genome.fa"
|
|
1650
|
+
}
|
|
1651
|
+
],
|
|
1652
|
+
"flags": {
|
|
1653
|
+
"profile": {
|
|
1654
|
+
"description": "Use credentials from this profile",
|
|
1655
|
+
"name": "profile",
|
|
1656
|
+
"hasDynamicHelp": false,
|
|
1657
|
+
"multiple": false,
|
|
1658
|
+
"type": "option"
|
|
1659
|
+
},
|
|
1660
|
+
"config-file": {
|
|
1661
|
+
"description": "Use this config file (mostly for testing)",
|
|
1662
|
+
"name": "config-file",
|
|
1663
|
+
"hasDynamicHelp": false,
|
|
1664
|
+
"multiple": false,
|
|
1665
|
+
"type": "option"
|
|
1666
|
+
},
|
|
1667
|
+
"file-id": {
|
|
1668
|
+
"char": "i",
|
|
1669
|
+
"description": "ID of the file to download",
|
|
1670
|
+
"name": "file-id",
|
|
1671
|
+
"default": "-",
|
|
1672
|
+
"hasDynamicHelp": false,
|
|
1673
|
+
"multiple": false,
|
|
1674
|
+
"type": "option"
|
|
1675
|
+
},
|
|
1676
|
+
"output": {
|
|
1677
|
+
"char": "o",
|
|
1678
|
+
"description": "Write output to this file or \"-\" for stdout. Default to the name of the uploaded file.",
|
|
1679
|
+
"name": "output",
|
|
1680
|
+
"hasDynamicHelp": false,
|
|
1681
|
+
"multiple": false,
|
|
1682
|
+
"type": "option"
|
|
1683
|
+
}
|
|
1684
|
+
},
|
|
1685
|
+
"hasDynamicHelp": false,
|
|
1686
|
+
"hiddenAliases": [],
|
|
1687
|
+
"id": "file:download",
|
|
1688
|
+
"pluginAlias": "@apollo-annotation/cli",
|
|
1689
|
+
"pluginName": "@apollo-annotation/cli",
|
|
1690
|
+
"pluginType": "core",
|
|
1691
|
+
"strict": true,
|
|
1692
|
+
"summary": "Download a file from the Apollo server",
|
|
1693
|
+
"enableJsonFlag": false,
|
|
1694
|
+
"isESM": true,
|
|
1695
|
+
"relativePath": [
|
|
1696
|
+
"dist",
|
|
1697
|
+
"commands",
|
|
1698
|
+
"file",
|
|
1699
|
+
"download.js"
|
|
1700
|
+
]
|
|
1701
|
+
},
|
|
1702
|
+
"file:get": {
|
|
1703
|
+
"aliases": [],
|
|
1704
|
+
"args": {},
|
|
1705
|
+
"description": "Print to stdout the list of files in json format",
|
|
1706
|
+
"examples": [
|
|
1707
|
+
{
|
|
1708
|
+
"description": "Get files by id:",
|
|
1709
|
+
"command": "<%= config.bin %> <%= command.id %> -i xyz abc"
|
|
1710
|
+
}
|
|
1711
|
+
],
|
|
1712
|
+
"flags": {
|
|
1713
|
+
"profile": {
|
|
1714
|
+
"description": "Use credentials from this profile",
|
|
1715
|
+
"name": "profile",
|
|
1716
|
+
"hasDynamicHelp": false,
|
|
1717
|
+
"multiple": false,
|
|
1718
|
+
"type": "option"
|
|
1719
|
+
},
|
|
1720
|
+
"config-file": {
|
|
1721
|
+
"description": "Use this config file (mostly for testing)",
|
|
1722
|
+
"name": "config-file",
|
|
1723
|
+
"hasDynamicHelp": false,
|
|
1724
|
+
"multiple": false,
|
|
1725
|
+
"type": "option"
|
|
1726
|
+
},
|
|
1727
|
+
"file-id": {
|
|
1728
|
+
"char": "i",
|
|
1729
|
+
"description": "Get files matching this IDs",
|
|
1730
|
+
"name": "file-id",
|
|
1731
|
+
"hasDynamicHelp": false,
|
|
1732
|
+
"multiple": true,
|
|
1733
|
+
"type": "option"
|
|
1734
|
+
}
|
|
1735
|
+
},
|
|
1736
|
+
"hasDynamicHelp": false,
|
|
1737
|
+
"hiddenAliases": [],
|
|
1738
|
+
"id": "file:get",
|
|
1739
|
+
"pluginAlias": "@apollo-annotation/cli",
|
|
1740
|
+
"pluginName": "@apollo-annotation/cli",
|
|
1741
|
+
"pluginType": "core",
|
|
1742
|
+
"strict": true,
|
|
1743
|
+
"summary": "Get list of files uploaded to the Apollo server",
|
|
1744
|
+
"enableJsonFlag": false,
|
|
1745
|
+
"isESM": true,
|
|
1746
|
+
"relativePath": [
|
|
1747
|
+
"dist",
|
|
1748
|
+
"commands",
|
|
1749
|
+
"file",
|
|
1750
|
+
"get.js"
|
|
1751
|
+
]
|
|
1752
|
+
},
|
|
1753
|
+
"file:upload": {
|
|
1754
|
+
"aliases": [],
|
|
1755
|
+
"args": {
|
|
1756
|
+
"input-file": {
|
|
1757
|
+
"description": "Local file to upload",
|
|
1758
|
+
"name": "input-file",
|
|
1759
|
+
"required": true
|
|
1760
|
+
}
|
|
1761
|
+
},
|
|
1762
|
+
"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`",
|
|
1763
|
+
"examples": [
|
|
1764
|
+
{
|
|
1765
|
+
"description": "Upload local file, type auto-detected:",
|
|
1766
|
+
"command": "<%= config.bin %> <%= command.id %> genome.fa > file.json"
|
|
1767
|
+
}
|
|
1768
|
+
],
|
|
1769
|
+
"flags": {
|
|
1770
|
+
"profile": {
|
|
1771
|
+
"description": "Use credentials from this profile",
|
|
1772
|
+
"name": "profile",
|
|
1773
|
+
"hasDynamicHelp": false,
|
|
1774
|
+
"multiple": false,
|
|
1775
|
+
"type": "option"
|
|
1776
|
+
},
|
|
1777
|
+
"config-file": {
|
|
1778
|
+
"description": "Use this config file (mostly for testing)",
|
|
1779
|
+
"name": "config-file",
|
|
1780
|
+
"hasDynamicHelp": false,
|
|
1781
|
+
"multiple": false,
|
|
1782
|
+
"type": "option"
|
|
1783
|
+
},
|
|
1784
|
+
"type": {
|
|
1785
|
+
"char": "t",
|
|
1786
|
+
"description": "Set file type or autodetected it if not set.\n NB: There is no check for whether the file complies to this type",
|
|
1787
|
+
"name": "type",
|
|
1788
|
+
"hasDynamicHelp": false,
|
|
1789
|
+
"multiple": false,
|
|
1790
|
+
"options": [
|
|
1791
|
+
"text/x-fasta",
|
|
1792
|
+
"text/x-gff3",
|
|
1793
|
+
"application/x-bgzip-fasta",
|
|
1794
|
+
"text/x-fai",
|
|
1795
|
+
"application/x-gzi"
|
|
1796
|
+
],
|
|
1797
|
+
"type": "option"
|
|
1798
|
+
},
|
|
1799
|
+
"gzip": {
|
|
1800
|
+
"char": "z",
|
|
1801
|
+
"description": "Override autodetection and instruct that input is gzip compressed",
|
|
1802
|
+
"exclusive": [
|
|
1803
|
+
"decompressed"
|
|
1804
|
+
],
|
|
1805
|
+
"name": "gzip",
|
|
1806
|
+
"allowNo": false,
|
|
1807
|
+
"type": "boolean"
|
|
1808
|
+
},
|
|
1809
|
+
"decompressed": {
|
|
1810
|
+
"char": "d",
|
|
1811
|
+
"description": "Override autodetection and instruct that input is decompressed",
|
|
1812
|
+
"exclusive": [
|
|
1813
|
+
"gzip"
|
|
1814
|
+
],
|
|
1815
|
+
"name": "decompressed",
|
|
1816
|
+
"allowNo": false,
|
|
1817
|
+
"type": "boolean"
|
|
1818
|
+
}
|
|
1819
|
+
},
|
|
1820
|
+
"hasDynamicHelp": false,
|
|
1821
|
+
"hiddenAliases": [],
|
|
1822
|
+
"id": "file:upload",
|
|
1823
|
+
"pluginAlias": "@apollo-annotation/cli",
|
|
1824
|
+
"pluginName": "@apollo-annotation/cli",
|
|
1825
|
+
"pluginType": "core",
|
|
1826
|
+
"strict": true,
|
|
1827
|
+
"summary": "Upload a local file to the Apollo server",
|
|
1828
|
+
"isESM": true,
|
|
1829
|
+
"relativePath": [
|
|
1830
|
+
"dist",
|
|
1831
|
+
"commands",
|
|
1832
|
+
"file",
|
|
1833
|
+
"upload.js"
|
|
1834
|
+
]
|
|
1835
|
+
},
|
|
1778
1836
|
"jbrowse:get-config": {
|
|
1779
1837
|
"aliases": [],
|
|
1780
1838
|
"args": {},
|
|
@@ -2048,5 +2106,5 @@
|
|
|
2048
2106
|
]
|
|
2049
2107
|
}
|
|
2050
2108
|
},
|
|
2051
|
-
"version": "0.3.
|
|
2109
|
+
"version": "0.3.2"
|
|
2052
2110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollo-annotation/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Command line interface for the Apollo annotation server",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"test": "mocha --require src/test/fixtures.ts 'src/**/*.test.ts'",
|
|
30
30
|
"posttest": "yarn lint",
|
|
31
31
|
"test:ci": "nyc mocha 'src/**/*.test.ts'",
|
|
32
|
+
"test:cli": "yarn tsx src/test/test.ts",
|
|
32
33
|
"version": "oclif readme --multi --dir ../website/docs/admin/cli/ && oclif readme && git add README.md"
|
|
33
34
|
},
|
|
34
35
|
"oclif": {
|
|
@@ -51,6 +52,9 @@
|
|
|
51
52
|
"change": {
|
|
52
53
|
"description": "Commands to manage the change log"
|
|
53
54
|
},
|
|
55
|
+
"export": {
|
|
56
|
+
"description": "Commands to export data"
|
|
57
|
+
},
|
|
54
58
|
"feature": {
|
|
55
59
|
"description": "Commands to manage features"
|
|
56
60
|
},
|
|
@@ -84,17 +88,19 @@
|
|
|
84
88
|
"yaml": "^2.3.4"
|
|
85
89
|
},
|
|
86
90
|
"devDependencies": {
|
|
87
|
-
"@apollo-annotation/mst": "^0.3.
|
|
88
|
-
"@apollo-annotation/shared": "^0.3.
|
|
91
|
+
"@apollo-annotation/mst": "^0.3.2",
|
|
92
|
+
"@apollo-annotation/shared": "^0.3.2",
|
|
89
93
|
"@istanbuljs/esm-loader-hook": "^0.2.0",
|
|
90
94
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
91
95
|
"@oclif/test": "^3.1.3",
|
|
92
96
|
"@types/chai": "^4.3.19",
|
|
93
97
|
"@types/cli-progress": "^3",
|
|
98
|
+
"@types/cross-spawn": "^6.0.6",
|
|
94
99
|
"@types/inquirer": "^9.0.7",
|
|
95
100
|
"@types/mocha": "^10",
|
|
96
101
|
"@types/node": "^18.14.2",
|
|
97
102
|
"babel-plugin-istanbul": "^6.1.1",
|
|
103
|
+
"cross-spawn": "^7.0.3",
|
|
98
104
|
"mocha": "^10.2.0",
|
|
99
105
|
"nyc": "^15.1.0",
|
|
100
106
|
"oclif": "^4.4.2",
|