<p>can someone point to a detailed explanation of how UCSC genome browser interprets coordinates for, and displays, minus strand sequences? It's very confusing. For example this genomic GFF coordinate from mm9 genome:</p>

<p>chr1:3206080-3206102:-</p>

<p>Pulls out the sequence: </p>

<pre><code>&gt;seq1
AATACAAGGAGCCGCAATGTCCA
</code></pre>

<p>which is correct. However, in the genome browser it appears as the reverse complement going from <em>right to left</em></p>

<pre><code>&gt;seq2
TGGACATTGCGGCTCCTTGTATT
</code></pre>

<p>Questions are: </p>

<ol>
<li>why does it UCSC reverse complement it and display it right to left in this way? What is the logic behind this? Is there a way to reverse it, such that the sequence displayed is the sequence pulled from the genome (i.e. <code>seq1</code>)</li>
<li>I thought UCSC is always BED coordinate based, which is a 0-based coordinate system not 1-based. In that case I would have expected the sequence determined by chr1:3206080-3206102 (meant to be a GFF coordinate) to be <em>one base shorter</em> than the sequence I get from UCSC, i.e. chr1:3206080-3206102:- in BED should have a minus 1 start, yielding chr1:3206079-3206102:-</li>
</ol>

<p>any intuitive explanation of how to think about UCSC orientation display choices and how that connects to sequences and their reverse complement on minus strand (and where/when BED versus GFF conventions are used) would be very helpful.</p>

<p>Huh. Yeah, that's not well documented, you are right. I looked in a few places where I expected to see it, but can't find a place to give you a handy link on the viewer reverse strategies. I'll tell you what I know, but that is not the official word and they may have better details about the underlying decisions. And it may just be that I haven't had enough coffee to find it in the documentation this morning.</p>

<p>On the graphical display: Yes, it displays the "upper" strand 5'-3' by default. There are 2 ways to flip it. One is an old way and slightly hard to find. The other is the "reverse" button on the mid-page buttons. That's newer and better, I think, because I really like the way it load the track labels to the other side to remind you that you have flipped the graphical view. But I'll show you both on the image below.</p>

<p>Old way: when you turn on the "base position" track to "full", and you are zoomed in enough to see the 3 frame translation, you will also have access to a little teeny arrow. Clicking that arrow will flip the display. </p>

<p>New way: click that mid-page "reverse" button. The flipped view isn't shown below, but you'll see it immediately if you just click that. </p>

<p><img src='http://blog.openhelix.eu/wp-content/uploads/2014/01/ucsc_reverse.jpg' alt='How to flip the UCSC graphical display' /></p>

<p>On the 0-1 based coordinates, welcome to the club, you are now officially one of us. This bites everyone in the a** at some point in their bioinformatics career. Here's their documentation on that:
<a href='http://genome.ucsc.edu/FAQ/FAQtracks.html#tracks1'>http://genome.ucsc.edu/FAQ/FAQtracks.html#tracks1</a></p>

<p>So part of the answer is just: that's the way it is. But there are tricks. Does that help? </p>
