overlapped genomic coordinates

view full story

http://www.unix.com – Hi, I would like to know how can I get the ID of a feature if its genomic coordinates overlap the coordinates of another file. Example: Get the 4th column (ID) of this file1: Code: chr1        10        100        gene1 chr2        3000        5000        gene2 chr3        200        1500        gene3 if it overlaps with a feature in this file2: Code: chr2 3001 3330 chr4 10 100 Desired output f (HowTos)