summaryrefslogtreecommitdiff
path: root/topics/genome-browser/adding-bigwig-track.gmi
diff options
context:
space:
mode:
authorPjotr Prins2023-12-03 09:42:57 -0600
committerPjotr Prins2023-12-03 09:42:57 -0600
commitf63f9df201c3ae57ad8b52cf5127995c82944be7 (patch)
tree00731e4b2e5b0fd4434a8b9b308703ded915df22 /topics/genome-browser/adding-bigwig-track.gmi
parentfe2d644507548dcbaaf8d675d2e5c96795101d70 (diff)
downloadgn-gemtext-f63f9df201c3ae57ad8b52cf5127995c82944be7.tar.gz
Moving files
Diffstat (limited to 'topics/genome-browser/adding-bigwig-track.gmi')
-rw-r--r--topics/genome-browser/adding-bigwig-track.gmi46
1 files changed, 46 insertions, 0 deletions
diff --git a/topics/genome-browser/adding-bigwig-track.gmi b/topics/genome-browser/adding-bigwig-track.gmi
new file mode 100644
index 0000000..19b0364
--- /dev/null
+++ b/topics/genome-browser/adding-bigwig-track.gmi
@@ -0,0 +1,46 @@
+# Adding Quantitative Tracks Using BigWig Files
+## Setting up JBrowse2
+### Install and Serve JBrowse2
+> 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
+=> https://localhost:3000
+
+## Creating and Loading a BigWig track
+### Cleaning wig files
+Remove any existing track or browser lines from the wig files
+
+### Create chrom.sizes files for the database
+Use the fetchChromSizes binary to create chrom.sizes files for the existing wig files
+=> http://hgdownload.soe.ucsc.edu/admin/exe/ fetchChromeSizes binary location
+
+### Converting wig files into a bigWig file
+> 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.
+=> http://hgdownload.soe.ucsc.edu/admin/exe/ wigToBigWig binary location
+
+### Adding the bigWig track
+> 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
+
+### Adding it to the custom track management page
+You can then open it from Add Track and passing the URL
+
+### Alternative way to add it
+You can open the "Add Track" menu, choose the bigwig file and load it
+
+### Customizing the track
+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.
+
+## Setting up the Quantitative View
+### Getting whole-genome CNV coverage
+* Click on the ≡ symbol on the top left corner of the view
+* Click on "Show" and click on "Show all assembly lines"
+* Now, click on the ⋮ next to the bw file name in the view
+* Click on Fill mode -> no fill
+* Click on Score -> Autoscale type -> Local + 3α
+* Click on Score -> Resolution -> Finer resolution
+* Repeat the finer resolution step a couple of times