I know this question has been asked before, but have some additional variations:
I have a bed file of regions, want to see closest gene.
- Need a file containing one line for each gene instead of what table browser outputs, which is several lines for each refSeq gene. Not entirely sure how to get this.
- Want output to be the gene names themselves instead of a list of intervals, I guess a further awk operation to get there?
- Want closest gene irrespective of which direction it is from interval.
Any opinions appreciated, thanks!