@jbrowse/cli 3.1.0 → 3.2.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 +15 -15
- package/lib/commands/text-index.js +3 -3
- package/lib/commands/upgrade.js +4 -4
- package/oclif.manifest.json +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -206,7 +206,7 @@ EXAMPLES
|
|
|
206
206
|
```
|
|
207
207
|
|
|
208
208
|
_See code:
|
|
209
|
-
[src/commands/add-assembly.ts](https://github.com/GMOD/jbrowse-components/blob/v3.
|
|
209
|
+
[src/commands/add-assembly.ts](https://github.com/GMOD/jbrowse-components/blob/v3.2.0/products/jbrowse-cli/src/commands/add-assembly.ts)_
|
|
210
210
|
|
|
211
211
|
## `jbrowse add-connection CONNECTIONURLORPATH`
|
|
212
212
|
|
|
@@ -257,7 +257,7 @@ EXAMPLES
|
|
|
257
257
|
```
|
|
258
258
|
|
|
259
259
|
_See code:
|
|
260
|
-
[src/commands/add-connection.ts](https://github.com/GMOD/jbrowse-components/blob/v3.
|
|
260
|
+
[src/commands/add-connection.ts](https://github.com/GMOD/jbrowse-components/blob/v3.2.0/products/jbrowse-cli/src/commands/add-connection.ts)_
|
|
261
261
|
|
|
262
262
|
## `jbrowse add-track TRACK`
|
|
263
263
|
|
|
@@ -338,7 +338,7 @@ EXAMPLES
|
|
|
338
338
|
```
|
|
339
339
|
|
|
340
340
|
_See code:
|
|
341
|
-
[src/commands/add-track.ts](https://github.com/GMOD/jbrowse-components/blob/v3.
|
|
341
|
+
[src/commands/add-track.ts](https://github.com/GMOD/jbrowse-components/blob/v3.2.0/products/jbrowse-cli/src/commands/add-track.ts)_
|
|
342
342
|
|
|
343
343
|
## `jbrowse add-track-json TRACK`
|
|
344
344
|
|
|
@@ -368,7 +368,7 @@ EXAMPLES
|
|
|
368
368
|
```
|
|
369
369
|
|
|
370
370
|
_See code:
|
|
371
|
-
[src/commands/add-track-json.ts](https://github.com/GMOD/jbrowse-components/blob/v3.
|
|
371
|
+
[src/commands/add-track-json.ts](https://github.com/GMOD/jbrowse-components/blob/v3.2.0/products/jbrowse-cli/src/commands/add-track-json.ts)_
|
|
372
372
|
|
|
373
373
|
## `jbrowse admin-server`
|
|
374
374
|
|
|
@@ -400,7 +400,7 @@ EXAMPLES
|
|
|
400
400
|
```
|
|
401
401
|
|
|
402
402
|
_See code:
|
|
403
|
-
[src/commands/admin-server.ts](https://github.com/GMOD/jbrowse-components/blob/v3.
|
|
403
|
+
[src/commands/admin-server.ts](https://github.com/GMOD/jbrowse-components/blob/v3.2.0/products/jbrowse-cli/src/commands/admin-server.ts)_
|
|
404
404
|
|
|
405
405
|
## `jbrowse create LOCALPATH`
|
|
406
406
|
|
|
@@ -457,7 +457,7 @@ EXAMPLES
|
|
|
457
457
|
```
|
|
458
458
|
|
|
459
459
|
_See code:
|
|
460
|
-
[src/commands/create.ts](https://github.com/GMOD/jbrowse-components/blob/v3.
|
|
460
|
+
[src/commands/create.ts](https://github.com/GMOD/jbrowse-components/blob/v3.2.0/products/jbrowse-cli/src/commands/create.ts)_
|
|
461
461
|
|
|
462
462
|
## `jbrowse help [COMMAND]`
|
|
463
463
|
|
|
@@ -478,7 +478,7 @@ DESCRIPTION
|
|
|
478
478
|
```
|
|
479
479
|
|
|
480
480
|
_See code:
|
|
481
|
-
[@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.27/src/commands/help.ts)_
|
|
482
482
|
|
|
483
483
|
## `jbrowse make-pif FILE`
|
|
484
484
|
|
|
@@ -508,7 +508,7 @@ EXAMPLES
|
|
|
508
508
|
```
|
|
509
509
|
|
|
510
510
|
_See code:
|
|
511
|
-
[src/commands/make-pif.ts](https://github.com/GMOD/jbrowse-components/blob/v3.
|
|
511
|
+
[src/commands/make-pif.ts](https://github.com/GMOD/jbrowse-components/blob/v3.2.0/products/jbrowse-cli/src/commands/make-pif.ts)_
|
|
512
512
|
|
|
513
513
|
## `jbrowse remove-track TRACK`
|
|
514
514
|
|
|
@@ -536,7 +536,7 @@ EXAMPLES
|
|
|
536
536
|
```
|
|
537
537
|
|
|
538
538
|
_See code:
|
|
539
|
-
[src/commands/remove-track.ts](https://github.com/GMOD/jbrowse-components/blob/v3.
|
|
539
|
+
[src/commands/remove-track.ts](https://github.com/GMOD/jbrowse-components/blob/v3.2.0/products/jbrowse-cli/src/commands/remove-track.ts)_
|
|
540
540
|
|
|
541
541
|
## `jbrowse set-default-session`
|
|
542
542
|
|
|
@@ -578,7 +578,7 @@ EXAMPLES
|
|
|
578
578
|
```
|
|
579
579
|
|
|
580
580
|
_See code:
|
|
581
|
-
[src/commands/set-default-session.ts](https://github.com/GMOD/jbrowse-components/blob/v3.
|
|
581
|
+
[src/commands/set-default-session.ts](https://github.com/GMOD/jbrowse-components/blob/v3.2.0/products/jbrowse-cli/src/commands/set-default-session.ts)_
|
|
582
582
|
|
|
583
583
|
## `jbrowse sort-bed FILE`
|
|
584
584
|
|
|
@@ -609,7 +609,7 @@ EXAMPLES
|
|
|
609
609
|
```
|
|
610
610
|
|
|
611
611
|
_See code:
|
|
612
|
-
[src/commands/sort-bed.ts](https://github.com/GMOD/jbrowse-components/blob/v3.
|
|
612
|
+
[src/commands/sort-bed.ts](https://github.com/GMOD/jbrowse-components/blob/v3.2.0/products/jbrowse-cli/src/commands/sort-bed.ts)_
|
|
613
613
|
|
|
614
614
|
## `jbrowse sort-gff FILE`
|
|
615
615
|
|
|
@@ -640,7 +640,7 @@ EXAMPLES
|
|
|
640
640
|
```
|
|
641
641
|
|
|
642
642
|
_See code:
|
|
643
|
-
[src/commands/sort-gff.ts](https://github.com/GMOD/jbrowse-components/blob/v3.
|
|
643
|
+
[src/commands/sort-gff.ts](https://github.com/GMOD/jbrowse-components/blob/v3.2.0/products/jbrowse-cli/src/commands/sort-gff.ts)_
|
|
644
644
|
|
|
645
645
|
## `jbrowse text-index`
|
|
646
646
|
|
|
@@ -701,13 +701,13 @@ EXAMPLES
|
|
|
701
701
|
|
|
702
702
|
|
|
703
703
|
|
|
704
|
-
# create index for some files for use in @jbrowse/react-linear-genome-
|
|
704
|
+
# create index for some files for use in @jbrowse/react-linear-genome-view2 or similar
|
|
705
705
|
|
|
706
706
|
$ jbrowse text-index --file myfile.gff3.gz --file myfile.vcfgz --out indexes
|
|
707
707
|
```
|
|
708
708
|
|
|
709
709
|
_See code:
|
|
710
|
-
[src/commands/text-index.ts](https://github.com/GMOD/jbrowse-components/blob/v3.
|
|
710
|
+
[src/commands/text-index.ts](https://github.com/GMOD/jbrowse-components/blob/v3.2.0/products/jbrowse-cli/src/commands/text-index.ts)_
|
|
711
711
|
|
|
712
712
|
## `jbrowse upgrade [LOCALPATH]`
|
|
713
713
|
|
|
@@ -770,7 +770,7 @@ EXAMPLES
|
|
|
770
770
|
```
|
|
771
771
|
|
|
772
772
|
_See code:
|
|
773
|
-
[src/commands/upgrade.ts](https://github.com/GMOD/jbrowse-components/blob/v3.
|
|
773
|
+
[src/commands/upgrade.ts](https://github.com/GMOD/jbrowse-components/blob/v3.2.0/products/jbrowse-cli/src/commands/upgrade.ts)_
|
|
774
774
|
|
|
775
775
|
<!-- commandsstop -->
|
|
776
776
|
|
|
@@ -201,8 +201,8 @@ class TextIndex extends base_1.default {
|
|
|
201
201
|
.map(file => (0, common_1.guessAdapterFromFileName)(file))
|
|
202
202
|
.filter(fileConfig => (0, common_1.supported)(fileConfig.adapter?.type));
|
|
203
203
|
if (fileId?.length) {
|
|
204
|
-
for (
|
|
205
|
-
trackConfigs[i].trackId =
|
|
204
|
+
for (const [i, element] of fileId.entries()) {
|
|
205
|
+
trackConfigs[i].trackId = element;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
await this.indexDriver({
|
|
@@ -323,7 +323,7 @@ TextIndex.examples = [
|
|
|
323
323
|
'# indexes only a specific assembly, and overwrite what was previously there using force (which is needed if a previous index already existed)',
|
|
324
324
|
'$ jbrowse text-index -a hg19 --force',
|
|
325
325
|
'',
|
|
326
|
-
'# create index for some files for use in @jbrowse/react-linear-genome-
|
|
326
|
+
'# create index for some files for use in @jbrowse/react-linear-genome-view2 or similar',
|
|
327
327
|
'$ jbrowse text-index --file myfile.gff3.gz --file myfile.vcfgz --out indexes',
|
|
328
328
|
];
|
|
329
329
|
TextIndex.flags = {
|
package/lib/commands/upgrade.js
CHANGED
|
@@ -44,11 +44,11 @@ class Upgrade extends base_1.default {
|
|
|
44
44
|
}
|
|
45
45
|
if (clean) {
|
|
46
46
|
fs_1.default.rmSync(path_1.default.join(argsPath, 'static'), { recursive: true, force: true });
|
|
47
|
-
fs_1.default
|
|
48
|
-
.
|
|
49
|
-
.
|
|
47
|
+
for (const f of fs_1.default
|
|
48
|
+
.readdirSync(argsPath)
|
|
49
|
+
.filter(f => f.includes('worker.js'))) {
|
|
50
50
|
fs_1.default.unlinkSync(path_1.default.join(argsPath, f));
|
|
51
|
-
}
|
|
51
|
+
}
|
|
52
52
|
}
|
|
53
53
|
await (0, decompress_1.default)(Buffer.from(await response.arrayBuffer()), argsPath);
|
|
54
54
|
this.log(`Unpacked ${locationUrl} at ${argsPath}`);
|
package/oclif.manifest.json
CHANGED
|
@@ -952,7 +952,7 @@
|
|
|
952
952
|
"# indexes only a specific assembly, and overwrite what was previously there using force (which is needed if a previous index already existed)",
|
|
953
953
|
"$ jbrowse text-index -a hg19 --force",
|
|
954
954
|
"",
|
|
955
|
-
"# create index for some files for use in @jbrowse/react-linear-genome-
|
|
955
|
+
"# create index for some files for use in @jbrowse/react-linear-genome-view2 or similar",
|
|
956
956
|
"$ jbrowse text-index --file myfile.gff3.gz --file myfile.vcfgz --out indexes"
|
|
957
957
|
],
|
|
958
958
|
"flags": {
|
|
@@ -1165,5 +1165,5 @@
|
|
|
1165
1165
|
]
|
|
1166
1166
|
}
|
|
1167
1167
|
},
|
|
1168
|
-
"version": "3.
|
|
1168
|
+
"version": "3.2.0"
|
|
1169
1169
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.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": "c750e3f56706a490c19ba75abd807fec5e38aebf"
|
|
77
77
|
}
|