Off topic:How to get the one upper and one lower numbers
0
0
Entering edit mode
4.7 years ago
Kumar ▴ 170

I have two tab delimited files that are containing numbers in first two rows, I am looking to compare these files and need to grep one lower and one greater numbers in file 2 based on numbers in file 1. please suggest perl/python script.

For example:

File 1:

19951   19901
20918   20868

File 2:

17464   19446   ID=LGE3207
16948   17388   ID=LGE3208
17621   18583   ID=LGE3208
18580   19785   ID=LGE3208
20156   20371   ID=LGE3208
20544   20795   ID=LGE3208
18588   19550   ID=LGE3207
20701   20752   ID=LGE3207
21123   21338   ID=LGE3207
21511   21762   ID=LGE3207
17096   18232   ID=LGE3207
14500   14715   ID=LGE3207

DESIRE OUTPUT:

18580   19785   ID=LGE3208
20156   20371   ID=LGE3208
19547   20752   ID=LGE3207
21123   21338   ID=LGE3207
alignment sequence assembly • 441 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2537 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6