I want to find genes upstream and downstream to gene of my interest based upon the chromosomal co-ordinates. I tried using precede, follow from GRanges package but it does not report the genes which have overlapping co-ordinates (for small genome size, genes are placed very close). How can I get the immediate first neighbor/closest to start and end of my gene.
~Pooja
There are lots of answers on this question already on Biostars. Search for "closest-features" and look at the
--closest
and--dist
options.