@jbrowse/cli 2.16.1 → 2.18.0
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 +45 -13
- package/lib/base.js +1 -1
- package/lib/commands/add-assembly.js +1 -1
- package/lib/commands/add-connection.js +2 -3
- package/lib/commands/add-track-json.js +1 -1
- package/lib/commands/add-track.js +1 -1
- package/lib/commands/admin-server.js +5 -5
- package/lib/commands/create.js +3 -3
- package/lib/commands/make-pif.js +2 -2
- package/lib/commands/remove-track.js +1 -1
- package/lib/commands/set-default-session.js +1 -1
- package/lib/commands/sort-bed.js +45 -0
- package/lib/commands/sort-gff.js +1 -1
- package/lib/commands/text-index.js +3 -4
- package/lib/commands/upgrade.js +2 -2
- package/lib/types/gff3Adapter.js +2 -2
- package/lib/types/vcfAdapter.js +2 -2
- package/lib/util.js +1 -1
- package/oclif.manifest.json +39 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -57,6 +57,7 @@ It is likely preferable in most cases to install the tools globally with
|
|
|
57
57
|
- [`jbrowse make-pif FILE`](#jbrowse-make-pif-file)
|
|
58
58
|
- [`jbrowse remove-track TRACK`](#jbrowse-remove-track-track)
|
|
59
59
|
- [`jbrowse set-default-session`](#jbrowse-set-default-session)
|
|
60
|
+
- [`jbrowse sort-bed FILE`](#jbrowse-sort-bed-file)
|
|
60
61
|
- [`jbrowse sort-gff FILE`](#jbrowse-sort-gff-file)
|
|
61
62
|
- [`jbrowse text-index`](#jbrowse-text-index)
|
|
62
63
|
- [`jbrowse upgrade [LOCALPATH]`](#jbrowse-upgrade-localpath)
|
|
@@ -205,7 +206,7 @@ EXAMPLES
|
|
|
205
206
|
```
|
|
206
207
|
|
|
207
208
|
_See code:
|
|
208
|
-
[src/commands/add-assembly.ts](https://github.com/GMOD/jbrowse-components/blob/v2.
|
|
209
|
+
[src/commands/add-assembly.ts](https://github.com/GMOD/jbrowse-components/blob/v2.18.0/products/jbrowse-cli/src/commands/add-assembly.ts)_
|
|
209
210
|
|
|
210
211
|
## `jbrowse add-connection CONNECTIONURLORPATH`
|
|
211
212
|
|
|
@@ -256,7 +257,7 @@ EXAMPLES
|
|
|
256
257
|
```
|
|
257
258
|
|
|
258
259
|
_See code:
|
|
259
|
-
[src/commands/add-connection.ts](https://github.com/GMOD/jbrowse-components/blob/v2.
|
|
260
|
+
[src/commands/add-connection.ts](https://github.com/GMOD/jbrowse-components/blob/v2.18.0/products/jbrowse-cli/src/commands/add-connection.ts)_
|
|
260
261
|
|
|
261
262
|
## `jbrowse add-track TRACK`
|
|
262
263
|
|
|
@@ -337,7 +338,7 @@ EXAMPLES
|
|
|
337
338
|
```
|
|
338
339
|
|
|
339
340
|
_See code:
|
|
340
|
-
[src/commands/add-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.
|
|
341
|
+
[src/commands/add-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.18.0/products/jbrowse-cli/src/commands/add-track.ts)_
|
|
341
342
|
|
|
342
343
|
## `jbrowse add-track-json TRACK`
|
|
343
344
|
|
|
@@ -367,7 +368,7 @@ EXAMPLES
|
|
|
367
368
|
```
|
|
368
369
|
|
|
369
370
|
_See code:
|
|
370
|
-
[src/commands/add-track-json.ts](https://github.com/GMOD/jbrowse-components/blob/v2.
|
|
371
|
+
[src/commands/add-track-json.ts](https://github.com/GMOD/jbrowse-components/blob/v2.18.0/products/jbrowse-cli/src/commands/add-track-json.ts)_
|
|
371
372
|
|
|
372
373
|
## `jbrowse admin-server`
|
|
373
374
|
|
|
@@ -399,7 +400,7 @@ EXAMPLES
|
|
|
399
400
|
```
|
|
400
401
|
|
|
401
402
|
_See code:
|
|
402
|
-
[src/commands/admin-server.ts](https://github.com/GMOD/jbrowse-components/blob/v2.
|
|
403
|
+
[src/commands/admin-server.ts](https://github.com/GMOD/jbrowse-components/blob/v2.18.0/products/jbrowse-cli/src/commands/admin-server.ts)_
|
|
403
404
|
|
|
404
405
|
## `jbrowse create LOCALPATH`
|
|
405
406
|
|
|
@@ -456,7 +457,7 @@ EXAMPLES
|
|
|
456
457
|
```
|
|
457
458
|
|
|
458
459
|
_See code:
|
|
459
|
-
[src/commands/create.ts](https://github.com/GMOD/jbrowse-components/blob/v2.
|
|
460
|
+
[src/commands/create.ts](https://github.com/GMOD/jbrowse-components/blob/v2.18.0/products/jbrowse-cli/src/commands/create.ts)_
|
|
460
461
|
|
|
461
462
|
## `jbrowse help [COMMAND]`
|
|
462
463
|
|
|
@@ -477,7 +478,7 @@ DESCRIPTION
|
|
|
477
478
|
```
|
|
478
479
|
|
|
479
480
|
_See code:
|
|
480
|
-
[@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.
|
|
481
|
+
[@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.19/src/commands/help.ts)_
|
|
481
482
|
|
|
482
483
|
## `jbrowse make-pif FILE`
|
|
483
484
|
|
|
@@ -507,7 +508,7 @@ EXAMPLES
|
|
|
507
508
|
```
|
|
508
509
|
|
|
509
510
|
_See code:
|
|
510
|
-
[src/commands/make-pif.ts](https://github.com/GMOD/jbrowse-components/blob/v2.
|
|
511
|
+
[src/commands/make-pif.ts](https://github.com/GMOD/jbrowse-components/blob/v2.18.0/products/jbrowse-cli/src/commands/make-pif.ts)_
|
|
511
512
|
|
|
512
513
|
## `jbrowse remove-track TRACK`
|
|
513
514
|
|
|
@@ -535,7 +536,7 @@ EXAMPLES
|
|
|
535
536
|
```
|
|
536
537
|
|
|
537
538
|
_See code:
|
|
538
|
-
[src/commands/remove-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.
|
|
539
|
+
[src/commands/remove-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.18.0/products/jbrowse-cli/src/commands/remove-track.ts)_
|
|
539
540
|
|
|
540
541
|
## `jbrowse set-default-session`
|
|
541
542
|
|
|
@@ -577,7 +578,38 @@ EXAMPLES
|
|
|
577
578
|
```
|
|
578
579
|
|
|
579
580
|
_See code:
|
|
580
|
-
[src/commands/set-default-session.ts](https://github.com/GMOD/jbrowse-components/blob/v2.
|
|
581
|
+
[src/commands/set-default-session.ts](https://github.com/GMOD/jbrowse-components/blob/v2.18.0/products/jbrowse-cli/src/commands/set-default-session.ts)_
|
|
582
|
+
|
|
583
|
+
## `jbrowse sort-bed FILE`
|
|
584
|
+
|
|
585
|
+
Helper utility to sort GFF files for tabix. Moves all lines starting with # to
|
|
586
|
+
the top of the file, and sort by refname and start position using unix utilities
|
|
587
|
+
sort and grep
|
|
588
|
+
|
|
589
|
+
```
|
|
590
|
+
USAGE
|
|
591
|
+
$ jbrowse sort-bed FILE [-h]
|
|
592
|
+
|
|
593
|
+
ARGUMENTS
|
|
594
|
+
FILE GFF file
|
|
595
|
+
|
|
596
|
+
FLAGS
|
|
597
|
+
-h, --help Show CLI help.
|
|
598
|
+
|
|
599
|
+
DESCRIPTION
|
|
600
|
+
Helper utility to sort GFF files for tabix. Moves all lines starting with # to the top of the file, and sort by
|
|
601
|
+
refname and start position using unix utilities sort and grep
|
|
602
|
+
|
|
603
|
+
EXAMPLES
|
|
604
|
+
# sort gff and pipe to bgzip
|
|
605
|
+
|
|
606
|
+
$ jbrowse sort-gff input.gff | bgzip > sorted.gff.gz
|
|
607
|
+
|
|
608
|
+
$ tabix sorted.gff.gz
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
_See code:
|
|
612
|
+
[src/commands/sort-bed.ts](https://github.com/GMOD/jbrowse-components/blob/v2.18.0/products/jbrowse-cli/src/commands/sort-bed.ts)_
|
|
581
613
|
|
|
582
614
|
## `jbrowse sort-gff FILE`
|
|
583
615
|
|
|
@@ -608,7 +640,7 @@ EXAMPLES
|
|
|
608
640
|
```
|
|
609
641
|
|
|
610
642
|
_See code:
|
|
611
|
-
[src/commands/sort-gff.ts](https://github.com/GMOD/jbrowse-components/blob/v2.
|
|
643
|
+
[src/commands/sort-gff.ts](https://github.com/GMOD/jbrowse-components/blob/v2.18.0/products/jbrowse-cli/src/commands/sort-gff.ts)_
|
|
612
644
|
|
|
613
645
|
## `jbrowse text-index`
|
|
614
646
|
|
|
@@ -675,7 +707,7 @@ EXAMPLES
|
|
|
675
707
|
```
|
|
676
708
|
|
|
677
709
|
_See code:
|
|
678
|
-
[src/commands/text-index.ts](https://github.com/GMOD/jbrowse-components/blob/v2.
|
|
710
|
+
[src/commands/text-index.ts](https://github.com/GMOD/jbrowse-components/blob/v2.18.0/products/jbrowse-cli/src/commands/text-index.ts)_
|
|
679
711
|
|
|
680
712
|
## `jbrowse upgrade [LOCALPATH]`
|
|
681
713
|
|
|
@@ -738,7 +770,7 @@ EXAMPLES
|
|
|
738
770
|
```
|
|
739
771
|
|
|
740
772
|
_See code:
|
|
741
|
-
[src/commands/upgrade.ts](https://github.com/GMOD/jbrowse-components/blob/v2.
|
|
773
|
+
[src/commands/upgrade.ts](https://github.com/GMOD/jbrowse-components/blob/v2.18.0/products/jbrowse-cli/src/commands/upgrade.ts)_
|
|
742
774
|
|
|
743
775
|
<!-- commandsstop -->
|
|
744
776
|
|
package/lib/base.js
CHANGED
|
@@ -6,9 +6,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
6
6
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
const core_1 = require("@oclif/core");
|
|
10
9
|
const fs_1 = require("fs");
|
|
11
10
|
const path_1 = __importDefault(require("path"));
|
|
11
|
+
const core_1 = require("@oclif/core");
|
|
12
12
|
const json_parse_better_errors_1 = __importDefault(require("json-parse-better-errors"));
|
|
13
13
|
const fetchWithProxy_1 = __importDefault(require("./fetchWithProxy"));
|
|
14
14
|
class JBrowseCommand extends core_1.Command {
|
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const core_1 = require("@oclif/core");
|
|
7
6
|
const fs_1 = __importDefault(require("fs"));
|
|
8
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const core_1 = require("@oclif/core");
|
|
9
9
|
const base_1 = __importDefault(require("../base"));
|
|
10
10
|
const { rename, copyFile, mkdir, symlink } = fs_1.default.promises;
|
|
11
11
|
function isValidJSON(string) {
|
|
@@ -3,13 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const core_1 = require("@oclif/core");
|
|
7
6
|
const fs_1 = __importDefault(require("fs"));
|
|
8
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const core_1 = require("@oclif/core");
|
|
9
9
|
const json_parse_better_errors_1 = __importDefault(require("json-parse-better-errors"));
|
|
10
|
-
// locals
|
|
11
|
-
const fetchWithProxy_1 = __importDefault(require("../fetchWithProxy"));
|
|
12
10
|
const base_1 = __importDefault(require("../base"));
|
|
11
|
+
const fetchWithProxy_1 = __importDefault(require("../fetchWithProxy"));
|
|
13
12
|
class AddConnection extends base_1.default {
|
|
14
13
|
async run() {
|
|
15
14
|
const { args: runArgs, flags: runFlags } = await this.parse(AddConnection);
|
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const core_1 = require("@oclif/core");
|
|
7
6
|
const fs_1 = require("fs");
|
|
7
|
+
const core_1 = require("@oclif/core");
|
|
8
8
|
const base_1 = __importDefault(require("../base"));
|
|
9
9
|
class AddTrackJson extends base_1.default {
|
|
10
10
|
async run() {
|
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const core_1 = require("@oclif/core");
|
|
7
6
|
const fs_1 = __importDefault(require("fs"));
|
|
8
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const core_1 = require("@oclif/core");
|
|
9
9
|
const json_parse_better_errors_1 = __importDefault(require("json-parse-better-errors"));
|
|
10
10
|
const base_1 = __importDefault(require("../base"));
|
|
11
11
|
const { copyFile, rename, symlink } = fs_1.default.promises;
|
|
@@ -3,15 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const core_1 = require("@oclif/core");
|
|
7
|
-
const path_1 = __importDefault(require("path"));
|
|
8
|
-
const fs_1 = __importDefault(require("fs"));
|
|
9
6
|
const crypto_1 = __importDefault(require("crypto"));
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const os_1 = __importDefault(require("os"));
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
const core_1 = require("@oclif/core");
|
|
10
11
|
const boxen_1 = __importDefault(require("boxen"));
|
|
11
12
|
const chalk_1 = __importDefault(require("chalk"));
|
|
12
|
-
const os_1 = __importDefault(require("os"));
|
|
13
|
-
const express_1 = __importDefault(require("express"));
|
|
14
13
|
const cors_1 = __importDefault(require("cors"));
|
|
14
|
+
const express_1 = __importDefault(require("express"));
|
|
15
15
|
const base_1 = __importDefault(require("../base"));
|
|
16
16
|
function isValidPort(port) {
|
|
17
17
|
return port > 0 && port < 65535;
|
package/lib/commands/create.js
CHANGED
|
@@ -3,11 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const core_1 = require("@oclif/core");
|
|
7
6
|
const fs_1 = __importDefault(require("fs"));
|
|
8
|
-
const
|
|
9
|
-
const base_1 = __importDefault(require("../base"));
|
|
7
|
+
const core_1 = require("@oclif/core");
|
|
10
8
|
const decompress_1 = __importDefault(require("decompress"));
|
|
9
|
+
const base_1 = __importDefault(require("../base"));
|
|
10
|
+
const fetchWithProxy_1 = __importDefault(require("../fetchWithProxy"));
|
|
11
11
|
const fsPromises = fs_1.default.promises;
|
|
12
12
|
class Create extends base_1.default {
|
|
13
13
|
async run() {
|
package/lib/commands/make-pif.js
CHANGED
|
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.flipCigar = flipCigar;
|
|
7
7
|
exports.swapIndelCigar = swapIndelCigar;
|
|
8
8
|
exports.createPIF = createPIF;
|
|
9
|
+
const child_process_1 = require("child_process");
|
|
9
10
|
const fs_1 = __importDefault(require("fs"));
|
|
11
|
+
const path_1 = __importDefault(require("path"));
|
|
10
12
|
const readline_1 = __importDefault(require("readline"));
|
|
11
13
|
const zlib_1 = require("zlib");
|
|
12
14
|
const core_1 = require("@oclif/core");
|
|
13
15
|
const command_exists_1 = require("command-exists");
|
|
14
|
-
const child_process_1 = require("child_process");
|
|
15
|
-
const path_1 = __importDefault(require("path"));
|
|
16
16
|
const base_1 = __importDefault(require("../base"));
|
|
17
17
|
const cigarRegex = new RegExp(/([MIDNSHPX=])/);
|
|
18
18
|
function getReadline(filename) {
|
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const core_1 = require("@oclif/core");
|
|
7
6
|
const fs_1 = require("fs");
|
|
7
|
+
const core_1 = require("@oclif/core");
|
|
8
8
|
const base_1 = __importDefault(require("../base"));
|
|
9
9
|
class RemoveTrackJson extends base_1.default {
|
|
10
10
|
async run() {
|
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const core_1 = require("@oclif/core");
|
|
7
6
|
const fs_1 = __importDefault(require("fs"));
|
|
7
|
+
const core_1 = require("@oclif/core");
|
|
8
8
|
const json_parse_better_errors_1 = __importDefault(require("json-parse-better-errors"));
|
|
9
9
|
const base_1 = __importDefault(require("../base"));
|
|
10
10
|
const fsPromises = fs_1.default.promises;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const child_process_1 = require("child_process");
|
|
7
|
+
const core_1 = require("@oclif/core");
|
|
8
|
+
const command_exists_1 = require("command-exists");
|
|
9
|
+
const base_1 = __importDefault(require("../base"));
|
|
10
|
+
class SortGff extends base_1.default {
|
|
11
|
+
async run() {
|
|
12
|
+
const { args: { file }, } = await this.parse(SortGff);
|
|
13
|
+
if ((0, command_exists_1.sync)('sh') &&
|
|
14
|
+
(0, command_exists_1.sync)('sort') &&
|
|
15
|
+
(0, command_exists_1.sync)('grep')) {
|
|
16
|
+
// this command comes from the tabix docs http://www.htslib.org/doc/tabix.html
|
|
17
|
+
(0, child_process_1.spawn)('sh', [
|
|
18
|
+
'-c',
|
|
19
|
+
`(grep "^#" "${file}"; grep -v "^#" "${file}" | sort -t"\`printf '\t'\`" -k1,1 -k2,2n)`,
|
|
20
|
+
], {
|
|
21
|
+
env: { ...process.env, LC_ALL: 'C' },
|
|
22
|
+
stdio: 'inherit',
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
throw new Error('Unable to sort, requires unix type environment with sort, grep');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
SortGff.description = 'Helper utility to sort GFF files for tabix. Moves all lines starting with # to the top of the file, and sort by refname and start position using unix utilities sort and grep';
|
|
31
|
+
SortGff.examples = [
|
|
32
|
+
'# sort gff and pipe to bgzip',
|
|
33
|
+
'$ jbrowse sort-gff input.gff | bgzip > sorted.gff.gz',
|
|
34
|
+
'$ tabix sorted.gff.gz',
|
|
35
|
+
];
|
|
36
|
+
SortGff.args = {
|
|
37
|
+
file: core_1.Args.string({
|
|
38
|
+
required: true,
|
|
39
|
+
description: 'GFF file',
|
|
40
|
+
}),
|
|
41
|
+
};
|
|
42
|
+
SortGff.flags = {
|
|
43
|
+
help: core_1.Flags.help({ char: 'h' }),
|
|
44
|
+
};
|
|
45
|
+
exports.default = SortGff;
|
package/lib/commands/sort-gff.js
CHANGED
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const child_process_1 = require("child_process");
|
|
6
7
|
const core_1 = require("@oclif/core");
|
|
7
8
|
const command_exists_1 = require("command-exists");
|
|
8
|
-
const child_process_1 = require("child_process");
|
|
9
9
|
const base_1 = __importDefault(require("../base"));
|
|
10
10
|
class SortGff extends base_1.default {
|
|
11
11
|
async run() {
|
|
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const fs_1 = __importDefault(require("fs"));
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
const stream_1 = require("stream");
|
|
9
|
-
const ixixx_1 = require("ixixx");
|
|
10
9
|
const core_1 = require("@oclif/core");
|
|
11
|
-
|
|
12
|
-
const gff3Adapter_1 = require("../types/gff3Adapter");
|
|
13
|
-
const vcfAdapter_1 = require("../types/vcfAdapter");
|
|
10
|
+
const ixixx_1 = require("ixixx");
|
|
14
11
|
const base_1 = __importDefault(require("../base"));
|
|
15
12
|
const common_1 = require("../types/common");
|
|
13
|
+
const gff3Adapter_1 = require("../types/gff3Adapter");
|
|
14
|
+
const vcfAdapter_1 = require("../types/vcfAdapter");
|
|
16
15
|
function readConf(path) {
|
|
17
16
|
return JSON.parse(fs_1.default.readFileSync(path, 'utf8'));
|
|
18
17
|
}
|
package/lib/commands/upgrade.js
CHANGED
|
@@ -3,12 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const core_1 = require("@oclif/core");
|
|
7
6
|
const fs_1 = __importDefault(require("fs"));
|
|
8
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const core_1 = require("@oclif/core");
|
|
9
9
|
const decompress_1 = __importDefault(require("decompress"));
|
|
10
|
-
const fetchWithProxy_1 = __importDefault(require("../fetchWithProxy"));
|
|
11
10
|
const base_1 = __importDefault(require("../base"));
|
|
11
|
+
const fetchWithProxy_1 = __importDefault(require("../fetchWithProxy"));
|
|
12
12
|
class Upgrade extends base_1.default {
|
|
13
13
|
async run() {
|
|
14
14
|
const { args: runArgs, flags: runFlags } = await this.parse(Upgrade);
|
package/lib/types/gff3Adapter.js
CHANGED
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.indexGff3 = indexGff3;
|
|
7
|
-
const cli_progress_1 = require("cli-progress");
|
|
8
|
-
const zlib_1 = require("zlib");
|
|
9
7
|
const readline_1 = __importDefault(require("readline"));
|
|
8
|
+
const zlib_1 = require("zlib");
|
|
9
|
+
const cli_progress_1 = require("cli-progress");
|
|
10
10
|
const util_1 = require("../util");
|
|
11
11
|
async function* indexGff3({ config, attributesToIndex, inLocation, outLocation, typesToExclude, quiet, }) {
|
|
12
12
|
const { trackId } = config;
|
package/lib/types/vcfAdapter.js
CHANGED
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.indexVcf = indexVcf;
|
|
7
|
-
const cli_progress_1 = require("cli-progress");
|
|
8
|
-
const zlib_1 = require("zlib");
|
|
9
7
|
const readline_1 = __importDefault(require("readline"));
|
|
8
|
+
const zlib_1 = require("zlib");
|
|
9
|
+
const cli_progress_1 = require("cli-progress");
|
|
10
10
|
const util_1 = require("../util");
|
|
11
11
|
async function* indexVcf({ config, attributesToIndex, inLocation, outLocation, quiet, }) {
|
|
12
12
|
const { trackId } = config;
|
package/lib/util.js
CHANGED
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getLocalOrRemoteStream = getLocalOrRemoteStream;
|
|
7
7
|
exports.decodeURIComponentNoThrow = decodeURIComponentNoThrow;
|
|
8
|
-
const common_1 = require("./types/common");
|
|
9
8
|
const fs_1 = __importDefault(require("fs"));
|
|
10
9
|
const path_1 = __importDefault(require("path"));
|
|
10
|
+
const common_1 = require("./types/common");
|
|
11
11
|
async function getLocalOrRemoteStream(uri, out) {
|
|
12
12
|
if ((0, common_1.isURL)(uri)) {
|
|
13
13
|
const result = await (0, common_1.createRemoteStream)(uri);
|
package/oclif.manifest.json
CHANGED
|
@@ -859,6 +859,44 @@
|
|
|
859
859
|
"set-default-session.js"
|
|
860
860
|
]
|
|
861
861
|
},
|
|
862
|
+
"sort-bed": {
|
|
863
|
+
"aliases": [],
|
|
864
|
+
"args": {
|
|
865
|
+
"file": {
|
|
866
|
+
"description": "GFF file",
|
|
867
|
+
"name": "file",
|
|
868
|
+
"required": true
|
|
869
|
+
}
|
|
870
|
+
},
|
|
871
|
+
"description": "Helper utility to sort GFF files for tabix. Moves all lines starting with # to the top of the file, and sort by refname and start position using unix utilities sort and grep",
|
|
872
|
+
"examples": [
|
|
873
|
+
"# sort gff and pipe to bgzip",
|
|
874
|
+
"$ jbrowse sort-gff input.gff | bgzip > sorted.gff.gz",
|
|
875
|
+
"$ tabix sorted.gff.gz"
|
|
876
|
+
],
|
|
877
|
+
"flags": {
|
|
878
|
+
"help": {
|
|
879
|
+
"char": "h",
|
|
880
|
+
"description": "Show CLI help.",
|
|
881
|
+
"name": "help",
|
|
882
|
+
"allowNo": false,
|
|
883
|
+
"type": "boolean"
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
"hasDynamicHelp": false,
|
|
887
|
+
"hiddenAliases": [],
|
|
888
|
+
"id": "sort-bed",
|
|
889
|
+
"pluginAlias": "@jbrowse/cli",
|
|
890
|
+
"pluginName": "@jbrowse/cli",
|
|
891
|
+
"pluginType": "core",
|
|
892
|
+
"strict": true,
|
|
893
|
+
"isESM": false,
|
|
894
|
+
"relativePath": [
|
|
895
|
+
"lib",
|
|
896
|
+
"commands",
|
|
897
|
+
"sort-bed.js"
|
|
898
|
+
]
|
|
899
|
+
},
|
|
862
900
|
"sort-gff": {
|
|
863
901
|
"aliases": [],
|
|
864
902
|
"args": {
|
|
@@ -1127,5 +1165,5 @@
|
|
|
1127
1165
|
]
|
|
1128
1166
|
}
|
|
1129
1167
|
},
|
|
1130
|
-
"version": "2.
|
|
1168
|
+
"version": "2.18.0"
|
|
1131
1169
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.0",
|
|
4
4
|
"description": "A command line tool for working with JBrowse 2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "c344ea60099cb7e460b77f15808946b24a7eee74"
|
|
77
77
|
}
|