@jbrowse/cli 2.1.2 → 2.1.3
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 +9 -9
- package/lib/commands/add-track.d.ts +41 -0
- package/lib/commands/add-track.js +6 -0
- package/lib/types/common.d.ts +0 -8
- package/lib/types/common.js +0 -13
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -157,7 +157,7 @@ EXAMPLES
|
|
|
157
157
|
$ jbrowse add-assembly myfile.fa.gz --load copy
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
-
_See code: [src/commands/add-assembly.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.
|
|
160
|
+
_See code: [src/commands/add-assembly.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.3/products/jbrowse-cli/src/commands/add-assembly.ts)_
|
|
161
161
|
|
|
162
162
|
## `jbrowse add-connection CONNECTIONURLORPATH`
|
|
163
163
|
|
|
@@ -211,7 +211,7 @@ EXAMPLES
|
|
|
211
211
|
/path/to/jb2/installation/config.json
|
|
212
212
|
```
|
|
213
213
|
|
|
214
|
-
_See code: [src/commands/add-connection.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.
|
|
214
|
+
_See code: [src/commands/add-connection.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.3/products/jbrowse-cli/src/commands/add-connection.ts)_
|
|
215
215
|
|
|
216
216
|
## `jbrowse add-track TRACK`
|
|
217
217
|
|
|
@@ -285,7 +285,7 @@ EXAMPLES
|
|
|
285
285
|
$ jbrowse add-track /url/relative/path.bam --load inPlace
|
|
286
286
|
```
|
|
287
287
|
|
|
288
|
-
_See code: [src/commands/add-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.
|
|
288
|
+
_See code: [src/commands/add-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.3/products/jbrowse-cli/src/commands/add-track.ts)_
|
|
289
289
|
|
|
290
290
|
## `jbrowse add-track-json TRACK`
|
|
291
291
|
|
|
@@ -310,7 +310,7 @@ EXAMPLES
|
|
|
310
310
|
$ jbrowse add-track-json track.json --update
|
|
311
311
|
```
|
|
312
312
|
|
|
313
|
-
_See code: [src/commands/add-track-json.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.
|
|
313
|
+
_See code: [src/commands/add-track-json.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.3/products/jbrowse-cli/src/commands/add-track-json.ts)_
|
|
314
314
|
|
|
315
315
|
## `jbrowse admin-server`
|
|
316
316
|
|
|
@@ -340,7 +340,7 @@ EXAMPLES
|
|
|
340
340
|
$ jbrowse admin-server -p 8888
|
|
341
341
|
```
|
|
342
342
|
|
|
343
|
-
_See code: [src/commands/admin-server.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.
|
|
343
|
+
_See code: [src/commands/admin-server.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.3/products/jbrowse-cli/src/commands/admin-server.ts)_
|
|
344
344
|
|
|
345
345
|
## `jbrowse create LOCALPATH`
|
|
346
346
|
|
|
@@ -384,7 +384,7 @@ EXAMPLES
|
|
|
384
384
|
$ jbrowse create --listVersions
|
|
385
385
|
```
|
|
386
386
|
|
|
387
|
-
_See code: [src/commands/create.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.
|
|
387
|
+
_See code: [src/commands/create.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.3/products/jbrowse-cli/src/commands/create.ts)_
|
|
388
388
|
|
|
389
389
|
## `jbrowse help [COMMAND]`
|
|
390
390
|
|
|
@@ -438,7 +438,7 @@ EXAMPLES
|
|
|
438
438
|
$ jbrowse set-default-session --currentSession # Prints out current default session
|
|
439
439
|
```
|
|
440
440
|
|
|
441
|
-
_See code: [src/commands/set-default-session.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.
|
|
441
|
+
_See code: [src/commands/set-default-session.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.3/products/jbrowse-cli/src/commands/set-default-session.ts)_
|
|
442
442
|
|
|
443
443
|
## `jbrowse text-index`
|
|
444
444
|
|
|
@@ -499,7 +499,7 @@ EXAMPLES
|
|
|
499
499
|
$ jbrowse text-index --file myfile.gff3.gz --file myfile.vcfgz --out indexes
|
|
500
500
|
```
|
|
501
501
|
|
|
502
|
-
_See code: [src/commands/text-index.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.
|
|
502
|
+
_See code: [src/commands/text-index.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.3/products/jbrowse-cli/src/commands/text-index.ts)_
|
|
503
503
|
|
|
504
504
|
## `jbrowse upgrade [LOCALPATH]`
|
|
505
505
|
|
|
@@ -547,7 +547,7 @@ EXAMPLES
|
|
|
547
547
|
$ jbrowse upgrade --nightly
|
|
548
548
|
```
|
|
549
549
|
|
|
550
|
-
_See code: [src/commands/upgrade.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.
|
|
550
|
+
_See code: [src/commands/upgrade.ts](https://github.com/GMOD/jbrowse-components/blob/v2.1.3/products/jbrowse-cli/src/commands/upgrade.ts)_
|
|
551
551
|
|
|
552
552
|
<!-- commandsstop -->
|
|
553
553
|
|
|
@@ -69,6 +69,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
69
69
|
vcfLocation?: undefined;
|
|
70
70
|
vcfGzLocation?: undefined;
|
|
71
71
|
bedGzLocation?: undefined;
|
|
72
|
+
bedLocation?: undefined;
|
|
72
73
|
bigBedLocation?: undefined;
|
|
73
74
|
bigWigLocation?: undefined;
|
|
74
75
|
fastaLocation?: undefined;
|
|
@@ -91,6 +92,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
91
92
|
vcfLocation?: undefined;
|
|
92
93
|
vcfGzLocation?: undefined;
|
|
93
94
|
bedGzLocation?: undefined;
|
|
95
|
+
bedLocation?: undefined;
|
|
94
96
|
bigBedLocation?: undefined;
|
|
95
97
|
bigWigLocation?: undefined;
|
|
96
98
|
fastaLocation?: undefined;
|
|
@@ -113,6 +115,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
113
115
|
vcfLocation?: undefined;
|
|
114
116
|
vcfGzLocation?: undefined;
|
|
115
117
|
bedGzLocation?: undefined;
|
|
118
|
+
bedLocation?: undefined;
|
|
116
119
|
bigBedLocation?: undefined;
|
|
117
120
|
bigWigLocation?: undefined;
|
|
118
121
|
fastaLocation?: undefined;
|
|
@@ -138,6 +141,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
138
141
|
vcfLocation?: undefined;
|
|
139
142
|
vcfGzLocation?: undefined;
|
|
140
143
|
bedGzLocation?: undefined;
|
|
144
|
+
bedLocation?: undefined;
|
|
141
145
|
bigBedLocation?: undefined;
|
|
142
146
|
bigWigLocation?: undefined;
|
|
143
147
|
fastaLocation?: undefined;
|
|
@@ -160,6 +164,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
160
164
|
vcfLocation?: undefined;
|
|
161
165
|
vcfGzLocation?: undefined;
|
|
162
166
|
bedGzLocation?: undefined;
|
|
167
|
+
bedLocation?: undefined;
|
|
163
168
|
bigBedLocation?: undefined;
|
|
164
169
|
bigWigLocation?: undefined;
|
|
165
170
|
fastaLocation?: undefined;
|
|
@@ -182,6 +187,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
182
187
|
gtfLocation?: undefined;
|
|
183
188
|
vcfGzLocation?: undefined;
|
|
184
189
|
bedGzLocation?: undefined;
|
|
190
|
+
bedLocation?: undefined;
|
|
185
191
|
bigBedLocation?: undefined;
|
|
186
192
|
bigWigLocation?: undefined;
|
|
187
193
|
fastaLocation?: undefined;
|
|
@@ -207,6 +213,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
207
213
|
gtfLocation?: undefined;
|
|
208
214
|
vcfLocation?: undefined;
|
|
209
215
|
bedGzLocation?: undefined;
|
|
216
|
+
bedLocation?: undefined;
|
|
210
217
|
bigBedLocation?: undefined;
|
|
211
218
|
bigWigLocation?: undefined;
|
|
212
219
|
fastaLocation?: undefined;
|
|
@@ -229,6 +236,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
229
236
|
vcfLocation?: undefined;
|
|
230
237
|
vcfGzLocation?: undefined;
|
|
231
238
|
bedGzLocation?: undefined;
|
|
239
|
+
bedLocation?: undefined;
|
|
232
240
|
bigBedLocation?: undefined;
|
|
233
241
|
bigWigLocation?: undefined;
|
|
234
242
|
fastaLocation?: undefined;
|
|
@@ -254,6 +262,30 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
254
262
|
gtfLocation?: undefined;
|
|
255
263
|
vcfLocation?: undefined;
|
|
256
264
|
vcfGzLocation?: undefined;
|
|
265
|
+
bedLocation?: undefined;
|
|
266
|
+
bigBedLocation?: undefined;
|
|
267
|
+
bigWigLocation?: undefined;
|
|
268
|
+
fastaLocation?: undefined;
|
|
269
|
+
faiLocation?: undefined;
|
|
270
|
+
gziLocation?: undefined;
|
|
271
|
+
twoBitLocation?: undefined;
|
|
272
|
+
rootUrlTemplate?: undefined;
|
|
273
|
+
endpoint?: undefined;
|
|
274
|
+
hicLocation?: undefined;
|
|
275
|
+
pafLocation?: undefined;
|
|
276
|
+
} | {
|
|
277
|
+
type: string;
|
|
278
|
+
bedLocation: UriLocation | LocalPathLocation;
|
|
279
|
+
bamLocation?: undefined;
|
|
280
|
+
index?: undefined;
|
|
281
|
+
cramLocation?: undefined;
|
|
282
|
+
craiLocation?: undefined;
|
|
283
|
+
gffLocation?: undefined;
|
|
284
|
+
gffGzLocation?: undefined;
|
|
285
|
+
gtfLocation?: undefined;
|
|
286
|
+
vcfLocation?: undefined;
|
|
287
|
+
vcfGzLocation?: undefined;
|
|
288
|
+
bedGzLocation?: undefined;
|
|
257
289
|
bigBedLocation?: undefined;
|
|
258
290
|
bigWigLocation?: undefined;
|
|
259
291
|
fastaLocation?: undefined;
|
|
@@ -277,6 +309,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
277
309
|
vcfLocation?: undefined;
|
|
278
310
|
vcfGzLocation?: undefined;
|
|
279
311
|
bedGzLocation?: undefined;
|
|
312
|
+
bedLocation?: undefined;
|
|
280
313
|
bigWigLocation?: undefined;
|
|
281
314
|
fastaLocation?: undefined;
|
|
282
315
|
faiLocation?: undefined;
|
|
@@ -299,6 +332,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
299
332
|
vcfLocation?: undefined;
|
|
300
333
|
vcfGzLocation?: undefined;
|
|
301
334
|
bedGzLocation?: undefined;
|
|
335
|
+
bedLocation?: undefined;
|
|
302
336
|
bigBedLocation?: undefined;
|
|
303
337
|
fastaLocation?: undefined;
|
|
304
338
|
faiLocation?: undefined;
|
|
@@ -322,6 +356,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
322
356
|
vcfLocation?: undefined;
|
|
323
357
|
vcfGzLocation?: undefined;
|
|
324
358
|
bedGzLocation?: undefined;
|
|
359
|
+
bedLocation?: undefined;
|
|
325
360
|
bigBedLocation?: undefined;
|
|
326
361
|
bigWigLocation?: undefined;
|
|
327
362
|
gziLocation?: undefined;
|
|
@@ -345,6 +380,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
345
380
|
vcfLocation?: undefined;
|
|
346
381
|
vcfGzLocation?: undefined;
|
|
347
382
|
bedGzLocation?: undefined;
|
|
383
|
+
bedLocation?: undefined;
|
|
348
384
|
bigBedLocation?: undefined;
|
|
349
385
|
bigWigLocation?: undefined;
|
|
350
386
|
twoBitLocation?: undefined;
|
|
@@ -365,6 +401,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
365
401
|
vcfLocation?: undefined;
|
|
366
402
|
vcfGzLocation?: undefined;
|
|
367
403
|
bedGzLocation?: undefined;
|
|
404
|
+
bedLocation?: undefined;
|
|
368
405
|
bigBedLocation?: undefined;
|
|
369
406
|
bigWigLocation?: undefined;
|
|
370
407
|
fastaLocation?: undefined;
|
|
@@ -387,6 +424,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
387
424
|
vcfLocation?: undefined;
|
|
388
425
|
vcfGzLocation?: undefined;
|
|
389
426
|
bedGzLocation?: undefined;
|
|
427
|
+
bedLocation?: undefined;
|
|
390
428
|
bigBedLocation?: undefined;
|
|
391
429
|
bigWigLocation?: undefined;
|
|
392
430
|
fastaLocation?: undefined;
|
|
@@ -409,6 +447,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
409
447
|
vcfLocation?: undefined;
|
|
410
448
|
vcfGzLocation?: undefined;
|
|
411
449
|
bedGzLocation?: undefined;
|
|
450
|
+
bedLocation?: undefined;
|
|
412
451
|
bigBedLocation?: undefined;
|
|
413
452
|
bigWigLocation?: undefined;
|
|
414
453
|
fastaLocation?: undefined;
|
|
@@ -431,6 +470,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
431
470
|
vcfLocation?: undefined;
|
|
432
471
|
vcfGzLocation?: undefined;
|
|
433
472
|
bedGzLocation?: undefined;
|
|
473
|
+
bedLocation?: undefined;
|
|
434
474
|
bigBedLocation?: undefined;
|
|
435
475
|
bigWigLocation?: undefined;
|
|
436
476
|
fastaLocation?: undefined;
|
|
@@ -453,6 +493,7 @@ export default class AddTrack extends JBrowseCommand {
|
|
|
453
493
|
vcfLocation?: undefined;
|
|
454
494
|
vcfGzLocation?: undefined;
|
|
455
495
|
bedGzLocation?: undefined;
|
|
496
|
+
bedLocation?: undefined;
|
|
456
497
|
bigBedLocation?: undefined;
|
|
457
498
|
bigWigLocation?: undefined;
|
|
458
499
|
fastaLocation?: undefined;
|
|
@@ -343,6 +343,12 @@ class AddTrack extends base_1.default {
|
|
|
343
343
|
},
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
|
+
if (/\.bed$/i.test(fileName)) {
|
|
347
|
+
return {
|
|
348
|
+
type: 'BedAdapter',
|
|
349
|
+
bedLocation: makeLocation(fileName),
|
|
350
|
+
};
|
|
351
|
+
}
|
|
346
352
|
if (/\.(bb|bigbed)$/i.test(fileName)) {
|
|
347
353
|
return {
|
|
348
354
|
type: 'BigBedAdapter',
|
package/lib/types/common.d.ts
CHANGED
|
@@ -3,14 +3,6 @@ export declare function createRemoteStream(urlIn: string): Promise<import("node-
|
|
|
3
3
|
export declare function isURL(FileName: string): boolean;
|
|
4
4
|
export declare function guessAdapterFromFileName(filePath: string): Track;
|
|
5
5
|
export declare function supported(type: string): boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Generates metadata of index given a filename (trackId or assembly)
|
|
8
|
-
* @param name - assembly name or trackId
|
|
9
|
-
* @param attributes - attributes indexed
|
|
10
|
-
* @param include - feature types included from index
|
|
11
|
-
* @param exclude - feature types excluded from index
|
|
12
|
-
* @param configs - list of track
|
|
13
|
-
*/
|
|
14
6
|
export declare function generateMeta({ configs, attributes, outDir, name, exclude, assemblyNames, }: {
|
|
15
7
|
configs: Track[];
|
|
16
8
|
attributes: string[];
|
package/lib/types/common.js
CHANGED
|
@@ -7,9 +7,6 @@ exports.generateMeta = exports.supported = exports.guessAdapterFromFileName = ex
|
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const fetchWithProxy_1 = __importDefault(require("../fetchWithProxy"));
|
|
10
|
-
// Method for handing off the parsing of a gff3 file URL.
|
|
11
|
-
// Calls the proper parser depending on if it is gzipped or not.
|
|
12
|
-
// Returns a @gmod/gff stream.
|
|
13
10
|
async function createRemoteStream(urlIn) {
|
|
14
11
|
const response = await (0, fetchWithProxy_1.default)(urlIn);
|
|
15
12
|
if (!response.ok) {
|
|
@@ -18,8 +15,6 @@ async function createRemoteStream(urlIn) {
|
|
|
18
15
|
return response;
|
|
19
16
|
}
|
|
20
17
|
exports.createRemoteStream = createRemoteStream;
|
|
21
|
-
// Checks if the passed in string is a valid URL.
|
|
22
|
-
// Returns a boolean.
|
|
23
18
|
function isURL(FileName) {
|
|
24
19
|
let url;
|
|
25
20
|
try {
|
|
@@ -116,14 +111,6 @@ function supported(type) {
|
|
|
116
111
|
].includes(type);
|
|
117
112
|
}
|
|
118
113
|
exports.supported = supported;
|
|
119
|
-
/**
|
|
120
|
-
* Generates metadata of index given a filename (trackId or assembly)
|
|
121
|
-
* @param name - assembly name or trackId
|
|
122
|
-
* @param attributes - attributes indexed
|
|
123
|
-
* @param include - feature types included from index
|
|
124
|
-
* @param exclude - feature types excluded from index
|
|
125
|
-
* @param configs - list of track
|
|
126
|
-
*/
|
|
127
114
|
async function generateMeta({ configs, attributes, outDir, name, exclude, assemblyNames, }) {
|
|
128
115
|
const tracks = configs.map(config => {
|
|
129
116
|
const { trackId, textSearching, adapter } = config;
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.1.2","commands":{"add-assembly":{"id":"add-assembly","description":"Add an assembly to a JBrowse 2 configuration","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["# add assembly to installation in current directory. assumes .fai file also exists, and copies GRCh38.fa and GRCh38.fa.fai to current directory","$ jbrowse add-assembly GRCh38.fa --load copy","","# add assembly to a specific jb2 installation path using --out, and copies the .fa and .fa.fai file to /path/to/jb2","$ jbrowse add-assembly GRCh38.fa --out /path/to/jb2/ --load copy","","# force indexedFasta for add-assembly without relying on file extension","$ jbrowse add-assembly GRCh38.xyz --type indexedFasta --load copy","","# add displayName for an assembly","$ jbrowse add-assembly myFile.fa.gz --name hg38 --displayName \"Homo sapiens (hg38)\"","","# use chrom.sizes file for assembly instead of a fasta file","$ jbrowse add-assembly GRCh38.chrom.sizes --load inPlace","","# add assembly from preconfigured json file, expert option","$ jbrowse add-assembly GRCh38.config.json --load copy","","# add assembly from a 2bit file, also note pointing direct to a URL so no --load flag needed","$ jbrowse add-assembly https://example.com/data/sample.2bit","","# add a bgzip indexed fasta inferred by fa.gz extension. assumes .fa.gz.gzi and .fa.gz.fai files also exists","$ jbrowse add-assembly myfile.fa.gz --load copy"],"flags":{"type":{"name":"type","type":"option","char":"t","description":"type of sequence, by default inferred from sequence file\n\nindexedFasta An index FASTA (e.g. .fa or .fasta) file;\n can optionally specify --faiLocation\n\nbgzipFasta A block-gzipped and indexed FASTA (e.g. .fa.gz or .fasta.gz) file;\n can optionally specify --faiLocation and/or --gziLocation\n\ntwoBit A twoBit (e.g. .2bit) file\n\nchromSizes A chromosome sizes (e.g. .chrom.sizes) file\n\ncustom Either a JSON file location or inline JSON that defines a custom\n sequence adapter; must provide --name if using inline JSON","options":["indexedFasta","bgzipFasta","twoBit","chromSizes","custom"]},"name":{"name":"name","type":"option","char":"n","description":"Name of the assembly; if not specified, will be guessed using the sequence file name"},"alias":{"name":"alias","type":"option","char":"a","description":"An alias for the assembly name (e.g. \"hg38\" if the name of the assembly is \"GRCh38\");\ncan be specified multiple times"},"displayName":{"name":"displayName","type":"option","description":"The display name to specify for the assembly, e.g. \"Homo sapiens (hg38)\" while the name can be a shorter identifier like \"hg38\""},"faiLocation":{"name":"faiLocation","type":"option","description":"[default: <fastaLocation>.fai] FASTA index file or URL"},"gziLocation":{"name":"gziLocation","type":"option","description":"[default: <fastaLocation>.gzi] FASTA gzip index file or URL"},"refNameAliases":{"name":"refNameAliases","type":"option","description":"Reference sequence name aliases file or URL; assumed to be a tab-separated aliases\nfile unless --refNameAliasesType is specified"},"refNameAliasesType":{"name":"refNameAliasesType","type":"option","description":"Type of aliases defined by --refNameAliases; if \"custom\", --refNameAliases is either\na JSON file location or inline JSON that defines a custom sequence adapter","options":["aliases","custom"]},"refNameColors":{"name":"refNameColors","type":"option","description":"A comma-separated list of color strings for the reference sequence names; will cycle\nthrough colors if there are fewer colors than sequences"},"target":{"name":"target","type":"option","description":"path to config file in JB2 installation directory to write out to.\nCreates ./config.json if nonexistent"},"out":{"name":"out","type":"option","description":"synonym for target"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"load":{"name":"load","type":"option","char":"l","description":"Required flag when using a local file. Choose how to manage the data directory. Copy, symlink, or move the data directory to the JBrowse directory. Or use inPlace to modify the config without doing any file operations","options":["copy","symlink","move","inPlace"]},"skipCheck":{"name":"skipCheck","type":"boolean","description":"Don't check whether or not the sequence file or URL exists or if you are in a JBrowse directory","allowNo":false},"overwrite":{"name":"overwrite","type":"boolean","description":"Overwrite existing assembly if one with the same name exists","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Equivalent to `--skipCheck --overwrite`","allowNo":false}},"args":[{"name":"sequence","description":"sequence file or URL\n\nIf TYPE is indexedFasta or bgzipFasta, the index file defaults to <location>.fai\nand can be optionally specified with --faiLocation\nIf TYPE is bgzipFasta, the gzip index file defaults to <location>.gzi and can be\noptionally specified with --gziLocation","required":true}]},"add-connection":{"id":"add-connection","description":"Add a connection to a JBrowse 2 configuration","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["$ jbrowse add-connection http://mysite.com/jbrowse/data/","$ jbrowse add-connection http://mysite.com/jbrowse/custom_data_folder/ --type JBrowse1Connection","$ jbrowse add-connection http://mysite.com/path/to/hub.txt --assemblyName hg19","$ jbrowse add-connection http://mysite.com/path/to/custom_hub_name.txt --type UCSCTrackHubConnection --assemblyName hg19","$ jbrowse add-connection http://mysite.com/path/to/custom --type custom --config '{\"uri\":{\"url\":\"https://mysite.com/path/to/custom\"}, \"locationType\": \"UriLocation\"}' --assemblyName hg19","$ jbrowse add-connection https://mysite.com/path/to/hub.txt --connectionId newId --name newName --target /path/to/jb2/installation/config.json"],"flags":{"type":{"name":"type","type":"option","char":"t","description":"type of connection, ex. JBrowse1Connection, UCSCTrackHubConnection, custom"},"assemblyName":{"name":"assemblyName","type":"option","char":"a","description":"Assembly name of the connection If none, will default to the assembly in your config file"},"config":{"name":"config","type":"option","char":"c","description":"Any extra config settings to add to connection in JSON object format, such as '{\"uri\":\"url\":\"https://sample.com\"}, \"locationType\": \"UriLocation\"}'"},"connectionId":{"name":"connectionId","type":"option","description":"Id for the connection that must be unique to JBrowse. Defaults to 'connectionType-assemblyName-currentTime'"},"name":{"name":"name","type":"option","char":"n","description":"Name of the connection. Defaults to connectionId if not provided"},"target":{"name":"target","type":"option","description":"path to config file in JB2 installation directory to write out to."},"out":{"name":"out","type":"option","description":"synonym for target"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"skipCheck":{"name":"skipCheck","type":"boolean","description":"Don't check whether or not the data directory URL exists or if you are in a JBrowse directory","allowNo":false},"overwrite":{"name":"overwrite","type":"boolean","description":"Overwrites any existing connections if same connection id","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Equivalent to `--skipCheck --overwrite`","allowNo":false}},"args":[{"name":"connectionUrlOrPath","description":"URL of data directory\nFor hub file, usually called hub.txt\nFor JBrowse 1, location of JB1 data directory similar to http://mysite.com/jbrowse/data/ ","required":true}]},"add-track-json":{"id":"add-track-json","description":"Add a track configuration directly from a JSON hunk to the JBrowse 2 configuration","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["$ jbrowse add-track-json track.json","$ jbrowse add-track-json track.json --update"],"flags":{"update":{"name":"update","type":"boolean","char":"u","description":"update the contents of an existing track, matched based on trackId","allowNo":false},"target":{"name":"target","type":"option","description":"path to config file in JB2 installation directory to write out to.\nCreates ./config.json if nonexistent"},"out":{"name":"out","type":"option","description":"synonym for target"}},"args":[{"name":"track","description":"track JSON file or command line arg blob","required":true}]},"add-track":{"id":"add-track","description":"Add a track to a JBrowse 2 configuration","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["# copy /path/to/my.bam and /path/to/my.bam.bai to current directory and adds track to config.json","$ jbrowse add-track /path/to/my.bam --load copy","","# copy my.bam and my.bam.bai to /path/to/jb2/bam and adds track entry to /path/to/jb2/bam/config.json","$ jbrowse add-track my.bam --load copy --out /path/to/jb2 --subDir bam","","# same as above, but specify path to bai file. needed for if the bai file does not have the extension .bam.bai","$ jbrowse add-track my.bam --indexFile my.bai --load copy","","# creates symlink for /path/to/my.bam and adds track to config.json","$ jbrowse add-track /path/to/my.bam --load symlink","","# add track from URL to config.json, no --load flag needed","$ jbrowse add-track https://mywebsite.com/my.bam","","# --load inPlace adds a track without doing file operations","$ jbrowse add-track /url/relative/path.bam --load inPlace"],"flags":{"trackType":{"name":"trackType","type":"option","char":"t","description":"Type of track, by default inferred from track file"},"name":{"name":"name","type":"option","char":"n","description":"Name of the track. Will be defaulted to the trackId if none specified"},"indexFile":{"name":"indexFile","type":"option","description":"Optional index file for the track"},"description":{"name":"description","type":"option","char":"d","description":"Optional description of the track"},"assemblyNames":{"name":"assemblyNames","type":"option","char":"a","description":"Assembly name or names for track as comma separated string. If none, will default to the assembly in your config file"},"category":{"name":"category","type":"option","description":"Optional Comma separated string of categories to group tracks"},"config":{"name":"config","type":"option","description":"Any extra config settings to add to a track. i.e '{\"defaultRendering\": \"density\"}'"},"target":{"name":"target","type":"option","description":"path to config file in JB2 installation to write out to."},"out":{"name":"out","type":"option","description":"synonym for target"},"subDir":{"name":"subDir","type":"option","description":"when using --load a file, output to a subdirectory of the target dir","default":""},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"trackId":{"name":"trackId","type":"option","description":"trackId for the track, by default inferred from filename, must be unique throughout config"},"load":{"name":"load","type":"option","char":"l","description":"Required flag when using a local file. Choose how to manage the track. Copy, symlink, or move the track to the JBrowse directory. Or inPlace to leave track alone","options":["copy","symlink","move","inPlace"]},"skipCheck":{"name":"skipCheck","type":"boolean","description":"Skip check for whether or not the file or URL exists or if you are in a JBrowse directory","allowNo":false},"overwrite":{"name":"overwrite","type":"boolean","description":"Overwrites existing track if it shares the same trackId","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Equivalent to `--skipCheck --overwrite`","allowNo":false},"protocol":{"name":"protocol","type":"option","description":"Force protocol to a specific value","default":"uri"}},"args":[{"name":"track","description":"Track file or URL","required":true}]},"admin-server":{"id":"admin-server","description":"Start up a small admin server for JBrowse configuration","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["$ jbrowse admin-server","$ jbrowse admin-server -p 8888"],"flags":{"port":{"name":"port","type":"option","char":"p","description":"Specifified port to start the server on;\nDefault is 9090."},"root":{"name":"root","type":"option","description":"path to the root of the JB2 installation.\nCreates ./config.json if nonexistent. note that you can navigate to ?config=path/to/subconfig.json in the web browser and it will write to rootDir/path/to/subconfig.json"},"bodySizeLimit":{"name":"bodySizeLimit","type":"option","description":"Size limit of the update message; may need to increase if config is large.\nArgument is passed to bytes library for parsing: https://www.npmjs.com/package/bytes.","default":"25mb"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"create":{"id":"create","description":"Downloads and installs the latest JBrowse 2 release","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["# Download latest release from github, and put in specific path","$ jbrowse create /path/to/new/installation","","# Download latest release from github and force overwrite existing contents at path","$ jbrowse create /path/to/new/installation --force","","# Download latest release from a specific URL","$ jbrowse create /path/to/new/installation --url url.com/directjbrowselink.zip","","# Download a specific tag from github","$ jbrowse create /path/to/new/installation --tag v1.0.0","","# List available versions","$ jbrowse create --listVersions"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Overwrites existing JBrowse 2 installation if present in path","allowNo":false},"listVersions":{"name":"listVersions","type":"boolean","char":"l","description":"Lists out all versions of JBrowse 2","allowNo":false},"branch":{"name":"branch","type":"option","description":"Download a development build from a named git branch"},"nightly":{"name":"nightly","type":"boolean","description":"Download the latest development build from the main branch","allowNo":false},"url":{"name":"url","type":"option","char":"u","description":"A direct URL to a JBrowse 2 release"},"tag":{"name":"tag","type":"option","char":"t","description":"Version of JBrowse 2 to install. Format is v1.0.0.\nDefaults to latest"}},"args":[{"name":"localPath","description":"Location where JBrowse 2 will be installed","required":true}]},"set-default-session":{"id":"set-default-session","description":"Set a default session with views and tracks","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["$ jbrowse set-default-session --session /path/to/default/session.json","$ jbrowse set-default-session --target /path/to/jb2/installation/config.json --view LinearGenomeView --tracks track1, track2, track3","$ jbrowse set-default-session --view LinearGenomeView, --name newName --viewId view-no-tracks","$ jbrowse set-default-session --currentSession # Prints out current default session"],"flags":{"session":{"name":"session","type":"option","char":"s","description":"set path to a file containing session in json format"},"name":{"name":"name","type":"option","char":"n","description":"Give a name for the default session","default":"New Default Session"},"view":{"name":"view","type":"option","char":"v","description":"View type in config to be added as default session, i.e LinearGenomeView, CircularView, DotplotView.\nMust be provided if no default session file provided"},"viewId":{"name":"viewId","type":"option","description":"Identifier for the view. Will be generated on default"},"tracks":{"name":"tracks","type":"option","char":"t","description":"Track id or track ids as comma separated string to put into default session"},"currentSession":{"name":"currentSession","type":"boolean","char":"c","description":"List out the current default session","allowNo":false},"target":{"name":"target","type":"option","description":"path to config file in JB2 installation directory to write out to"},"out":{"name":"out","type":"option","description":"synonym for target"},"delete":{"name":"delete","type":"boolean","description":"Delete any existing default session.","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"text-index":{"id":"text-index","description":"Make a text-indexing file for any given track(s).","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["# indexes all tracks that it can find in the current directory's config.json","$ jbrowse text-index","","# indexes specific trackIds that it can find in the current directory's config.json","$ jbrowse text-index --tracks=track1,track2,track3","","# indexes all tracks in a directory's config.json or in a specific config file","$ jbrowse text-index --out /path/to/jb2/","","# indexes only a specific assembly, and overwrite what was previously there using force (which is needed if a previous index already existed)","$ jbrowse text-index -a hg19 --force","","# create index for some files for use in @jbrowse/react-linear-genome-view or similar","$ jbrowse text-index --file myfile.gff3.gz --file myfile.vcfgz --out indexes"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"tracks":{"name":"tracks","type":"option","description":"Specific tracks to index, formatted as comma separated trackIds. If unspecified, indexes all available tracks"},"target":{"name":"target","type":"option","description":"Path to config file in JB2 installation directory to read from."},"out":{"name":"out","type":"option","description":"Synonym for target"},"attributes":{"name":"attributes","type":"option","description":"Comma separated list of attributes to index","default":"Name,ID"},"assemblies":{"name":"assemblies","type":"option","char":"a","description":"Specify the assembl(ies) to create an index for. If unspecified, creates an index for each assembly in the config"},"force":{"name":"force","type":"boolean","description":"Overwrite previously existing indexes","allowNo":false},"quiet":{"name":"quiet","type":"boolean","char":"q","description":"Hide the progress bars","allowNo":false},"perTrack":{"name":"perTrack","type":"boolean","description":"If set, creates an index per track","allowNo":false},"exclude":{"name":"exclude","type":"option","description":"Adds gene type to list of excluded types","default":"CDS,exon"},"prefixSize":{"name":"prefixSize","type":"option","description":"Specify the prefix size for the ixx index, increase size if many of your gene IDs have same prefix e.g. Z000000001, Z000000002","default":6},"file":{"name":"file","type":"option","description":"File or files to index (can be used to create trix indexes for embedded component use cases not using a config.json for example)"},"fileId":{"name":"fileId","type":"option","description":"Set the trackId used for the indexes generated with the --file argument"},"dryrun":{"name":"dryrun","type":"boolean","description":"Just print out tracks that will be indexed by the process, without doing any indexing","allowNo":false}},"args":[]},"upgrade":{"id":"upgrade","description":"Upgrades JBrowse 2 to latest version","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["# Upgrades current directory to latest jbrowse release","$ jbrowse upgrade","","# Upgrade jbrowse instance at a specific filesystem path","$ jbrowse upgrade /path/to/jbrowse2/installation","","# Upgrade to a specific tag","$ jbrowse upgrade /path/to/jbrowse2/installation --tag v1.0.0","","# List versions available on github","$ jbrowse upgrade --listVersions","","# Upgrade from a specific URL","$ jbrowse upgrade --url https://sample.com/jbrowse2.zip","","# Get nightly release from main branch","$ jbrowse upgrade --nightly"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"listVersions":{"name":"listVersions","type":"boolean","char":"l","description":"Lists out all versions of JBrowse 2","allowNo":false},"tag":{"name":"tag","type":"option","char":"t","description":"Version of JBrowse 2 to install. Format is v1.0.0.\nDefaults to latest"},"branch":{"name":"branch","type":"option","description":"Download a development build from a named git branch"},"nightly":{"name":"nightly","type":"boolean","description":"Download the latest development build from the main branch","allowNo":false},"clean":{"name":"clean","type":"boolean","description":"Removes old js,map,and LICENSE files in the installation","allowNo":false},"url":{"name":"url","type":"option","char":"u","description":"A direct URL to a JBrowse 2 release"}},"args":[{"name":"localPath","description":"Location where JBrowse 2 is installed","required":false,"default":"."}]}}}
|
|
1
|
+
{"version":"2.1.3","commands":{"add-assembly":{"id":"add-assembly","description":"Add an assembly to a JBrowse 2 configuration","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["# add assembly to installation in current directory. assumes .fai file also exists, and copies GRCh38.fa and GRCh38.fa.fai to current directory","$ jbrowse add-assembly GRCh38.fa --load copy","","# add assembly to a specific jb2 installation path using --out, and copies the .fa and .fa.fai file to /path/to/jb2","$ jbrowse add-assembly GRCh38.fa --out /path/to/jb2/ --load copy","","# force indexedFasta for add-assembly without relying on file extension","$ jbrowse add-assembly GRCh38.xyz --type indexedFasta --load copy","","# add displayName for an assembly","$ jbrowse add-assembly myFile.fa.gz --name hg38 --displayName \"Homo sapiens (hg38)\"","","# use chrom.sizes file for assembly instead of a fasta file","$ jbrowse add-assembly GRCh38.chrom.sizes --load inPlace","","# add assembly from preconfigured json file, expert option","$ jbrowse add-assembly GRCh38.config.json --load copy","","# add assembly from a 2bit file, also note pointing direct to a URL so no --load flag needed","$ jbrowse add-assembly https://example.com/data/sample.2bit","","# add a bgzip indexed fasta inferred by fa.gz extension. assumes .fa.gz.gzi and .fa.gz.fai files also exists","$ jbrowse add-assembly myfile.fa.gz --load copy"],"flags":{"type":{"name":"type","type":"option","char":"t","description":"type of sequence, by default inferred from sequence file\n\nindexedFasta An index FASTA (e.g. .fa or .fasta) file;\n can optionally specify --faiLocation\n\nbgzipFasta A block-gzipped and indexed FASTA (e.g. .fa.gz or .fasta.gz) file;\n can optionally specify --faiLocation and/or --gziLocation\n\ntwoBit A twoBit (e.g. .2bit) file\n\nchromSizes A chromosome sizes (e.g. .chrom.sizes) file\n\ncustom Either a JSON file location or inline JSON that defines a custom\n sequence adapter; must provide --name if using inline JSON","options":["indexedFasta","bgzipFasta","twoBit","chromSizes","custom"]},"name":{"name":"name","type":"option","char":"n","description":"Name of the assembly; if not specified, will be guessed using the sequence file name"},"alias":{"name":"alias","type":"option","char":"a","description":"An alias for the assembly name (e.g. \"hg38\" if the name of the assembly is \"GRCh38\");\ncan be specified multiple times"},"displayName":{"name":"displayName","type":"option","description":"The display name to specify for the assembly, e.g. \"Homo sapiens (hg38)\" while the name can be a shorter identifier like \"hg38\""},"faiLocation":{"name":"faiLocation","type":"option","description":"[default: <fastaLocation>.fai] FASTA index file or URL"},"gziLocation":{"name":"gziLocation","type":"option","description":"[default: <fastaLocation>.gzi] FASTA gzip index file or URL"},"refNameAliases":{"name":"refNameAliases","type":"option","description":"Reference sequence name aliases file or URL; assumed to be a tab-separated aliases\nfile unless --refNameAliasesType is specified"},"refNameAliasesType":{"name":"refNameAliasesType","type":"option","description":"Type of aliases defined by --refNameAliases; if \"custom\", --refNameAliases is either\na JSON file location or inline JSON that defines a custom sequence adapter","options":["aliases","custom"]},"refNameColors":{"name":"refNameColors","type":"option","description":"A comma-separated list of color strings for the reference sequence names; will cycle\nthrough colors if there are fewer colors than sequences"},"target":{"name":"target","type":"option","description":"path to config file in JB2 installation directory to write out to.\nCreates ./config.json if nonexistent"},"out":{"name":"out","type":"option","description":"synonym for target"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"load":{"name":"load","type":"option","char":"l","description":"Required flag when using a local file. Choose how to manage the data directory. Copy, symlink, or move the data directory to the JBrowse directory. Or use inPlace to modify the config without doing any file operations","options":["copy","symlink","move","inPlace"]},"skipCheck":{"name":"skipCheck","type":"boolean","description":"Don't check whether or not the sequence file or URL exists or if you are in a JBrowse directory","allowNo":false},"overwrite":{"name":"overwrite","type":"boolean","description":"Overwrite existing assembly if one with the same name exists","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Equivalent to `--skipCheck --overwrite`","allowNo":false}},"args":[{"name":"sequence","description":"sequence file or URL\n\nIf TYPE is indexedFasta or bgzipFasta, the index file defaults to <location>.fai\nand can be optionally specified with --faiLocation\nIf TYPE is bgzipFasta, the gzip index file defaults to <location>.gzi and can be\noptionally specified with --gziLocation","required":true}]},"add-connection":{"id":"add-connection","description":"Add a connection to a JBrowse 2 configuration","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["$ jbrowse add-connection http://mysite.com/jbrowse/data/","$ jbrowse add-connection http://mysite.com/jbrowse/custom_data_folder/ --type JBrowse1Connection","$ jbrowse add-connection http://mysite.com/path/to/hub.txt --assemblyName hg19","$ jbrowse add-connection http://mysite.com/path/to/custom_hub_name.txt --type UCSCTrackHubConnection --assemblyName hg19","$ jbrowse add-connection http://mysite.com/path/to/custom --type custom --config '{\"uri\":{\"url\":\"https://mysite.com/path/to/custom\"}, \"locationType\": \"UriLocation\"}' --assemblyName hg19","$ jbrowse add-connection https://mysite.com/path/to/hub.txt --connectionId newId --name newName --target /path/to/jb2/installation/config.json"],"flags":{"type":{"name":"type","type":"option","char":"t","description":"type of connection, ex. JBrowse1Connection, UCSCTrackHubConnection, custom"},"assemblyName":{"name":"assemblyName","type":"option","char":"a","description":"Assembly name of the connection If none, will default to the assembly in your config file"},"config":{"name":"config","type":"option","char":"c","description":"Any extra config settings to add to connection in JSON object format, such as '{\"uri\":\"url\":\"https://sample.com\"}, \"locationType\": \"UriLocation\"}'"},"connectionId":{"name":"connectionId","type":"option","description":"Id for the connection that must be unique to JBrowse. Defaults to 'connectionType-assemblyName-currentTime'"},"name":{"name":"name","type":"option","char":"n","description":"Name of the connection. Defaults to connectionId if not provided"},"target":{"name":"target","type":"option","description":"path to config file in JB2 installation directory to write out to."},"out":{"name":"out","type":"option","description":"synonym for target"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"skipCheck":{"name":"skipCheck","type":"boolean","description":"Don't check whether or not the data directory URL exists or if you are in a JBrowse directory","allowNo":false},"overwrite":{"name":"overwrite","type":"boolean","description":"Overwrites any existing connections if same connection id","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Equivalent to `--skipCheck --overwrite`","allowNo":false}},"args":[{"name":"connectionUrlOrPath","description":"URL of data directory\nFor hub file, usually called hub.txt\nFor JBrowse 1, location of JB1 data directory similar to http://mysite.com/jbrowse/data/ ","required":true}]},"add-track-json":{"id":"add-track-json","description":"Add a track configuration directly from a JSON hunk to the JBrowse 2 configuration","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["$ jbrowse add-track-json track.json","$ jbrowse add-track-json track.json --update"],"flags":{"update":{"name":"update","type":"boolean","char":"u","description":"update the contents of an existing track, matched based on trackId","allowNo":false},"target":{"name":"target","type":"option","description":"path to config file in JB2 installation directory to write out to.\nCreates ./config.json if nonexistent"},"out":{"name":"out","type":"option","description":"synonym for target"}},"args":[{"name":"track","description":"track JSON file or command line arg blob","required":true}]},"add-track":{"id":"add-track","description":"Add a track to a JBrowse 2 configuration","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["# copy /path/to/my.bam and /path/to/my.bam.bai to current directory and adds track to config.json","$ jbrowse add-track /path/to/my.bam --load copy","","# copy my.bam and my.bam.bai to /path/to/jb2/bam and adds track entry to /path/to/jb2/bam/config.json","$ jbrowse add-track my.bam --load copy --out /path/to/jb2 --subDir bam","","# same as above, but specify path to bai file. needed for if the bai file does not have the extension .bam.bai","$ jbrowse add-track my.bam --indexFile my.bai --load copy","","# creates symlink for /path/to/my.bam and adds track to config.json","$ jbrowse add-track /path/to/my.bam --load symlink","","# add track from URL to config.json, no --load flag needed","$ jbrowse add-track https://mywebsite.com/my.bam","","# --load inPlace adds a track without doing file operations","$ jbrowse add-track /url/relative/path.bam --load inPlace"],"flags":{"trackType":{"name":"trackType","type":"option","char":"t","description":"Type of track, by default inferred from track file"},"name":{"name":"name","type":"option","char":"n","description":"Name of the track. Will be defaulted to the trackId if none specified"},"indexFile":{"name":"indexFile","type":"option","description":"Optional index file for the track"},"description":{"name":"description","type":"option","char":"d","description":"Optional description of the track"},"assemblyNames":{"name":"assemblyNames","type":"option","char":"a","description":"Assembly name or names for track as comma separated string. If none, will default to the assembly in your config file"},"category":{"name":"category","type":"option","description":"Optional Comma separated string of categories to group tracks"},"config":{"name":"config","type":"option","description":"Any extra config settings to add to a track. i.e '{\"defaultRendering\": \"density\"}'"},"target":{"name":"target","type":"option","description":"path to config file in JB2 installation to write out to."},"out":{"name":"out","type":"option","description":"synonym for target"},"subDir":{"name":"subDir","type":"option","description":"when using --load a file, output to a subdirectory of the target dir","default":""},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"trackId":{"name":"trackId","type":"option","description":"trackId for the track, by default inferred from filename, must be unique throughout config"},"load":{"name":"load","type":"option","char":"l","description":"Required flag when using a local file. Choose how to manage the track. Copy, symlink, or move the track to the JBrowse directory. Or inPlace to leave track alone","options":["copy","symlink","move","inPlace"]},"skipCheck":{"name":"skipCheck","type":"boolean","description":"Skip check for whether or not the file or URL exists or if you are in a JBrowse directory","allowNo":false},"overwrite":{"name":"overwrite","type":"boolean","description":"Overwrites existing track if it shares the same trackId","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Equivalent to `--skipCheck --overwrite`","allowNo":false},"protocol":{"name":"protocol","type":"option","description":"Force protocol to a specific value","default":"uri"}},"args":[{"name":"track","description":"Track file or URL","required":true}]},"admin-server":{"id":"admin-server","description":"Start up a small admin server for JBrowse configuration","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["$ jbrowse admin-server","$ jbrowse admin-server -p 8888"],"flags":{"port":{"name":"port","type":"option","char":"p","description":"Specifified port to start the server on;\nDefault is 9090."},"root":{"name":"root","type":"option","description":"path to the root of the JB2 installation.\nCreates ./config.json if nonexistent. note that you can navigate to ?config=path/to/subconfig.json in the web browser and it will write to rootDir/path/to/subconfig.json"},"bodySizeLimit":{"name":"bodySizeLimit","type":"option","description":"Size limit of the update message; may need to increase if config is large.\nArgument is passed to bytes library for parsing: https://www.npmjs.com/package/bytes.","default":"25mb"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"create":{"id":"create","description":"Downloads and installs the latest JBrowse 2 release","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["# Download latest release from github, and put in specific path","$ jbrowse create /path/to/new/installation","","# Download latest release from github and force overwrite existing contents at path","$ jbrowse create /path/to/new/installation --force","","# Download latest release from a specific URL","$ jbrowse create /path/to/new/installation --url url.com/directjbrowselink.zip","","# Download a specific tag from github","$ jbrowse create /path/to/new/installation --tag v1.0.0","","# List available versions","$ jbrowse create --listVersions"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Overwrites existing JBrowse 2 installation if present in path","allowNo":false},"listVersions":{"name":"listVersions","type":"boolean","char":"l","description":"Lists out all versions of JBrowse 2","allowNo":false},"branch":{"name":"branch","type":"option","description":"Download a development build from a named git branch"},"nightly":{"name":"nightly","type":"boolean","description":"Download the latest development build from the main branch","allowNo":false},"url":{"name":"url","type":"option","char":"u","description":"A direct URL to a JBrowse 2 release"},"tag":{"name":"tag","type":"option","char":"t","description":"Version of JBrowse 2 to install. Format is v1.0.0.\nDefaults to latest"}},"args":[{"name":"localPath","description":"Location where JBrowse 2 will be installed","required":true}]},"set-default-session":{"id":"set-default-session","description":"Set a default session with views and tracks","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["$ jbrowse set-default-session --session /path/to/default/session.json","$ jbrowse set-default-session --target /path/to/jb2/installation/config.json --view LinearGenomeView --tracks track1, track2, track3","$ jbrowse set-default-session --view LinearGenomeView, --name newName --viewId view-no-tracks","$ jbrowse set-default-session --currentSession # Prints out current default session"],"flags":{"session":{"name":"session","type":"option","char":"s","description":"set path to a file containing session in json format"},"name":{"name":"name","type":"option","char":"n","description":"Give a name for the default session","default":"New Default Session"},"view":{"name":"view","type":"option","char":"v","description":"View type in config to be added as default session, i.e LinearGenomeView, CircularView, DotplotView.\nMust be provided if no default session file provided"},"viewId":{"name":"viewId","type":"option","description":"Identifier for the view. Will be generated on default"},"tracks":{"name":"tracks","type":"option","char":"t","description":"Track id or track ids as comma separated string to put into default session"},"currentSession":{"name":"currentSession","type":"boolean","char":"c","description":"List out the current default session","allowNo":false},"target":{"name":"target","type":"option","description":"path to config file in JB2 installation directory to write out to"},"out":{"name":"out","type":"option","description":"synonym for target"},"delete":{"name":"delete","type":"boolean","description":"Delete any existing default session.","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"text-index":{"id":"text-index","description":"Make a text-indexing file for any given track(s).","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["# indexes all tracks that it can find in the current directory's config.json","$ jbrowse text-index","","# indexes specific trackIds that it can find in the current directory's config.json","$ jbrowse text-index --tracks=track1,track2,track3","","# indexes all tracks in a directory's config.json or in a specific config file","$ jbrowse text-index --out /path/to/jb2/","","# indexes only a specific assembly, and overwrite what was previously there using force (which is needed if a previous index already existed)","$ jbrowse text-index -a hg19 --force","","# create index for some files for use in @jbrowse/react-linear-genome-view or similar","$ jbrowse text-index --file myfile.gff3.gz --file myfile.vcfgz --out indexes"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"tracks":{"name":"tracks","type":"option","description":"Specific tracks to index, formatted as comma separated trackIds. If unspecified, indexes all available tracks"},"target":{"name":"target","type":"option","description":"Path to config file in JB2 installation directory to read from."},"out":{"name":"out","type":"option","description":"Synonym for target"},"attributes":{"name":"attributes","type":"option","description":"Comma separated list of attributes to index","default":"Name,ID"},"assemblies":{"name":"assemblies","type":"option","char":"a","description":"Specify the assembl(ies) to create an index for. If unspecified, creates an index for each assembly in the config"},"force":{"name":"force","type":"boolean","description":"Overwrite previously existing indexes","allowNo":false},"quiet":{"name":"quiet","type":"boolean","char":"q","description":"Hide the progress bars","allowNo":false},"perTrack":{"name":"perTrack","type":"boolean","description":"If set, creates an index per track","allowNo":false},"exclude":{"name":"exclude","type":"option","description":"Adds gene type to list of excluded types","default":"CDS,exon"},"prefixSize":{"name":"prefixSize","type":"option","description":"Specify the prefix size for the ixx index, increase size if many of your gene IDs have same prefix e.g. Z000000001, Z000000002","default":6},"file":{"name":"file","type":"option","description":"File or files to index (can be used to create trix indexes for embedded component use cases not using a config.json for example)"},"fileId":{"name":"fileId","type":"option","description":"Set the trackId used for the indexes generated with the --file argument"},"dryrun":{"name":"dryrun","type":"boolean","description":"Just print out tracks that will be indexed by the process, without doing any indexing","allowNo":false}},"args":[]},"upgrade":{"id":"upgrade","description":"Upgrades JBrowse 2 to latest version","pluginName":"@jbrowse/cli","pluginType":"core","aliases":[],"examples":["# Upgrades current directory to latest jbrowse release","$ jbrowse upgrade","","# Upgrade jbrowse instance at a specific filesystem path","$ jbrowse upgrade /path/to/jbrowse2/installation","","# Upgrade to a specific tag","$ jbrowse upgrade /path/to/jbrowse2/installation --tag v1.0.0","","# List versions available on github","$ jbrowse upgrade --listVersions","","# Upgrade from a specific URL","$ jbrowse upgrade --url https://sample.com/jbrowse2.zip","","# Get nightly release from main branch","$ jbrowse upgrade --nightly"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"listVersions":{"name":"listVersions","type":"boolean","char":"l","description":"Lists out all versions of JBrowse 2","allowNo":false},"tag":{"name":"tag","type":"option","char":"t","description":"Version of JBrowse 2 to install. Format is v1.0.0.\nDefaults to latest"},"branch":{"name":"branch","type":"option","description":"Download a development build from a named git branch"},"nightly":{"name":"nightly","type":"boolean","description":"Download the latest development build from the main branch","allowNo":false},"clean":{"name":"clean","type":"boolean","description":"Removes old js,map,and LICENSE files in the installation","allowNo":false},"url":{"name":"url","type":"option","char":"u","description":"A direct URL to a JBrowse 2 release"}},"args":[{"name":"localPath","description":"Location where JBrowse 2 is installed","required":false,"default":"."}]}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "A command line tool for working with JBrowse 2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "ebd548ceb52adb36cf6ab437082b5b5feac1338e"
|
|
81
81
|
}
|