@jbrowse/cli 2.2.0 → 2.2.1

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 CHANGED
@@ -170,7 +170,7 @@ EXAMPLES
170
170
  $ jbrowse add-assembly myfile.fa.gz --load copy
171
171
  ```
172
172
 
173
- _See code: [src/commands/add-assembly.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.0/products/jbrowse-cli/src/commands/add-assembly.ts)_
173
+ _See code: [src/commands/add-assembly.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.1/products/jbrowse-cli/src/commands/add-assembly.ts)_
174
174
 
175
175
  ## `jbrowse add-connection CONNECTIONURLORPATH`
176
176
 
@@ -224,7 +224,7 @@ EXAMPLES
224
224
  /path/to/jb2/installation/config.json
225
225
  ```
226
226
 
227
- _See code: [src/commands/add-connection.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.0/products/jbrowse-cli/src/commands/add-connection.ts)_
227
+ _See code: [src/commands/add-connection.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.1/products/jbrowse-cli/src/commands/add-connection.ts)_
228
228
 
229
229
  ## `jbrowse add-track TRACK`
230
230
 
@@ -298,7 +298,7 @@ EXAMPLES
298
298
  $ jbrowse add-track /url/relative/path.bam --load inPlace
299
299
  ```
300
300
 
301
- _See code: [src/commands/add-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.0/products/jbrowse-cli/src/commands/add-track.ts)_
301
+ _See code: [src/commands/add-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.1/products/jbrowse-cli/src/commands/add-track.ts)_
302
302
 
303
303
  ## `jbrowse add-track-json TRACK`
304
304
 
@@ -323,7 +323,7 @@ EXAMPLES
323
323
  $ jbrowse add-track-json track.json --update
324
324
  ```
325
325
 
326
- _See code: [src/commands/add-track-json.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.0/products/jbrowse-cli/src/commands/add-track-json.ts)_
326
+ _See code: [src/commands/add-track-json.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.1/products/jbrowse-cli/src/commands/add-track-json.ts)_
327
327
 
328
328
  ## `jbrowse admin-server`
329
329
 
@@ -353,7 +353,7 @@ EXAMPLES
353
353
  $ jbrowse admin-server -p 8888
354
354
  ```
355
355
 
356
- _See code: [src/commands/admin-server.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.0/products/jbrowse-cli/src/commands/admin-server.ts)_
356
+ _See code: [src/commands/admin-server.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.1/products/jbrowse-cli/src/commands/admin-server.ts)_
357
357
 
358
358
  ## `jbrowse create LOCALPATH`
359
359
 
@@ -397,7 +397,7 @@ EXAMPLES
397
397
  $ jbrowse create --listVersions
398
398
  ```
399
399
 
400
- _See code: [src/commands/create.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.0/products/jbrowse-cli/src/commands/create.ts)_
400
+ _See code: [src/commands/create.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.1/products/jbrowse-cli/src/commands/create.ts)_
401
401
 
402
402
  ## `jbrowse help [COMMAND]`
403
403
 
@@ -451,7 +451,7 @@ EXAMPLES
451
451
  $ jbrowse set-default-session --currentSession # Prints out current default session
452
452
  ```
453
453
 
454
- _See code: [src/commands/set-default-session.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.0/products/jbrowse-cli/src/commands/set-default-session.ts)_
454
+ _See code: [src/commands/set-default-session.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.1/products/jbrowse-cli/src/commands/set-default-session.ts)_
455
455
 
456
456
  ## `jbrowse text-index`
457
457
 
@@ -512,7 +512,7 @@ EXAMPLES
512
512
  $ jbrowse text-index --file myfile.gff3.gz --file myfile.vcfgz --out indexes
513
513
  ```
514
514
 
515
- _See code: [src/commands/text-index.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.0/products/jbrowse-cli/src/commands/text-index.ts)_
515
+ _See code: [src/commands/text-index.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.1/products/jbrowse-cli/src/commands/text-index.ts)_
516
516
 
517
517
  ## `jbrowse upgrade [LOCALPATH]`
518
518
 
@@ -560,7 +560,7 @@ EXAMPLES
560
560
  $ jbrowse upgrade --nightly
