deeptools / pyGenomeTracks

python module to plot beautiful and highly customizable genome browser tracks
GNU General Public License v3.0
758 stars 111 forks source link

highlight specific exon with different color #479

Open ssssyq1123 opened 3 months ago

ssssyq1123 commented 3 months ago

hi, I want to draw a gene track using bed12 using bed display stacked, however, it only allow to set UTR region color, can I highlight some exons in the track also? how could I modified my data in bed12.

lldelisle commented 3 months ago

Hi, Indeed we only allow different colors for CDS (coding) and UTR (non-coding). If you want to highighlight some exons, you can modify your bed12 so that the exons you want to highlight are the CDS and all the rest are non coding. In a bed12 the CDS id defined in columns 7 and 8 see UCSC FAQ. So if you modify the columns 7 and 8 you can get the resired output: