Feature Density Histograms #1348
-
Hello! I'm new to Jbrowse and the computer world in general, so bear with me while I try to describe my question. I'm trying to personalize my genome browser. Specifically, I want a feature density histogram to appear when I'm zoomed-out far enough. I've tried editing the track.conf file as described in the jbrowse tutorial https://jbrowse.org/docs/alignments.html. No luck. In desperation, I've also tried editing the trackList.json to include a histogram object in an attempt to copy what I've seen in other genome browsers. I'm not confident this is the correct approach. No luck. At this point, I don't know what question I should be asking. Any help would be much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi there Technically this is the new jbrowse 2 discussion forum (just launched), we don't yet have a jbrowse 1 discussion forum just the issue thread so I'll just go ahead here :) It does generally involves hand-editing to add the histograms config, except if using bin/add-track-json.pl which just adds chunks of json to your config file [1] You may have found this section This shows how to add the histograms to a track in tracks.conf format. This can be done for any Alignments2 track or any CanvasFeatures track also. If you see in your trackList.json that your track type is Alignments2 or CanvasFeatures then you can use the histograms config. Here is an example histograms config for a BAM track
In trackList.json format, we can represent the same concept equivalently like this (tracks.conf and trackList.json are two different syntaxes for making track configs)
One way to command line automate this is to create a file like this called track.json
Then use bin/add-track-json.pl like this
This will automatically paste the trackList.json into the tracks array in trackList.json Lot of info but hope that helps |
Beta Was this translation helpful? Give feedback.
-
Also note: if you are referring to a file like a gene track loaded from flatfile-to-json.pl, histograms are automatically generated for gene tracks generally and if they are just not showing up that may be a different issue. Feel free to post an issue to https://github.com/GMOD/jbrowse |
Beta Was this translation helpful? Give feedback.
Also note: if you are referring to a file like a gene track loaded from flatfile-to-json.pl, histograms are automatically generated for gene tracks generally and if they are just not showing up that may be a different issue. Feel free to post an issue to https://github.com/GMOD/jbrowse