561
561
  ```
562
562
 
563
- _See code: [src/commands/upgrade.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.0/products/jbrowse-cli/src/commands/upgrade.ts)_
563
+ _See code: [src/commands/upgrade.ts](https://github.com/GMOD/jbrowse-components/blob/v2.2.1/products/jbrowse-cli/src/commands/upgrade.ts)_
564
564
 
565
565
  <!-- commandsstop -->
566
566
 
package/lib/base.js CHANGED
@@ -120,48 +120,62 @@ class JBrowseCommand extends command_1.default {
120
120
  return result;
121
121
  }
122
122
  async fetchGithubVersions() {
123
- var e_1, _a;
123
+ var _a, e_1, _b, _c;
124
124
  let versions = [];
125
125
  try {
126
- for (var _b = __asyncValues(this.fetchVersions()), _c; _c = await _b.next(), !_c.done;) {
127
- const iter = _c.value;
128
- versions = versions.concat(iter);
126
+ for (var _d = true, _e = __asyncValues(this.fetchVersions()), _f; _f = await _e.next(), _a = _f.done, !_a;) {
127
+ _c = _f.value;
128
+ _d = false;
129
+ try {
130
+ const iter = _c;
131
+ versions = versions.concat(iter);
132
+ }
133
+ finally {
134
+ _d = true;
135
+ }
129
136
  }
130
137
  }
131
138
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
132
139
  finally {
133
140
  try {
134
- if (_c && !_c.done && (_a = _b.return)) await _a.call(_b);
141
+ if (!_d && !_a && (_b = _e.return)) await _b.call(_e);
135
142
  }
136
143
  finally { if (e_1) throw e_1.error; }
137
144
  }
138
145
  return versions;
139
146
  }
140
147
  async getLatest() {
141
- var e_2, _a;
142
- var _b;
148
+ var _a, e_2, _b, _c;
149
+ var _d;
143
150
  try {
144
- for (var _c = __asyncValues(this.fetchVersions()), _d; _d = await _c.next(), !_d.done;) {
145
- const versions = _d.value;
146
- // if a release was just uploaded, or an erroneous build was made
147
- // then it might have no build asset
148
- const nonprereleases = versions
149
- .filter(release => release.prerelease === false)
150
- .filter(release => release.assets && release.assets.length > 0);
151
- if (nonprereleases.length !== 0) {
152
- // @ts-ignore
153
- const file = (_b = nonprereleases[0].assets.find(f => f.name.includes('jbrowse-web'))) === null || _b === void 0 ? void 0 : _b.browser_download_url;
154
- if (!file) {
155
- throw new Error('no jbrowse-web download found');
151
+ for (var _e = true, _f = __asyncValues(this.fetchVersions()), _g; _g = await _f.next(), _a = _g.done, !_a;) {
152
+ _c = _g.value;
153
+ _e = false;
154
+ try {
155
+ const versions = _c;
156
+ // if a release was just uploaded, or an erroneous build was made
157
+ // then it might have no build asset
158
+ const nonprereleases = versions
159
+ .filter(release => release.prerelease === false)
160
+ .filter(release => release.assets && release.assets.length > 0);
161
+ if (nonprereleases.length !== 0) {
162
+ // @ts-ignore
163
+ const file = (_d = nonprereleases[0].assets.find(f => f.name.includes('jbrowse-web'))) === null || _d === void 0 ? void 0 : _d.browser_download_url;
164
+ if (!file) {
165
+ throw new Error('no jbrowse-web download found');
166
+ }
167
+ return file;
156
168
  }
157
- return file;
169
+ }
170
+ finally {
171
+ _e = true;
158
172
  }
159
173
  }
160
174
  }
161
175
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
162
176
  finally {
163
177
  try {
164
- if (_d && !_d.done && (_a = _c.return)) await _a.call(_c);
178
+ if (!_e && !_a && (_b = _f.return)) await _b.call(_f);
165
179
  }
166
180
  finally { if (e_2) throw e_2.error; }
167
181
  }
@@ -29,7 +29,7 @@ const zlib_1 = require("zlib");
29
29
  const readline_1 = __importDefault(require("readline"));
30
30
  function indexGff3(config, attributes, inLocation, outLocation, typesToExclude, quiet) {
31
31
  return __asyncGenerator(this, arguments, function* indexGff3_1() {
32
- var e_1, _a;
32
+ var _a, e_1, _b, _c;
33
33
  const { trackId } = config;
34
34
  // progress bar code was aided by blog post at
35
35
  // https://webomnizz.com/download-a-file-with-progressbar-using-node-js/
@@ -50,46 +50,53 @@ function indexGff3(config, attributes, inLocation, outLocation, typesToExclude,
50
50
  input: inLocation.match(/.b?gz$/) ? stream.pipe((0, zlib_1.createGunzip)()) : stream,
51
51
  });
52
52
  try {
53
- for (var rl_1 = __asyncValues(rl), rl_1_1; rl_1_1 = yield __await(rl_1.next()), !rl_1_1.done;) {
54
- const line = rl_1_1.value;
55
- if (line.startsWith('#')) {
56
- continue;
57
- }
58
- else if (line.startsWith('>')) {
59
- break;
60
- }
61
- const [seq_id, , type, start, end, , , , col9] = line.split('\t');
62
- const locStr = `${seq_id}:${start}..${end}`;
63
- if (!typesToExclude.includes(type)) {
64
- // turns gff3 attrs into a map, and converts the arrays into space
65
- // separated strings
66
- const col9attrs = Object.fromEntries(col9
67
- .split(';')
68
- .map(f => f.trim())
69
- .filter(f => !!f)
70
- .map(f => f.split('='))
71
- .map(([key, val]) => [
72
- key.trim(),
73
- decodeURIComponent(val).trim().split(',').join(' '),
74
- ]));
75
- const attrs = attributes
76
- .map(attr => col9attrs[attr])
77
- .filter((f) => !!f);
78
- if (attrs.length) {
79
- const record = JSON.stringify([
80
- encodeURIComponent(locStr),
81
- encodeURIComponent(trackId),
82
- ...attrs.map(a => encodeURIComponent(a)),
83
- ]).replace(/,/g, '|');
84
- yield yield __await(`${record} ${[...new Set(attrs)].join(' ')}\n`);
53
+ for (var _d = true, rl_1 = __asyncValues(rl), rl_1_1; rl_1_1 = yield __await(rl_1.next()), _a = rl_1_1.done, !_a;) {
54
+ _c = rl_1_1.value;
55
+ _d = false;
56
+ try {
57
+ const line = _c;
58
+ if (line.startsWith('#')) {
59
+ continue;
60
+ }
61
+ else if (line.startsWith('>')) {
62
+ break;
85
63
  }
64
+ const [seq_id, , type, start, end, , , , col9] = line.split('\t');
65
+ const locStr = `${seq_id}:${start}..${end}`;
66
+ if (!typesToExclude.includes(type)) {
67
+ // turns gff3 attrs into a map, and converts the arrays into space
68
+ // separated strings
69
+ const col9attrs = Object.fromEntries(col9
70
+ .split(';')
71
+ .map(f => f.trim())
72
+ .filter(f => !!f)
73
+ .map(f => f.split('='))
74
+ .map(([key, val]) => [
75
+ key.trim(),
76
+ decodeURIComponent(val).trim().split(',').join(' '),
77
+ ]));
78
+ const attrs = attributes
79
+ .map(attr => col9attrs[attr])
80
+ .filter((f) => !!f);
81
+ if (attrs.length) {
82
+ const record = JSON.stringify([
83
+ encodeURIComponent(locStr),
84
+ encodeURIComponent(trackId),
85
+ ...attrs.map(a => encodeURIComponent(a)),
86
+ ]).replace(/,/g, '|');
87
+ yield yield __await(`${record} ${[...new Set(attrs)].join(' ')}\n`);
88
+ }
89
+ }
90
+ }
91
+ finally {
92
+ _d = true;
86
93
  }
87
94
  }
88
95
  }
89
96
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
90
97
  finally {
91
98
  try {
92
- if (rl_1_1 && !rl_1_1.done && (_a = rl_1.return)) yield __await(_a.call(rl_1));
99
+ if (!_d && !_a && (_b = rl_1.return)) yield __await(_b.call(rl_1));
93
100
  }
94
101
  finally { if (e_1) throw e_1.error; }
95
102
  }
@@ -29,7 +29,7 @@ const zlib_1 = require("zlib");
29
29
  const readline_1 = __importDefault(require("readline"));
30
30
  function indexGtf(config, attributes, outLocation, typesToExclude, quiet) {
31
31
  return __asyncGenerator(this, arguments, function* indexGtf_1() {
32
- var e_1, _a;
32
+ var _a, e_1, _b, _c;
33
33
  const { adapter, trackId } = config;
34
34
  const { gtfLocation: { uri }, } = adapter;
35
35
  // progress bar code was aided by blog post at
@@ -52,46 +52,53 @@ function indexGtf(config, attributes, outLocation, typesToExclude, quiet) {
52
52
  input: gzStream,
53
53
  });
54
54
  try {
55
- for (var rl_1 = __asyncValues(rl), rl_1_1; rl_1_1 = yield __await(rl_1.next()), !rl_1_1.done;) {
56
- const line = rl_1_1.value;
57
- if (line.startsWith('#')) {
58
- continue;
59
- }
60
- else if (line.startsWith('>')) {
61
- break;
62
- }
63
- const [seq_name, , type, start, end, , , , col9] = line.split('\t');
64
- const locStr = `${seq_name}:${start}..${end}`;
65
- if (!typesToExclude.includes(type)) {
66
- const col9Attrs = Object.fromEntries(col9
67
- .split(';')
68
- .map(f => f.trim())
69
- .filter(f => !!f)
70
- .map(f => f.split(' '))
71
- .map(([key, val]) => {
72
- return [
73
- key.trim(),
74
- val.trim().split(',').join(' ').replace(/("|')/g, ''),
75
- ];
76
- }));
77
- const attrs = attributes
78
- .map(attr => col9Attrs[attr])
79
- .filter((f) => !!f);
80
- if (attrs.length) {
81
- const record = JSON.stringify([
82
- encodeURIComponent(locStr),
83
- encodeURIComponent(trackId),
84
- ...attrs.map(a => encodeURIComponent(a || '')),
85
- ]).replace(/,/g, '|');
86
- yield yield __await(`${record} ${[...new Set(attrs)].join(' ')}\n`);
55
+ for (var _d = true, rl_1 = __asyncValues(rl), rl_1_1; rl_1_1 = yield __await(rl_1.next()), _a = rl_1_1.done, !_a;) {
56
+ _c = rl_1_1.value;
57
+ _d = false;
58
+ try {
59
+ const line = _c;
60
+ if (line.startsWith('#')) {
61
+ continue;
62
+ }
63
+ else if (line.startsWith('>')) {
64
+ break;
87
65
  }
66
+ const [seq_name, , type, start, end, , , , col9] = line.split('\t');
67
+ const locStr = `${seq_name}:${start}..${end}`;
68
+ if (!typesToExclude.includes(type)) {
69
+ const col9Attrs = Object.fromEntries(col9
70
+ .split(';')
71
+ .map(f => f.trim())
72
+ .filter(f => !!f)
73
+ .map(f => f.split(' '))
74
+ .map(([key, val]) => {
75
+ return [
76
+ key.trim(),
77
+ val.trim().split(',').join(' ').replace(/("|')/g, ''),
78
+ ];
79
+ }));
80
+ const attrs = attributes
81
+ .map(attr => col9Attrs[attr])
82
+ .filter((f) => !!f);
83
+ if (attrs.length) {
84
+ const record = JSON.stringify([
85
+ encodeURIComponent(locStr),
86
+ encodeURIComponent(trackId),
87
+ ...attrs.map(a => encodeURIComponent(a || '')),
88
+ ]).replace(/,/g, '|');
89
+ yield yield __await(`${record} ${[...new Set(attrs)].join(' ')}\n`);
90
+ }
91
+ }
92
+ }
93
+ finally {
94
+ _d = true;
88
95
  }
89
96
  }
90
97
  }
91
98
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
92
99
  finally {
93
100
  try {
94
- if (rl_1_1 && !rl_1_1.done && (_a = rl_1.return)) yield __await(_a.call(rl_1));
101
+ if (!_d && !_a && (_b = rl_1.return)) yield __await(_b.call(rl_1));
95
102
  }
96
103
  finally { if (e_1) throw e_1.error; }
97
104
  }
@@ -29,7 +29,7 @@ const zlib_1 = require("zlib");
29
29
  const readline_1 = __importDefault(require("readline"));
30
30
  function indexVcf(config, attributesToIndex, inLocation, outLocation, typesToExclude, quiet) {
31
31
  return __asyncGenerator(this, arguments, function* indexVcf_1() {
32
- var e_1, _a;
32
+ var _a, e_1, _b, _c;
33
33
  const { trackId } = config;
34
34
  // progress bar code was aided by blog post at
35
35
  // https://webomnizz.com/download-a-file-with-progressbar-using-node-js/
@@ -53,50 +53,57 @@ function indexVcf(config, attributesToIndex, inLocation, outLocation, typesToExc
53
53
  input: gzStream,
54
54
  });
55
55
  try {
56
- for (var rl_1 = __asyncValues(rl), rl_1_1; rl_1_1 = yield __await(rl_1.next()), !rl_1_1.done;) {
57
- const line = rl_1_1.value;
58
- if (line.startsWith('#')) {
59
- continue;
56
+ for (var _d = true, rl_1 = __asyncValues(rl), rl_1_1; rl_1_1 = yield __await(rl_1.next()), _a = rl_1_1.done, !_a;) {
57
+ _c = rl_1_1.value;
58
+ _d = false;
59
+ try {
60
+ const line = _c;
61
+ if (line.startsWith('#')) {
62
+ continue;
63
+ }
64
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
65
+ const [ref, pos, id, _ref, _alt, _qual, _filter, info] = line.split('\t');
66
+ // turns gff3 attrs into a map, and converts the arrays into space
67
+ // separated strings
68
+ const fields = Object.fromEntries(info
69
+ .split(';')
70
+ .map(f => f.trim())
71
+ .filter(f => !!f)
72
+ .map(f => f.split('='))
73
+ .map(([key, val]) => [
74
+ key.trim(),
75
+ val ? decodeURIComponent(val).trim().split(',').join(' ') : undefined,
76
+ ]));
77
+ const end = fields.END;
78
+ const locStr = `${ref}:${pos}..${end ? end : +pos + 1}`;
79
+ if (id === '.') {
80
+ continue;
81
+ }
82
+ const infoAttrs = attributesToIndex
83
+ .map(attr => fields[attr])
84
+ .filter((f) => !!f);
85
+ const ids = id.split(',');
86
+ for (let i = 0; i < ids.length; i++) {
87
+ const id = ids[i];
88
+ const attrs = [id];
89
+ const record = JSON.stringify([
90
+ encodeURIComponent(locStr),
91
+ encodeURIComponent(trackId),
92
+ encodeURIComponent(id || ''),
93
+ ...infoAttrs.map(a => encodeURIComponent(a || '')),
94
+ ]).replace(/,/g, '|');
95
+ yield yield __await(`${record} ${[...new Set(attrs)].join(' ')}\n`);
96
+ }
60
97
  }
61
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
62
- const [ref, pos, id, _ref, _alt, _qual, _filter, info] = line.split('\t');
63
- // turns gff3 attrs into a map, and converts the arrays into space
64
- // separated strings
65
- const fields = Object.fromEntries(info
66
- .split(';')
67
- .map(f => f.trim())
68
- .filter(f => !!f)
69
- .map(f => f.split('='))
70
- .map(([key, val]) => [
71
- key.trim(),
72
- val ? decodeURIComponent(val).trim().split(',').join(' ') : undefined,
73
- ]));
74
- const end = fields.END;
75
- const locStr = `${ref}:${pos}..${end ? end : +pos + 1}`;
76
- if (id === '.') {
77
- continue;
78
- }
79
- const infoAttrs = attributesToIndex
80
- .map(attr => fields[attr])
81
- .filter((f) => !!f);
82
- const ids = id.split(',');
83
- for (let i = 0; i < ids.length; i++) {
84
- const id = ids[i];
85
- const attrs = [id];
86
- const record = JSON.stringify([
87
- encodeURIComponent(locStr),
88
- encodeURIComponent(trackId),
89
- encodeURIComponent(id || ''),
90
- ...infoAttrs.map(a => encodeURIComponent(a || '')),
91
- ]).replace(/,/g, '|');
92
- yield yield __await(`${record} ${[...new Set(attrs)].join(' ')}\n`);
98
+ finally {
99
+ _d = true;
93
100
  }
94
101
  }
95
102
  }
96
103
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
97
104
  finally {
98
105
  try {
99
- if (rl_1_1 && !rl_1_1.done && (_a = rl_1.return)) yield __await(_a.call(rl_1));
106
+ if (!_d && !_a && (_b = rl_1.return)) yield __await(_b.call(rl_1));
100
107
  }
101
108
  finally { if (e_1) throw e_1.error; }
102
109
  }
@@ -1 +1 @@
1
- {"version":"2.2.0","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.2.1","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.2.0",
3
+ "version": "2.2.1",
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": "cf31db8d833117f8822510340664fb3f045975cb"
80
+ "gitHead": "896d175c5d9345049faea8e1155f243c912aac42"
81
81
  }