npm install -g @jbrowse/cli jbrowse create jbrowse2 cd jbrowse2 npx serve -s .
This command first installs jbrowse's cli, which is essential for creating and managing jbrowse2 instances, and then creates a jbrowse2 project. After that, we cd into it and serve it using npx. Our instance of jbrowse2 can now be accessed at
Remove any existing track or browser lines from the wig files
Use the fetchChromSizes binary to create chrom.sizes files for the existing wig files
wigToBigWig input.wig chrom.sizes bigWig.bw
The wigToBigWig binary can be used to convert wig files into the bigWig format. The bigWig format provides a more efficient way to view larger wig files, as only the sections being displayed are rendered to the screen.
jbrowse add-track bigWig.bw --load copy --out /var/www/html/jbrowse
Where /var/www/html/ is the static HTML folder of the web server
You can then open it from Add Track and passing the URL
You can open the "Add Track" menu, choose the bigwig file and load it
Clicking on the "???" next to the file name and clicking on settings opens a settings menu, where multiple traits such as the track name, description et cetera can be modified.