@jbrowse/cli 3.5.1 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +291 -607
- package/bin/run +1 -6
- package/bundle/index.js +4459 -0
- package/package.json +12 -37
- package/bin/dev +0 -17
- package/bin/dev.cmd +0 -3
- package/bin/run.cmd +0 -3
- package/lib/base.js +0 -157
- package/lib/commands/add-assembly.js +0 -491
- package/lib/commands/add-connection.js +0 -170
- package/lib/commands/add-track-json.js +0 -67
- package/lib/commands/add-track.js +0 -564
- package/lib/commands/admin-server.js +0 -153
- package/lib/commands/create.js +0 -111
- package/lib/commands/make-pif.js +0 -116
- package/lib/commands/remove-track.js +0 -37
- package/lib/commands/set-default-session.js +0 -98
- package/lib/commands/sort-bed.js +0 -45
- package/lib/commands/sort-gff.js +0 -45
- package/lib/commands/text-index.js +0 -380
- package/lib/commands/upgrade.js +0 -109
- package/lib/fetchWithProxy.js +0 -12
- package/lib/index.js +0 -6
- package/lib/types/common.js +0 -128
- package/lib/types/gff3Adapter.js +0 -73
- package/lib/types/vcfAdapter.js +0 -76
- package/lib/util.js +0 -35
- package/oclif.manifest.json +0 -1169
package/README.md
CHANGED
|
@@ -43,741 +43,425 @@ npx @jbrowse/cli create myfolder
|
|
|
43
43
|
It is likely preferable in most cases to install the tools globally with
|
|
44
44
|
`npm install @jbrowse/cli -g` however
|
|
45
45
|
|
|
46
|
-
## Commands
|
|
47
|
-
|
|
48
|
-
<!-- commands -->
|
|
49
|
-
|
|
50
|
-
- [`jbrowse add-assembly SEQUENCE`](#jbrowse-add-assembly-sequence)
|
|
51
|
-
- [`jbrowse add-connection CONNECTIONURLORPATH`](#jbrowse-add-connection-connectionurlorpath)
|
|
52
|
-
- [`jbrowse add-track TRACK`](#jbrowse-add-track-track)
|
|
53
|
-
- [`jbrowse add-track-json TRACK`](#jbrowse-add-track-json-track)
|
|
54
|
-
- [`jbrowse admin-server`](#jbrowse-admin-server)
|
|
55
|
-
- [`jbrowse create LOCALPATH`](#jbrowse-create-localpath)
|
|
56
|
-
- [`jbrowse help [COMMAND]`](#jbrowse-help-command)
|
|
57
|
-
- [`jbrowse make-pif FILE`](#jbrowse-make-pif-file)
|
|
58
|
-
- [`jbrowse remove-track TRACK`](#jbrowse-remove-track-track)
|
|
59
|
-
- [`jbrowse set-default-session`](#jbrowse-set-default-session)
|
|
60
|
-
- [`jbrowse sort-bed FILE`](#jbrowse-sort-bed-file)
|
|
61
|
-
- [`jbrowse sort-gff FILE`](#jbrowse-sort-gff-file)
|
|
62
|
-
- [`jbrowse text-index`](#jbrowse-text-index)
|
|
63
|
-
- [`jbrowse upgrade [LOCALPATH]`](#jbrowse-upgrade-localpath)
|
|
64
|
-
|
|
65
|
-
## `jbrowse add-assembly SEQUENCE`
|
|
66
|
-
|
|
67
|
-
Add an assembly to a JBrowse 2 configuration
|
|
68
|
-
|
|
69
46
|
```
|
|
70
|
-
USAGE
|
|
71
|
-
$ jbrowse add-assembly SEQUENCE [-t indexedFasta|bgzipFasta|twoBit|chromSizes|custom] [-n <value>] [-a
|
|
72
|
-
<value>...] [--displayName <value>] [--faiLocation <value>] [--gziLocation <value>] [--refNameAliasesType
|
|
73
|
-
aliases|custom --refNameAliases <value>] [--refNameColors <value>] [--target <value>] [--out <value>] [-h] [-l
|
|
74
|
-
copy|symlink|move|inPlace] [--skipCheck] [--overwrite] [-f]
|
|
75
|
-
|
|
76
|
-
ARGUMENTS
|
|
77
|
-
SEQUENCE
|
|
78
|
-
sequence file or URL
|
|
79
|
-
|
|
80
|
-
If TYPE is indexedFasta or bgzipFasta, the index file defaults to <location>.fai
|
|
81
|
-
and can be optionally specified with --faiLocation
|
|
82
|
-
If TYPE is bgzipFasta, the gzip index file defaults to <location>.gzi and can be
|
|
83
|
-
optionally specified with --gziLocation
|
|
84
|
-
|
|
85
|
-
FLAGS
|
|
86
|
-
-a, --alias=<value>...
|
|
87
|
-
An alias for the assembly name (e.g. "hg38" if the name of the assembly is "GRCh38");
|
|
88
|
-
can be specified multiple times
|
|
89
|
-
|
|
90
|
-
-f, --force
|
|
91
|
-
Equivalent to `--skipCheck --overwrite`
|
|
92
|
-
|
|
93
|
-
-h, --help
|
|
94
|
-
Show CLI help.
|
|
95
|
-
|
|
96
|
-
-l, --load=<option>
|
|
97
|
-
Required flag when using a local file. Choose how to manage the data directory. Copy, symlink, or move the data
|
|
98
|
-
directory to the JBrowse directory. Or use inPlace to modify the config without doing any file operations
|
|
99
|
-
<options: copy|symlink|move|inPlace>
|
|
100
|
-
|
|
101
|
-
-n, --name=<value>
|
|
102
|
-
Name of the assembly; if not specified, will be guessed using the sequence file name
|
|
103
|
-
|
|
104
|
-
-t, --type=<option>
|
|
105
|
-
type of sequence, by default inferred from sequence file
|
|
106
|
-
|
|
107
|
-
indexedFasta An index FASTA (e.g. .fa or .fasta) file;
|
|
108
|
-
can optionally specify --faiLocation
|
|
109
|
-
|
|
110
|
-
bgzipFasta A block-gzipped and indexed FASTA (e.g. .fa.gz or .fasta.gz) file;
|
|
111
|
-
can optionally specify --faiLocation and/or --gziLocation
|
|
112
|
-
|
|
113
|
-
twoBit A twoBit (e.g. .2bit) file
|
|
114
|
-
|
|
115
|
-
chromSizes A chromosome sizes (e.g. .chrom.sizes) file
|
|
116
|
-
|
|
117
|
-
custom Either a JSON file location or inline JSON that defines a custom
|
|
118
|
-
sequence adapter; must provide --name if using inline JSON
|
|
119
|
-
<options: indexedFasta|bgzipFasta|twoBit|chromSizes|custom>
|
|
120
|
-
|
|
121
|
-
--displayName=<value>
|
|
122
|
-
The display name to specify for the assembly, e.g. "Homo sapiens (hg38)" while the name can be a shorter identifier
|
|
123
|
-
like "hg38"
|
|
124
|
-
|
|
125
|
-
--faiLocation=<value>
|
|
126
|
-
[default: <fastaLocation>.fai] FASTA index file or URL
|
|
127
|
-
|
|
128
|
-
--gziLocation=<value>
|
|
129
|
-
[default: <fastaLocation>.gzi] FASTA gzip index file or URL
|
|
130
|
-
|
|
131
|
-
--out=<value>
|
|
132
|
-
synonym for target
|
|
133
|
-
|
|
134
|
-
--overwrite
|
|
135
|
-
Overwrite existing assembly if one with the same name exists
|
|
136
|
-
|
|
137
|
-
--refNameAliases=<value>
|
|
138
|
-
Reference sequence name aliases file or URL; assumed to be a tab-separated aliases
|
|
139
|
-
file unless --refNameAliasesType is specified
|
|
140
|
-
|
|
141
|
-
--refNameAliasesType=<option>
|
|
142
|
-
Type of aliases defined by --refNameAliases; if "custom", --refNameAliases is either
|
|
143
|
-
a JSON file location or inline JSON that defines a custom sequence adapter
|
|
144
|
-
<options: aliases|custom>
|
|
145
|
-
|
|
146
|
-
--refNameColors=<value>
|
|
147
|
-
A comma-separated list of color strings for the reference sequence names; will cycle
|
|
148
|
-
through colors if there are fewer colors than sequences
|
|
149
|
-
|
|
150
|
-
--skipCheck
|
|
151
|
-
Don't check whether or not the sequence file or URL exists or if you are in a JBrowse directory
|
|
152
|
-
|
|
153
|
-
--target=<value>
|
|
154
|
-
path to config file in JB2 installation directory to write out to.
|
|
155
|
-
Creates ./config.json if nonexistent
|
|
156
|
-
|
|
157
|
-
DESCRIPTION
|
|
158
|
-
Add an assembly to a JBrowse 2 configuration
|
|
159
|
-
|
|
160
|
-
EXAMPLES
|
|
161
|
-
# add assembly to installation in current directory. assumes .fai file also exists, and copies GRCh38.fa and GRCh38.fa.fai to current directory
|
|
162
|
-
|
|
163
|
-
$ jbrowse add-assembly GRCh38.fa --load copy
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
# add assembly to a specific jb2 installation path using --out, and copies the .fa and .fa.fai file to /path/to/jb2
|
|
168
|
-
|
|
169
|
-
$ jbrowse add-assembly GRCh38.fa --out /path/to/jb2/ --load copy
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
# force indexedFasta for add-assembly without relying on file extension
|
|
174
|
-
|
|
175
|
-
$ jbrowse add-assembly GRCh38.xyz --type indexedFasta --load copy
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
# add displayName for an assembly
|
|
180
|
-
|
|
181
|
-
$ jbrowse add-assembly myFile.fa.gz --name hg38 --displayName "Homo sapiens (hg38)"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
# use chrom.sizes file for assembly instead of a fasta file
|
|
186
|
-
|
|
187
|
-
$ jbrowse add-assembly GRCh38.chrom.sizes --load inPlace
|
|
188
|
-
|
|
189
|
-
|
|
190
47
|
|
|
191
|
-
|
|
48
|
+
JBrowse CLI
|
|
192
49
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
# add assembly from a 2bit file, also note pointing direct to a URL so no --load flag needed
|
|
198
|
-
|
|
199
|
-
$ jbrowse add-assembly https://example.com/data/sample.2bit
|
|
50
|
+
USAGE
|
|
51
|
+
$ jbrowse <command> [options]
|
|
200
52
|
|
|
53
|
+
COMMANDS
|
|
54
|
+
create Downloads and installs the latest JBrowse 2 release
|
|
55
|
+
add-assembly Add an assembly to a JBrowse 2 configuration
|
|
56
|
+
add-track Add a track to a JBrowse 2 configuration
|
|
57
|
+
text-index Make a text-indexing file for any given track(s)
|
|
58
|
+
admin-server Start up a small admin server for JBrowse configuration
|
|
59
|
+
upgrade Upgrades JBrowse 2 to latest version
|
|
60
|
+
make-pif Creates pairwise indexed PAF (PIF), with bgzip and tabix
|
|
61
|
+
sort-gff Helper utility to sort GFF files for tabix
|
|
62
|
+
sort-bed Helper utility to sort BED files for tabix
|
|
63
|
+
add-connection Add a connection to a JBrowse 2 configuration
|
|
64
|
+
add-track-json Add a track configuration directly from a JSON hunk
|
|
65
|
+
remove-track Remove a track configuration from a JBrowse 2 configuration
|
|
66
|
+
set-default-session Set a default session with views and tracks
|
|
201
67
|
|
|
68
|
+
OPTIONS
|
|
69
|
+
-h, --help Show help
|
|
70
|
+
-v, --version Show version
|
|
202
71
|
|
|
203
|
-
|
|
72
|
+
Use "jbrowse <command> --help" for more information about a command.
|
|
204
73
|
|
|
205
|
-
$ jbrowse add-assembly myfile.fa.gz --load copy
|
|
206
74
|
```
|
|
207
75
|
|
|
208
|
-
_See code:
|
|
209
|
-
[src/commands/add-assembly.ts](https://github.com/GMOD/jbrowse-components/blob/v3.5.1/products/jbrowse-cli/src/commands/add-assembly.ts)_
|
|
210
|
-
|
|
211
|
-
## `jbrowse add-connection CONNECTIONURLORPATH`
|
|
212
76
|
|
|
213
|
-
|
|
77
|
+
## jbrowse create
|
|
214
78
|
|
|
215
79
|
```
|
|
216
|
-
|
|
217
|
-
$ jbrowse add-connection CONNECTIONURLORPATH [-t <value>] [-a <value>] [-c <value>] [--connectionId <value>] [-n
|
|
218
|
-
<value>] [--target <value>] [--out <value>] [-h] [--skipCheck] [--overwrite] [-f]
|
|
219
|
-
|
|
220
|
-
ARGUMENTS
|
|
221
|
-
CONNECTIONURLORPATH URL of data directory
|
|
222
|
-
For hub file, usually called hub.txt
|
|
223
|
-
For JBrowse 1, location of JB1 data directory similar to http://mysite.com/jbrowse/data/
|
|
224
|
-
|
|
225
|
-
FLAGS
|
|
226
|
-
-a, --assemblyNames=<value> For UCSC, optional: Comma separated list of assembly name(s) to filter from this
|
|
227
|
-
connection. For JBrowse: a single assembly name
|
|
228
|
-
-c, --config=<value> Any extra config settings to add to connection in JSON object format, such as
|
|
229
|
-
'{"uri":"url":"https://sample.com"}, "locationType": "UriLocation"}'
|
|
230
|
-
-f, --force Equivalent to `--skipCheck --overwrite`
|
|
231
|
-
-h, --help Show CLI help.
|
|
232
|
-
-n, --name=<value> Name of the connection. Defaults to connectionId if not provided
|
|
233
|
-
-t, --type=<value> type of connection, ex. JBrowse1Connection, UCSCTrackHubConnection, custom
|
|
234
|
-
--connectionId=<value> Id for the connection that must be unique to JBrowse. Defaults to
|
|
235
|
-
'connectionType-assemblyName-currentTime'
|
|
236
|
-
--out=<value> synonym for target
|
|
237
|
-
--overwrite Overwrites any existing connections if same connection id
|
|
238
|
-
--skipCheck Don't check whether or not the data directory URL exists or if you are in a JBrowse
|
|
239
|
-
directory
|
|
240
|
-
--target=<value> path to config file in JB2 installation directory to write out to.
|
|
80
|
+
Downloads and installs the latest JBrowse 2 release
|
|
241
81
|
|
|
242
|
-
|
|
243
|
-
Add a connection to a JBrowse 2 configuration
|
|
82
|
+
Usage: jbrowse create [localPath] [options]
|
|
244
83
|
|
|
245
|
-
|
|
246
|
-
|
|
84
|
+
Options:
|
|
85
|
+
-h, --help Show help
|
|
86
|
+
-f, --force Overwrites existing JBrowse 2 installation if present in path
|
|
87
|
+
-l, --listVersions Lists out all versions of JBrowse 2
|
|
88
|
+
, --branch Download a development build from a named git branch
|
|
89
|
+
, --nightly Download the latest development build from the main branch
|
|
90
|
+
-u, --url A direct URL to a JBrowse 2 release
|
|
91
|
+
-t, --tag Version of JBrowse 2 to install. Format is v1.0.0.
|
|
92
|
+
Defaults to latest
|
|
247
93
|
|
|
248
|
-
|
|
94
|
+
# Download latest release from github, and put in specific path
|
|
95
|
+
$ jbrowse create /path/to/new/installation
|
|
249
96
|
|
|
250
|
-
|
|
97
|
+
# Download latest release from github and force overwrite existing contents at path
|
|
98
|
+
$ jbrowse create /path/to/new/installation --force
|
|
251
99
|
|
|
252
|
-
|
|
100
|
+
# Download latest release from a specific URL
|
|
101
|
+
$ jbrowse create /path/to/new/installation --url url.com/directjbrowselink.zip
|
|
253
102
|
|
|
254
|
-
|
|
103
|
+
# Download a specific tag from github
|
|
104
|
+
$ jbrowse create /path/to/new/installation --tag v1.0.0
|
|
255
105
|
|
|
256
|
-
|
|
106
|
+
# List available versions
|
|
107
|
+
$ jbrowse create --listVersions
|
|
257
108
|
```
|
|
258
109
|
|
|
259
|
-
_See code:
|
|
260
|
-
[src/commands/add-connection.ts](https://github.com/GMOD/jbrowse-components/blob/v3.5.1/products/jbrowse-cli/src/commands/add-connection.ts)_
|
|
261
|
-
|
|
262
|
-
## `jbrowse add-track TRACK`
|
|
263
110
|
|
|
264
|
-
|
|
111
|
+
## jbrowse add-assembly
|
|
265
112
|
|
|
266
113
|
```
|
|
267
|
-
|
|
268
|
-
$ jbrowse add-track TRACK [-t <value>] [-n <value>] [--indexFile <value>] [-d <value>] [-a <value>]
|
|
269
|
-
[--category <value>] [--config <value>] [--target <value>] [--out <value>] [--subDir <value>] [-h] [--trackId
|
|
270
|
-
<value>] [-l copy|symlink|move|inPlace] [--skipCheck] [--overwrite] [-f] [--protocol <value>] [--bed1 <value>]
|
|
271
|
-
[--bed2 <value>]
|
|
272
|
-
|
|
273
|
-
ARGUMENTS
|
|
274
|
-
TRACK Track file or URL
|
|
275
|
-
|
|
276
|
-
FLAGS
|
|
277
|
-
-a, --assemblyNames=<value> Assembly name or names for track as comma separated string. If none, will default to the
|
|
278
|
-
assembly in your config file
|
|
279
|
-
-d, --description=<value> Optional description of the track
|
|
280
|
-
-f, --force Equivalent to `--skipCheck --overwrite`
|
|
281
|
-
-h, --help Show CLI help.
|
|
282
|
-
-l, --load=<option> Required flag when using a local file. Choose how to manage the track. Copy, symlink, or
|
|
283
|
-
move the track to the JBrowse directory. Or inPlace to leave track alone
|
|
284
|
-
<options: copy|symlink|move|inPlace>
|
|
285
|
-
-n, --name=<value> Name of the track. Will be defaulted to the trackId if none specified
|
|
286
|
-
-t, --trackType=<value> Type of track, by default inferred from track file
|
|
287
|
-
--bed1=<value> Used only for mcscan anchors/simpleAnchors types
|
|
288
|
-
--bed2=<value> Used only for mcscan anchors/simpleAnchors types
|
|
289
|
-
--category=<value> Optional Comma separated string of categories to group tracks
|
|
290
|
-
--config=<value> Any extra config settings to add to a track. i.e '{"defaultRendering": "density"}'
|
|
291
|
-
--indexFile=<value> Optional index file for the track
|
|
292
|
-
--out=<value> synonym for target
|
|
293
|
-
--overwrite Overwrites existing track if it shares the same trackId
|
|
294
|
-
--protocol=<value> [default: uri] Force protocol to a specific value
|
|
295
|
-
--skipCheck Skip check for whether or not the file or URL exists or if you are in a JBrowse directory
|
|
296
|
-
--subDir=<value> when using --load a file, output to a subdirectory of the target dir
|
|
297
|
-
--target=<value> path to config file in JB2 installation to write out to.
|
|
298
|
-
--trackId=<value> trackId for the track, by default inferred from filename, must be unique throughout
|
|
299
|
-
config
|
|
300
|
-
|
|
301
|
-
DESCRIPTION
|
|
302
|
-
Add a track to a JBrowse 2 configuration
|
|
303
|
-
|
|
304
|
-
EXAMPLES
|
|
305
|
-
# copy /path/to/my.bam and /path/to/my.bam.bai to current directory and adds track to config.json
|
|
306
|
-
|
|
307
|
-
$ jbrowse add-track /path/to/my.bam --load copy
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
# copy my.bam and my.bam.bai to /path/to/jb2/bam and adds track entry to /path/to/jb2/bam/config.json
|
|
312
|
-
|
|
313
|
-
$ jbrowse add-track my.bam --load copy --out /path/to/jb2 --subDir bam
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
# same as above, but specify path to bai file. needed for if the bai file does not have the extension .bam.bai
|
|
318
|
-
|
|
319
|
-
$ jbrowse add-track my.bam --indexFile my.bai --load copy
|
|
320
|
-
|
|
321
|
-
|
|
114
|
+
Add an assembly to a JBrowse 2 configuration
|
|
322
115
|
|
|
323
|
-
|
|
116
|
+
Usage: jbrowse add-assembly <sequence> [options]
|
|
117
|
+
|
|
118
|
+
Options:
|
|
119
|
+
-t, --type type of sequence, by default inferred from sequence file
|
|
120
|
+
|
|
121
|
+
indexedFasta An index FASTA (e.g. .fa or .fasta) file;
|
|
122
|
+
can optionally specify --faiLocation
|
|
123
|
+
|
|
124
|
+
bgzipFasta A block-gzipped and indexed FASTA (e.g. .fa.gz or .fasta.gz) file;
|
|
125
|
+
can optionally specify --faiLocation and/or --gziLocation
|
|
126
|
+
|
|
127
|
+
twoBit A twoBit (e.g. .2bit) file
|
|
128
|
+
|
|
129
|
+
chromSizes A chromosome sizes (e.g. .chrom.sizes) file
|
|
130
|
+
|
|
131
|
+
custom Either a JSON file location or inline JSON that defines a custom
|
|
132
|
+
sequence adapter; must provide --name if using inline JSON
|
|
133
|
+
-n, --name Name of the assembly; if not specified, will be guessed using the sequence file name
|
|
134
|
+
-a, --alias An alias for the assembly name (e.g. "hg38" if the name of the assembly is "GRCh38");
|
|
135
|
+
can be specified multiple times
|
|
136
|
+
, --displayName The display name to specify for the assembly, e.g. "Homo sapiens (hg38)" while the name can be a shorter identifier like "hg38"
|
|
137
|
+
, --faiLocation [default: <fastaLocation>.fai] FASTA index file or URL
|
|
138
|
+
, --gziLocation [default: <fastaLocation>.gzi] FASTA gzip index file or URL
|
|
139
|
+
, --refNameAliases Reference sequence name aliases file or URL; assumed to be a tab-separated aliases
|
|
140
|
+
file unless --refNameAliasesType is specified
|
|
141
|
+
, --refNameAliasesType Type of aliases defined by --refNameAliases; if "custom", --refNameAliases is either
|
|
142
|
+
a JSON file location or inline JSON that defines a custom sequence adapter
|
|
143
|
+
, --refNameColors A comma-separated list of color strings for the reference sequence names; will cycle
|
|
144
|
+
through colors if there are fewer colors than sequences
|
|
145
|
+
, --target path to config file in JB2 installation directory to write out to.
|
|
146
|
+
Creates ./config.json if nonexistent
|
|
147
|
+
, --out synonym for target
|
|
148
|
+
-h, --help Display help for command
|
|
149
|
+
-l, --load 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
|
|
150
|
+
, --skipCheck Don't check whether or not the sequence file or URL exists or if you are in a JBrowse directory
|
|
151
|
+
, --overwrite Overwrite existing assembly if one with the same name exists
|
|
152
|
+
-f, --force Equivalent to `--skipCheck --overwrite`
|
|
153
|
+
|
|
154
|
+
# add assembly to installation in current directory. assumes .fai file also exists, and copies GRCh38.fa and GRCh38.fa.fai to current directory
|
|
155
|
+
$ jbrowse add-assembly GRCh38.fa --load copy
|
|
156
|
+
|
|
157
|
+
# add assembly to a specific jb2 installation path using --out, and copies the .fa and .fa.fai file to /path/to/jb2
|
|
158
|
+
$ jbrowse add-assembly GRCh38.fa --out /path/to/jb2/ --load copy
|
|
159
|
+
|
|
160
|
+
# force indexedFasta for add-assembly without relying on file extension
|
|
161
|
+
$ jbrowse add-assembly GRCh38.xyz --type indexedFasta --load copy
|
|
162
|
+
|
|
163
|
+
# add displayName for an assembly
|
|
164
|
+
$ jbrowse add-assembly myFile.fa.gz --name hg38 --displayName "Homo sapiens (hg38)"
|
|
165
|
+
|
|
166
|
+
# use chrom.sizes file for assembly instead of a fasta file
|
|
167
|
+
$ jbrowse add-assembly GRCh38.chrom.sizes --load inPlace
|
|
168
|
+
|
|
169
|
+
# add assembly from preconfigured json file, expert option
|
|
170
|
+
$ jbrowse add-assembly GRCh38.config.json --load copy
|
|
171
|
+
|
|
172
|
+
# add assembly from a 2bit file, also note pointing direct to a URL so no --load flag needed
|
|
173
|
+
$ jbrowse add-assembly https://example.com/data/sample.2bit
|
|
174
|
+
|
|
175
|
+
# add a bgzip indexed fasta inferred by fa.gz extension. assumes .fa.gz.gzi and .fa.gz.fai files also exists
|
|
176
|
+
$ jbrowse add-assembly myfile.fa.gz --load copy
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
## jbrowse add-track
|
|
324
181
|
|
|
325
|
-
|
|
182
|
+
```
|
|
183
|
+
Add a track to a JBrowse 2 configuration
|
|
326
184
|
|
|
185
|
+
Usage: jbrowse add-track <track> [options]
|
|
327
186
|
|
|
187
|
+
Options:
|
|
188
|
+
-h, --help undefined
|
|
189
|
+
-t, --trackType Type of track, by default inferred from track file
|
|
190
|
+
-n, --name Name of the track. Will be defaulted to the trackId if none specified
|
|
191
|
+
, --indexFile Optional index file for the track
|
|
192
|
+
-d, --description Optional description of the track
|
|
193
|
+
-a, --assemblyNames Assembly name or names for track as comma separated string
|
|
194
|
+
, --category Optional comma separated string of categories to group tracks
|
|
195
|
+
, --config Any extra config settings to add to a track
|
|
196
|
+
, --target Path to config file in JB2 installation to write out to
|
|
197
|
+
, --out Synonym for target
|
|
198
|
+
, --subDir When using --load a file, output to a subdirectory of the target dir
|
|
199
|
+
, --trackId trackId for the track, by default inferred from filename
|
|
200
|
+
-l, --load How to manage the track (copy, symlink, move, inPlace)
|
|
201
|
+
, --skipCheck Skip check for whether file or URL exists
|
|
202
|
+
, --overwrite Overwrites existing track if it shares the same trackId
|
|
203
|
+
-f, --force Equivalent to --skipCheck --overwrite
|
|
204
|
+
, --protocol Force protocol to a specific value
|
|
205
|
+
, --bed1 Used only for mcscan anchors/simpleAnchors types
|
|
206
|
+
, --bed2 Used only for mcscan anchors/simpleAnchors types
|
|
328
207
|
|
|
329
|
-
|
|
208
|
+
# copy /path/to/my.bam and /path/to/my.bam.bai to current directory and adds track to config.json
|
|
209
|
+
$ jbrowse add-track /path/to/my.bam --load copy
|
|
330
210
|
|
|
331
|
-
|
|
211
|
+
# copy my.bam and my.bam.bai to /path/to/jb2/bam and adds track entry to /path/to/jb2/bam/config.json
|
|
212
|
+
$ jbrowse add-track my.bam --load copy --out /path/to/jb2 --subDir bam
|
|
332
213
|
|
|
214
|
+
# same as above, but specify path to bai file. needed for if the bai file does not have the extension .bam.bai
|
|
215
|
+
$ jbrowse add-track my.bam --indexFile my.bai --load copy
|
|
333
216
|
|
|
217
|
+
# creates symlink for /path/to/my.bam and adds track to config.json
|
|
218
|
+
$ jbrowse add-track /path/to/my.bam --load symlink
|
|
334
219
|
|
|
335
|
-
|
|
220
|
+
# add track from URL to config.json, no --load flag needed
|
|
221
|
+
$ jbrowse add-track https://mywebsite.com/my.bam
|
|
336
222
|
|
|
337
|
-
|
|
223
|
+
# --load inPlace adds a track without doing file operations
|
|
224
|
+
$ jbrowse add-track /url/relative/path.bam --load inPlace
|
|
338
225
|
```
|
|
339
226
|
|
|
340
|
-
_See code:
|
|
341
|
-
[src/commands/add-track.ts](https://github.com/GMOD/jbrowse-components/blob/v3.5.1/products/jbrowse-cli/src/commands/add-track.ts)_
|
|
342
|
-
|
|
343
|
-
## `jbrowse add-track-json TRACK`
|
|
344
227
|
|
|
345
|
-
|
|
346
|
-
configuration
|
|
228
|
+
## jbrowse text-index
|
|
347
229
|
|
|
348
230
|
```
|
|
349
|
-
|
|
350
|
-
$ jbrowse add-track-json TRACK [-u] [--target <value>] [--out <value>]
|
|
351
|
-
|
|
352
|
-
ARGUMENTS
|
|
353
|
-
TRACK track JSON file or command line arg blob
|
|
354
|
-
|
|
355
|
-
FLAGS
|
|
356
|
-
-u, --update update the contents of an existing track, matched based on trackId
|
|
357
|
-
--out=<value> synonym for target
|
|
358
|
-
--target=<value> path to config file in JB2 installation directory to write out to.
|
|
359
|
-
Creates ./config.json if nonexistent
|
|
231
|
+
Make a text-indexing file for any given track(s).
|
|
360
232
|
|
|
361
|
-
|
|
362
|
-
Add a track configuration directly from a JSON hunk to the JBrowse 2 configuration
|
|
233
|
+
Usage: jbrowse text-index [options]
|
|
363
234
|
|
|
364
|
-
|
|
365
|
-
|
|
235
|
+
Options:
|
|
236
|
+
-h, --help Show CLI help
|
|
237
|
+
, --tracks Specific tracks to index, formatted as comma separated trackIds. If unspecified, indexes all available tracks
|
|
238
|
+
, --target Path to config file in JB2 installation directory to read from.
|
|
239
|
+
, --out Synonym for target
|
|
240
|
+
, --attributes Comma separated list of attributes to index
|
|
241
|
+
-a, --assemblies Specify the assembl(ies) to create an index for. If unspecified, creates an index for each assembly in the config
|
|
242
|
+
, --force Overwrite previously existing indexes
|
|
243
|
+
-q, --quiet Hide the progress bars
|
|
244
|
+
, --perTrack If set, creates an index per track
|
|
245
|
+
, --exclude Adds gene type to list of excluded types
|
|
246
|
+
, --prefixSize Specify the prefix size for the ixx index. We attempt to automatically calculate this, but you can manually specify this too. If many genes have similar gene IDs e.g. Z000000001, Z000000002 the prefix size should be larger so that they get split into different bins
|
|
247
|
+
, --file File or files to index (can be used to create trix indexes for embedded component use cases not using a config.json for example)
|
|
248
|
+
, --fileId Set the trackId used for the indexes generated with the --file argument
|
|
249
|
+
, --dryrun Just print out tracks that will be indexed by the process, without doing any indexing
|
|
366
250
|
|
|
367
|
-
|
|
368
|
-
|
|
251
|
+
# indexes all tracks that it can find in the current directory's config.json
|
|
252
|
+
$ jbrowse text-index
|
|
369
253
|
|
|
370
|
-
|
|
371
|
-
|
|
254
|
+
# indexes specific trackIds that it can find in the current directory's config.json
|
|
255
|
+
$ jbrowse text-index --tracks=track1,track2,track3
|
|
372
256
|
|
|
373
|
-
|
|
257
|
+
# indexes all tracks in a directory's config.json or in a specific config file
|
|
258
|
+
$ jbrowse text-index --out /path/to/jb2/
|
|
374
259
|
|
|
375
|
-
|
|
260
|
+
# indexes only a specific assembly, and overwrite what was previously there using force (which is needed if a previous index already existed)
|
|
261
|
+
$ jbrowse text-index -a hg19 --force
|
|
376
262
|
|
|
263
|
+
# create index for some files for use in @jbrowse/react-linear-genome-view2 or similar
|
|
264
|
+
$ jbrowse text-index --file myfile.gff3.gz --file myfile.vcfgz --out indexes
|
|
377
265
|
```
|
|
378
|
-
USAGE
|
|
379
|
-
$ jbrowse admin-server [-p <value>] [--root <value>] [--bodySizeLimit <value>] [-h]
|
|
380
|
-
|
|
381
|
-
FLAGS
|
|
382
|
-
-h, --help Show CLI help.
|
|
383
|
-
-p, --port=<value> Specifified port to start the server on;
|
|
384
|
-
Default is 9090.
|
|
385
|
-
--bodySizeLimit=<value> [default: 25mb] Size limit of the update message; may need to increase if config is
|
|
386
|
-
large.
|
|
387
|
-
Argument is passed to bytes library for parsing: https://www.npmjs.com/package/bytes.
|
|
388
|
-
--root=<value> path to the root of the JB2 installation.
|
|
389
|
-
Creates ./config.json if nonexistent. note that you can navigate to
|
|
390
|
-
?config=path/to/subconfig.json in the web browser and it will write to
|
|
391
|
-
rootDir/path/to/subconfig.json
|
|
392
266
|
|
|
393
|
-
DESCRIPTION
|
|
394
|
-
Start up a small admin server for JBrowse configuration
|
|
395
267
|
|
|
396
|
-
|
|
397
|
-
$ jbrowse admin-server
|
|
268
|
+
## jbrowse admin-server
|
|
398
269
|
|
|
399
|
-
$ jbrowse admin-server -p 8888
|
|
400
270
|
```
|
|
271
|
+
Start up a small admin server for JBrowse configuration
|
|
401
272
|
|
|
402
|
-
|
|
403
|
-
[src/commands/admin-server.ts](https://github.com/GMOD/jbrowse-components/blob/v3.5.1/products/jbrowse-cli/src/commands/admin-server.ts)_
|
|
404
|
-
|
|
405
|
-
## `jbrowse create LOCALPATH`
|
|
273
|
+
Usage: jbrowse admin-server [options]
|
|
406
274
|
|
|
407
|
-
|
|
275
|
+
Options:
|
|
276
|
+
-h, --help undefined
|
|
277
|
+
-p, --port Specified port to start the server on (default: 9090)
|
|
278
|
+
, --root Path to the root of the JB2 installation
|
|
279
|
+
, --bodySizeLimit Size limit of the update message (default: 25mb)
|
|
408
280
|
|
|
281
|
+
$ jbrowse admin-server
|
|
282
|
+
$ jbrowse admin-server -p 8888
|
|
409
283
|
```
|
|
410
|
-
USAGE
|
|
411
|
-
$ jbrowse create LOCALPATH [-h] [-f] [-l] [--branch <value>] [--nightly] [-u <value>] [-t <value>]
|
|
412
|
-
|
|
413
|
-
ARGUMENTS
|
|
414
|
-
LOCALPATH Location where JBrowse 2 will be installed
|
|
415
|
-
|
|
416
|
-
FLAGS
|
|
417
|
-
-f, --force Overwrites existing JBrowse 2 installation if present in path
|
|
418
|
-
-h, --help Show CLI help.
|
|
419
|
-
-l, --listVersions Lists out all versions of JBrowse 2
|
|
420
|
-
-t, --tag=<value> Version of JBrowse 2 to install. Format is v1.0.0.
|
|
421
|
-
Defaults to latest
|
|
422
|
-
-u, --url=<value> A direct URL to a JBrowse 2 release
|
|
423
|
-
--branch=<value> Download a development build from a named git branch
|
|
424
|
-
--nightly Download the latest development build from the main branch
|
|
425
284
|
|
|
426
|
-
DESCRIPTION
|
|
427
|
-
Downloads and installs the latest JBrowse 2 release
|
|
428
285
|
|
|
429
|
-
|
|
430
|
-
# Download latest release from github, and put in specific path
|
|
286
|
+
## jbrowse upgrade
|
|
431
287
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
# Download latest release from github and force overwrite existing contents at path
|
|
437
|
-
|
|
438
|
-
$ jbrowse create /path/to/new/installation --force
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
# Download latest release from a specific URL
|
|
443
|
-
|
|
444
|
-
$ jbrowse create /path/to/new/installation --url url.com/directjbrowselink.zip
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
# Download a specific tag from github
|
|
449
|
-
|
|
450
|
-
$ jbrowse create /path/to/new/installation --tag v1.0.0
|
|
288
|
+
```
|
|
289
|
+
Upgrades JBrowse 2 to latest version
|
|
451
290
|
|
|
291
|
+
Usage: jbrowse upgrade [localPath] [options]
|
|
452
292
|
|
|
293
|
+
Options:
|
|
294
|
+
-h, --help Display help for command
|
|
295
|
+
-l, --listVersions Lists out all versions of JBrowse 2
|
|
296
|
+
-t, --tag Version of JBrowse 2 to install. Format is v1.0.0.
|
|
297
|
+
Defaults to latest
|
|
298
|
+
, --branch Download a development build from a named git branch
|
|
299
|
+
, --nightly Download the latest development build from the main branch
|
|
300
|
+
, --clean Removes old js,map,and LICENSE files in the installation
|
|
301
|
+
-u, --url A direct URL to a JBrowse 2 release
|
|
453
302
|
|
|
454
|
-
|
|
303
|
+
# Upgrades current directory to latest jbrowse release
|
|
304
|
+
$ jbrowse upgrade
|
|
455
305
|
|
|
456
|
-
|
|
457
|
-
|
|
306
|
+
# Upgrade jbrowse instance at a specific filesystem path
|
|
307
|
+
$ jbrowse upgrade /path/to/jbrowse2/installation
|
|
458
308
|
|
|
459
|
-
|
|
460
|
-
|
|
309
|
+
# Upgrade to a specific tag
|
|
310
|
+
$ jbrowse upgrade /path/to/jbrowse2/installation --tag v1.0.0
|
|
461
311
|
|
|
462
|
-
|
|
312
|
+
# List versions available on github
|
|
313
|
+
$ jbrowse upgrade --listVersions
|
|
463
314
|
|
|
464
|
-
|
|
315
|
+
# Upgrade from a specific URL
|
|
316
|
+
$ jbrowse upgrade --url https://sample.com/jbrowse2.zip
|
|
465
317
|
|
|
318
|
+
# Get nightly release from main branch
|
|
319
|
+
$ jbrowse upgrade --nightly
|
|
466
320
|
```
|
|
467
|
-
USAGE
|
|
468
|
-
$ jbrowse help [COMMAND...] [-n]
|
|
469
321
|
|
|
470
|
-
ARGUMENTS
|
|
471
|
-
COMMAND... Command to show help for.
|
|
472
322
|
|
|
473
|
-
|
|
474
|
-
-n, --nested-commands Include all nested commands in the output.
|
|
323
|
+
## jbrowse make-pif
|
|
475
324
|
|
|
476
|
-
DESCRIPTION
|
|
477
|
-
Display help for jbrowse.
|
|
478
325
|
```
|
|
479
|
-
|
|
480
|
-
_See code:
|
|
481
|
-
[@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.28/src/commands/help.ts)_
|
|
482
|
-
|
|
483
|
-
## `jbrowse make-pif FILE`
|
|
484
|
-
|
|
485
326
|
creates pairwise indexed PAF (PIF), with bgzip and tabix
|
|
486
327
|
|
|
487
|
-
|
|
488
|
-
USAGE
|
|
489
|
-
$ jbrowse make-pif FILE [--out <value>] [--csi] [-h]
|
|
490
|
-
|
|
491
|
-
ARGUMENTS
|
|
492
|
-
FILE PAF file as input
|
|
493
|
-
|
|
494
|
-
FLAGS
|
|
495
|
-
-h, --help Show CLI help.
|
|
496
|
-
--csi Create a CSI index for the PIF file instead of TBI
|
|
497
|
-
--out=<value> Where to write the output file. will write ${file}.pif.gz and ${file}.pif.gz.tbi
|
|
498
|
-
|
|
499
|
-
DESCRIPTION
|
|
500
|
-
creates pairwise indexed PAF (PIF), with bgzip and tabix
|
|
328
|
+
Usage: jbrowse make-pif <file> [options]
|
|
501
329
|
|
|
502
|
-
|
|
503
|
-
|
|
330
|
+
Options:
|
|
331
|
+
-h, --help undefined
|
|
332
|
+
, --out Where to write the output file. will write ${file}.pif.gz and ${file}.pif.gz.tbi
|
|
333
|
+
, --csi Create a CSI index for the PIF file instead of TBI
|
|
504
334
|
|
|
335
|
+
$ jbrowse make-pif input.paf # creates input.pif.gz in same directory
|
|
505
336
|
|
|
506
|
-
|
|
507
|
-
$ jbrowse pif input.paf --out output.pif.gz # specify output file, creates output.pif.gz.tbi also
|
|
337
|
+
$ jbrowse make-pif input.paf --out output.pif.gz # specify output file, creates output.pif.gz.tbi also
|
|
508
338
|
```
|
|
509
339
|
|
|
510
|
-
_See code:
|
|
511
|
-
[src/commands/make-pif.ts](https://github.com/GMOD/jbrowse-components/blob/v3.5.1/products/jbrowse-cli/src/commands/make-pif.ts)_
|
|
512
|
-
|
|
513
|
-
## `jbrowse remove-track TRACK`
|
|
514
340
|
|
|
515
|
-
|
|
516
|
-
can cause crashes in saved sessions that refer to this track!
|
|
341
|
+
## jbrowse sort-gff
|
|
517
342
|
|
|
518
343
|
```
|
|
519
|
-
|
|
520
|
-
$ jbrowse remove-track TRACK [--target <value>] [--out <value>]
|
|
344
|
+
Helper utility to sort GFF files for tabix. Moves all lines starting with # to the top of the file, and sort by refname and start position using unix utilities sort and grep
|
|
521
345
|
|
|
522
|
-
|
|
523
|
-
TRACK track JSON file or command line arg blob
|
|
346
|
+
Usage: jbrowse sort-gff [file] [options]
|
|
524
347
|
|
|
525
|
-
|
|
526
|
-
--
|
|
527
|
-
--target=<value> path to config file in JB2 installation directory to write out to.
|
|
528
|
-
Creates ./config.json if nonexistent
|
|
348
|
+
Options:
|
|
349
|
+
-h, --help undefined
|
|
529
350
|
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
351
|
+
# sort gff and pipe to bgzip
|
|
352
|
+
$ jbrowse sort-gff input.gff | bgzip > sorted.gff.gz
|
|
353
|
+
$ tabix sorted.gff.gz
|
|
533
354
|
|
|
534
|
-
|
|
535
|
-
|
|
355
|
+
# sort gff from stdin
|
|
356
|
+
$ cat input.gff | jbrowse sort-gff | bgzip > sorted.gff.gz
|
|
536
357
|
```
|
|
537
358
|
|
|
538
|
-
_See code:
|
|
539
|
-
[src/commands/remove-track.ts](https://github.com/GMOD/jbrowse-components/blob/v3.5.1/products/jbrowse-cli/src/commands/remove-track.ts)_
|
|
540
359
|
|
|
541
|
-
##
|
|
542
|
-
|
|
543
|
-
Set a default session with views and tracks
|
|
360
|
+
## jbrowse sort-bed
|
|
544
361
|
|
|
545
362
|
```
|
|
546
|
-
|
|
547
|
-
$ jbrowse set-default-session [-s <value>] [-n <value>] [-c] [--target <value>] [--out <value>] [--delete] [-h]
|
|
548
|
-
|
|
549
|
-
FLAGS
|
|
550
|
-
-c, --currentSession List out the current default session
|
|
551
|
-
-h, --help Show CLI help.
|
|
552
|
-
-n, --name=<value> [default: New Default Session] Give a name for the default session
|
|
553
|
-
-s, --session=<value> set path to a file containing session in json format (required, unless using
|
|
554
|
-
delete/currentSession flags)
|
|
555
|
-
--delete Delete any existing default session.
|
|
556
|
-
--out=<value> synonym for target
|
|
557
|
-
--target=<value> path to config file in JB2 installation directory to write out to
|
|
558
|
-
|
|
559
|
-
DESCRIPTION
|
|
560
|
-
Set a default session with views and tracks
|
|
561
|
-
|
|
562
|
-
EXAMPLES
|
|
563
|
-
# set default session for the config.json in your current directory
|
|
564
|
-
|
|
565
|
-
$ jbrowse set-default-session --session /path/to/default/session.json
|
|
566
|
-
|
|
567
|
-
|
|
363
|
+
Helper utility to sort BED files for tabix. Moves all lines starting with # to the top of the file, and sort by refname and start position using unix utilities sort and grep
|
|
568
364
|
|
|
569
|
-
|
|
365
|
+
Usage: jbrowse sort-bed [file] [options]
|
|
570
366
|
|
|
571
|
-
|
|
367
|
+
Options:
|
|
368
|
+
-h, --help undefined
|
|
572
369
|
|
|
370
|
+
# sort bed and pipe to bgzip
|
|
371
|
+
$ jbrowse sort-bed input.bed | bgzip > sorted.bed.gz
|
|
372
|
+
$ tabix sorted.bed.gz
|
|
573
373
|
|
|
574
|
-
|
|
575
|
-
# print current default session
|
|
576
|
-
|
|
577
|
-
$ jbrowse set-default-session --currentSession # Prints out current default session
|
|
374
|
+
# OR pipe data via stdin: cat file.bed | jbrowse sort-bed | bgzip > sorted.bed.gz
|
|
578
375
|
```
|
|
579
376
|
|
|
580
|
-
_See code:
|
|
581
|
-
[src/commands/set-default-session.ts](https://github.com/GMOD/jbrowse-components/blob/v3.5.1/products/jbrowse-cli/src/commands/set-default-session.ts)_
|
|
582
|
-
|
|
583
|
-
## `jbrowse sort-bed FILE`
|
|
584
377
|
|
|
585
|
-
|
|
586
|
-
the top of the file, and sort by refname and start position using unix utilities
|
|
587
|
-
sort and grep
|
|
378
|
+
## jbrowse add-connection
|
|
588
379
|
|
|
589
380
|
```
|
|
590
|
-
|
|
591
|
-
$ jbrowse sort-bed FILE [-h]
|
|
592
|
-
|
|
593
|
-
ARGUMENTS
|
|
594
|
-
FILE GFF file
|
|
595
|
-
|
|
596
|
-
FLAGS
|
|
597
|
-
-h, --help Show CLI help.
|
|
598
|
-
|
|
599
|
-
DESCRIPTION
|
|
600
|
-
Helper utility to sort GFF files for tabix. Moves all lines starting with # to the top of the file, and sort by
|
|
601
|
-
refname and start position using unix utilities sort and grep
|
|
381
|
+
Add a connection to a JBrowse 2 configuration
|
|
602
382
|
|
|
603
|
-
|
|
604
|
-
# sort gff and pipe to bgzip
|
|
383
|
+
Usage: jbrowse add-connection <connectionUrlOrPath> [options]
|
|
605
384
|
|
|
606
|
-
|
|
385
|
+
Options:
|
|
386
|
+
-h, --help undefined
|
|
387
|
+
-t, --type Type of connection (e.g. JBrowse1Connection, UCSCTrackHubConnection, custom)
|
|
388
|
+
-a, --assemblyNames For UCSC: optional comma separated list of assembly names to filter. For JBrowse1: a single assembly name
|
|
389
|
+
-c, --config Extra config settings to add to connection in JSON object format
|
|
390
|
+
, --connectionId Id for the connection that must be unique to JBrowse
|
|
391
|
+
-n, --name Name of the connection. Defaults to connectionId if not provided
|
|
392
|
+
, --target Path to config file in JB2 installation directory to write out to
|
|
393
|
+
, --out Synonym for target
|
|
394
|
+
, --skipCheck Don't check whether the data directory URL exists
|
|
395
|
+
, --overwrite Overwrites any existing connections if same connection id
|
|
396
|
+
-f, --force Equivalent to --skipCheck --overwrite
|
|
607
397
|
|
|
608
|
-
|
|
398
|
+
$ jbrowse add-connection http://mysite.com/jbrowse/data/ -a hg19
|
|
399
|
+
$ jbrowse add-connection http://mysite.com/jbrowse/custom_data_folder/ --type JBrowse1Connection -a hg38
|
|
400
|
+
$ jbrowse add-connection http://mysite.com/path/to/hub.txt
|
|
401
|
+
$ jbrowse add-connection http://mysite.com/path/to/custom_hub_name.txt --type UCSCTrackHubConnection
|
|
402
|
+
$ jbrowse add-connection http://mysite.com/path/to/custom --type custom --config '{"uri":{"url":"https://mysite.com/path/to/custom"}, "locationType": "UriLocation"}' -a hg19
|
|
403
|
+
$ jbrowse add-connection https://mysite.com/path/to/hub.txt --connectionId newId --name newName --target /path/to/jb2/installation/config.json
|
|
609
404
|
```
|
|
610
405
|
|
|
611
|
-
_See code:
|
|
612
|
-
[src/commands/sort-bed.ts](https://github.com/GMOD/jbrowse-components/blob/v3.5.1/products/jbrowse-cli/src/commands/sort-bed.ts)_
|
|
613
|
-
|
|
614
|
-
## `jbrowse sort-gff FILE`
|
|
615
406
|
|
|
616
|
-
|
|
617
|
-
the top of the file, and sort by refname and start position using unix utilities
|
|
618
|
-
sort and grep
|
|
407
|
+
## jbrowse add-track-json
|
|
619
408
|
|
|
620
409
|
```
|
|
621
|
-
|
|
622
|
-
$ jbrowse sort-gff FILE [-h]
|
|
623
|
-
|
|
624
|
-
ARGUMENTS
|
|
625
|
-
FILE GFF file
|
|
626
|
-
|
|
627
|
-
FLAGS
|
|
628
|
-
-h, --help Show CLI help.
|
|
410
|
+
Add a track configuration directly from a JSON hunk to the JBrowse 2 configuration
|
|
629
411
|
|
|
630
|
-
|
|
631
|
-
Helper utility to sort GFF files for tabix. Moves all lines starting with # to the top of the file, and sort by
|
|
632
|
-
refname and start position using unix utilities sort and grep
|
|
412
|
+
Usage: jbrowse add-track-json <track> [options]
|
|
633
413
|
|
|
634
|
-
|
|
635
|
-
|
|
414
|
+
Options:
|
|
415
|
+
-h, --help undefined
|
|
416
|
+
-u, --update Update the contents of an existing track, matched based on trackId
|
|
417
|
+
, --target Path to config file in JB2 installation directory to write out to
|
|
418
|
+
, --out Synonym for target
|
|
636
419
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
$ tabix sorted.gff.gz
|
|
420
|
+
$ jbrowse add-track-json track.json
|
|
421
|
+
$ jbrowse add-track-json track.json --update
|
|
640
422
|
```
|
|
641
423
|
|
|
642
|
-
_See code:
|
|
643
|
-
[src/commands/sort-gff.ts](https://github.com/GMOD/jbrowse-components/blob/v3.5.1/products/jbrowse-cli/src/commands/sort-gff.ts)_
|
|
644
|
-
|
|
645
|
-
## `jbrowse text-index`
|
|
646
424
|
|
|
647
|
-
|
|
425
|
+
## jbrowse remove-track
|
|
648
426
|
|
|
649
427
|
```
|
|
650
|
-
|
|
651
|
-
$ jbrowse text-index [-h] [--tracks <value>] [--target <value>] [--out <value>] [--attributes <value>] [-a
|
|
652
|
-
<value>] [--force] [-q] [--perTrack] [--exclude <value>] [--prefixSize <value>] [--file <value>...] [--fileId
|
|
653
|
-
<value>...] [--dryrun]
|
|
654
|
-
|
|
655
|
-
FLAGS
|
|
656
|
-
-a, --assemblies=<value> Specify the assembl(ies) to create an index for. If unspecified, creates an index for each
|
|
657
|
-
assembly in the config
|
|
658
|
-
-h, --help Show CLI help.
|
|
659
|
-
-q, --quiet Hide the progress bars
|
|
660
|
-
--attributes=<value> [default: Name,ID] Comma separated list of attributes to index
|
|
661
|
-
--dryrun Just print out tracks that will be indexed by the process, without doing any indexing
|
|
662
|
-
--exclude=<value> [default: CDS,exon] Adds gene type to list of excluded types
|
|
663
|
-
--file=<value>... File or files to index (can be used to create trix indexes for embedded component use cases
|
|
664
|
-
not using a config.json for example)
|
|
665
|
-
--fileId=<value>... Set the trackId used for the indexes generated with the --file argument
|
|
666
|
-
--force Overwrite previously existing indexes
|
|
667
|
-
--out=<value> Synonym for target
|
|
668
|
-
--perTrack If set, creates an index per track
|
|
669
|
-
--prefixSize=<value> Specify the prefix size for the ixx index. We attempt to automatically calculate this, but
|
|
670
|
-
you can manually specify this too. If many genes have similar gene IDs e.g. Z000000001,
|
|
671
|
-
Z000000002 the prefix size should be larger so that they get split into different bins
|
|
672
|
-
--target=<value> Path to config file in JB2 installation directory to read from.
|
|
673
|
-
--tracks=<value> Specific tracks to index, formatted as comma separated trackIds. If unspecified, indexes all
|
|
674
|
-
available tracks
|
|
675
|
-
|
|
676
|
-
DESCRIPTION
|
|
677
|
-
Make a text-indexing file for any given track(s).
|
|
678
|
-
|
|
679
|
-
EXAMPLES
|
|
680
|
-
# indexes all tracks that it can find in the current directory's config.json
|
|
681
|
-
|
|
682
|
-
$ jbrowse text-index
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
# indexes specific trackIds that it can find in the current directory's config.json
|
|
687
|
-
|
|
688
|
-
$ jbrowse text-index --tracks=track1,track2,track3
|
|
428
|
+
Remove a track configuration from a JBrowse 2 configuration. Be aware that this can cause crashes in saved sessions that refer to this track!
|
|
689
429
|
|
|
430
|
+
Usage: jbrowse remove-track <trackId> [options]
|
|
690
431
|
|
|
432
|
+
Options:
|
|
433
|
+
-h, --help undefined
|
|
434
|
+
, --target Path to config file in JB2 installation directory to write out to
|
|
435
|
+
, --out Synonym for target
|
|
691
436
|
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
$ jbrowse text-index --out /path/to/jb2/
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
# indexes only a specific assembly, and overwrite what was previously there using force (which is needed if a previous index already existed)
|
|
699
|
-
|
|
700
|
-
$ jbrowse text-index -a hg19 --force
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
# create index for some files for use in @jbrowse/react-linear-genome-view2 or similar
|
|
705
|
-
|
|
706
|
-
$ jbrowse text-index --file myfile.gff3.gz --file myfile.vcfgz --out indexes
|
|
437
|
+
$ jbrowse remove-track trackId
|
|
707
438
|
```
|
|
708
439
|
|
|
709
|
-
_See code:
|
|
710
|
-
[src/commands/text-index.ts](https://github.com/GMOD/jbrowse-components/blob/v3.5.1/products/jbrowse-cli/src/commands/text-index.ts)_
|
|
711
440
|
|
|
712
|
-
##
|
|
713
|
-
|
|
714
|
-
Upgrades JBrowse 2 to latest version
|
|
441
|
+
## jbrowse set-default-session
|
|
715
442
|
|
|
716
443
|
```
|
|
717
|
-
|
|
718
|
-
$ jbrowse upgrade [LOCALPATH] [-h] [-l] [-t <value>] [--branch <value>] [--nightly] [--clean] [-u <value>]
|
|
719
|
-
|
|
720
|
-
ARGUMENTS
|
|
721
|
-
LOCALPATH [default: .] Location where JBrowse 2 is installed
|
|
722
|
-
|
|
723
|
-
FLAGS
|
|
724
|
-
-h, --help Show CLI help.
|
|
725
|
-
-l, --listVersions Lists out all versions of JBrowse 2
|
|
726
|
-
-t, --tag=<value> Version of JBrowse 2 to install. Format is v1.0.0.
|
|
727
|
-
Defaults to latest
|
|
728
|
-
-u, --url=<value> A direct URL to a JBrowse 2 release
|
|
729
|
-
--branch=<value> Download a development build from a named git branch
|
|
730
|
-
--clean Removes old js,map,and LICENSE files in the installation
|
|
731
|
-
--nightly Download the latest development build from the main branch
|
|
732
|
-
|
|
733
|
-
DESCRIPTION
|
|
734
|
-
Upgrades JBrowse 2 to latest version
|
|
735
|
-
|
|
736
|
-
EXAMPLES
|
|
737
|
-
# Upgrades current directory to latest jbrowse release
|
|
738
|
-
|
|
739
|
-
$ jbrowse upgrade
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
# Upgrade jbrowse instance at a specific filesystem path
|
|
744
|
-
|
|
745
|
-
$ jbrowse upgrade /path/to/jbrowse2/installation
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
# Upgrade to a specific tag
|
|
750
|
-
|
|
751
|
-
$ jbrowse upgrade /path/to/jbrowse2/installation --tag v1.0.0
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
# List versions available on github
|
|
756
|
-
|
|
757
|
-
$ jbrowse upgrade --listVersions
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
# Upgrade from a specific URL
|
|
444
|
+
Set a default session with views and tracks
|
|
762
445
|
|
|
763
|
-
|
|
446
|
+
Usage: jbrowse add-track <track> [options]
|
|
764
447
|
|
|
448
|
+
Options:
|
|
449
|
+
-s, --session set path to a file containing session in json format (required, unless using delete/currentSession flags)
|
|
450
|
+
-n, --name Give a name for the default session
|
|
451
|
+
-c, --currentSession List out the current default session
|
|
452
|
+
, --target path to config file in JB2 installation directory to write out to
|
|
453
|
+
, --out synonym for target
|
|
454
|
+
, --delete Delete any existing default session.
|
|
455
|
+
-h, --help Show help
|
|
765
456
|
|
|
457
|
+
# set default session for the config.json in your current directory
|
|
458
|
+
$ jbrowse set-default-session --session /path/to/default/session.json
|
|
766
459
|
|
|
767
|
-
|
|
460
|
+
# make session.json the defaultSession on the specified target config.json file
|
|
461
|
+
$ jbrowse set-default-session --target /path/to/jb2/installation/config.json --session session.json
|
|
768
462
|
|
|
769
|
-
|
|
463
|
+
# print current default session
|
|
464
|
+
$ jbrowse set-default-session --currentSession # Prints out current default session
|
|
770
465
|
```
|
|
771
466
|
|
|
772
|
-
_See code:
|
|
773
|
-
[src/commands/upgrade.ts](https://github.com/GMOD/jbrowse-components/blob/v3.5.1/products/jbrowse-cli/src/commands/upgrade.ts)_
|
|
774
|
-
|
|
775
|
-
<!-- commandsstop -->
|
|
776
|
-
|
|
777
|
-
## Debugging
|
|
778
467
|
|
|
779
|
-
Debug logs (provided by [debug](https://github.com/visionmedia/debug)) can be
|
|
780
|
-
printed by setting the `DEBUG` environment variable. Setting `DEBUG=*` will
|
|
781
|
-
print all debug logs. Setting `DEBUG=jbrowse*` will print only logs from this
|
|
782
|
-
tool, and setting e.g. `DEBUG=jbrowse:add-assembly` will print only logs from
|
|
783
|
-
the `add-assembly` command.
|