Hi, I have two files:
File1:
chr1 73270408 73271242 XLOC_000129
chr1 83659841 83660368 XLOC_000153
chr1 163894423 163894714 XLOC_000257
chr1 55485657 55486215 XLOC_000374
chr1 155285623 155287724 XLOC_000553
chr1 155288475 155288592 XLOC_000553
chr1 155289366 155290533 XLOC_000553
File2:
chr1 53933832 53934533 TCP11L2
chr1 53935094 53935266 TCP11L2
chr1 53935961 53936136 TCP11L2
chr1 53937602 53937789 TCP11L2
chr1 53938748 53938884 TCP11L2
chr1 53939440 53939660 TCP11L2
chr1 53940084 53940204 TCP11L2
chr1 53941131 53941263 TCP11L2
chr1 53942563 53942732 TCP11L2
chr1 53945014 53945137 TCP11L2
chr1 121715553 121715945 GRPR
chr1 121719096 121719447 GRPR
chr1 121736572 121736990 GRPR
How can I want to extract genes from File2 that are located 10000 bp upstream and 10000 bp downstream of XLOC_* in File1?
Thank you Alex. It worked!