Hello, David.
Thank you for your question about converting single base positions.
A BED file should allow a single base. The issue with the coordinate you shared is that the coordinate is a 1-based coordinate (chr7 127471196 127471196). Most of our tools, including our LiftOver BED coordinate formatting, require the zero-based coordinate format. In BED format, items where the chromosome start and end position are the same, have a size of 0 bases, such as chr7 127471196 127471196. The following blog post has a lot of great details about how coordinates work in BED format and position format: http://genome.ucsc.edu/blog/the-ucsc-genome-browser-coordinate-counting-systems/.
To convert this base position using LiftOver BED coordinates you would have to subtract 1 from the start position where the start and end positions were the same. So, If we do this to your coordinate, we get chr7 127471195 127471196. This is equivalent to chr7:127471196. In short, for single base items in BED format, the end position is the genomic position.
Here's a previous mailing list answer that includes a short piece of awk code that can adjust the start position: https://groups.google.com/a/soe.ucsc.edu/g/genome/c/K_ZWDs_NRQY/m/SJzDRlSLAAAJ
I hope this is helpful. Please include gen...@soe.ucsc.edu in any replies to ensure visibility by the team. All messages sent to that address are archived on our public forum. If your question includes sensitive information, you may send it instead to genom...@soe.ucsc.edu.
Gerardo Perez
UCSC Genomics Institute
--
---
You received this message because you are subscribed to the Google Groups "UCSC Genome Browser Public Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to genome+un...@soe.ucsc.edu.
To view this discussion on the web visit https://groups.google.com/a/soe.ucsc.edu/d/msgid/genome/498507e7-9684-e4c9-3b0e-e4d58fd25c5c%40hpc.nih.gov.