This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Two UCSC bedgraph tracks next to each other

I'm trying to make a BEDGRAPH track to share with others on UCSC.

I have 4 contigs, followed by 4 more contigs (a total of 8). The only differences between the first 4 and the second 4 are the color and positions (they directly abut one another - as you can see from my code below):

I need to show these contigs on the same y-coordinates (Pos1's all need to be on the same y-coordinate, but next to each other on the x-coordinate)

But when I import this as a custom track, I get two sets of 4 sequences each, with the first left and above the second set). I need the second set right next to the first 4.

browser position chr7:127471100-127495720
browser hide all
track name="ItemRGBDemo" description="Item RGB demonstration" visibility=2 itemRgb="On"
chr7    127471196  127473563  Pos1  1  +   127471196 127471196  200,100,0
chr7    127471196  127473563  Pos2  2  +   127471196 127471196  100,200,0
chr7    127471196  127473563  Pos3  3  +   127471196 127471196  200,20,0
chr7    127471196  127473563  Pos4  4  +   127471196 127471196  255,0,0
chr7    127473564  127475930  Pos1  1  +   127473564 127475930  200,100,0
chr7    127473564  127475930  Pos2  2  +   127473564 127475930  255,0,0
chr7    127473564  127475930  Pos3  3  +   127473564 127475930  200,20,0
chr7    127473564  127475930  Pos4  4  +   127473564 127475930  200,20,0

Thanks in advance for any ideas on this!

ucsc custom-track bedgraph

1 answer

Fourth column should have unique names. You could append a symbol or some characters, so you know you are looking at Pos1 and Pos_1 and so on.

Log in to answer this question.