How To Display Eight Samples As Ucsc Custom Tracks
2
1
Entering edit mode
10.5 years ago
Nitin ▴ 30

I have 4 samples in each grp in untreated vs treated grp. I want to display all this data of two grps (8 samples) in UCSC browser. This is a methylation array data. I generated a bedgraph for one sample as -

track type=bedGraph name="A"description="A hox" visibility=full color=0,255,0                
chr2    176964720    176964720    0.018296992    
chr2    176963353    176963353    0.018508837    
chr17    46699073    46699073    0.021180405

It displays the values as bar diagram in specified color and also display the value itself. My question is How can I display all 8 tracks in different colors as well as I would like to have name of the gene (not value) to appear on the track.

Thanks

ucsc browser • 3.5k views
ADD COMMENT
2
Entering edit mode
10.5 years ago
Robert Sicko ▴ 630

Try using standard .BED format for your track.

track name="example" description="8_samples" visibility=2 itemRgb="On"                                
chr2     176964720    176964721    gene_X-Sample1    0    +    176964720    176964721 0,255,0
chr2     176964720   176964721    gene_X-Sample2    0    +    176964720    176964721 0,255,255

Then you can change the RGB code (last value in above example) for each sample. *Note: I made the example tracks 1-bp long so there will be a tiny bar displayed in UCSC.

ADD COMMENT
1
Entering edit mode
10.5 years ago
Ian 6.0k

You might want to consider using UCSC track hubs as there are ways to group tracks together. This method requires access to a web server. Data must be provided as the "big" formats, e.g. bigBed, bigWig and so on.

ADD COMMENT
1
Entering edit mode

Especially with the "multiWig" format, which overlays many bigWigs into one track: http://genome.ucsc.edu/goldenPath/help/trackDb/trackDbHub.html#aggregate

ADD REPLY

Login before adding your answer.

Traffic: 2618 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6