Welcome to the Genome Toolbox! I am glad you navigated to the blog and hope you find the contents useful and insightful for your genomic needs. If you find any of the entries particularly helpful, be sure to click the +1 button on the bottom of the post and share with your colleagues. Your input is encouraged, so if you have comments or are aware of more efficient tools not included in a post, I would love to hear from you. Enjoy your time browsing through the Toolbox.

Monday, July 14, 2014

Add Custom BedGraph Track to UCSC Genome Browser

Previously, I made a post on adding custom tracks to the UCSC Genome Broswer and have even expanded on coloring these tracks.  For most of my applications, I have simply used standard .bed files that plot features of interest in the Genome Browser in relation to other UCSC tracks.  Today I wanted to plot data from overlapping features in a depth plot similar to what one would see after next-generation sequencing.  I found the easiest way to do this was by importaing a BedGraph file into the Genome Browser.  Following steps similar to the custom tracks post, you go to the My Data -> Custom Tracks -> Add Custom Tracks and then upload the BedGraph file.  Below is an example of what the header and the first few lines need to look like.

track type=bedGraph name="Chr 20" description="Chr 20 Coverage" visibility=full color=200,100,0 altColor=0,100,200 priority=20
chr20 12500 17500 6
chr20 17500 22500 6
chr20 22500 27500 6
chr20 27500 32500 6
chr20 32500 37500 6
chr20 37500 42500 6
chr20 42500 47500 6
chr20 47500 52500 6
chr20 52500 57500 6
chr20 57500 62500 6
view raw chr20.bedGraph hosted with ❤ by GitHub

More details and options on the BedGraph track format can be found here on the UCSC webpage.

No comments:

Post a Comment