This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How To Color The Reads In Bam Files

I wanted to merge two BAM (alignements) files together. Before merging, how can I color the reads in the BAM files so that while viewing at the UCSC Genome Browser I can tell the reads apart from the two files? Thanks!

bowtie bam alignment

IGV might work better than the UCSC genome browser for your application.

1 answer

Don't merge the BAM files if you want to visualize them using different colors in UCSC genome browser. The UCSC color settings can not be controlled from/within the BAM file. You should upload them separately and change color settings in their config files that goes along with the bam files in UCSC genome browser. I have never done something like this before so I am not sure if it can be done but this page should be able to help you : https://genome.ucsc.edu/goldenPath/help/bam.html

Log in to answer this question.