Getting probes name which have distance and MAF less/greater than given values
0
0
Entering edit mode
8.7 years ago

Hi,

I have data which have three column. In first column I have name, while second and third column have one or more than one semicolon (;) separated values. Now I want to print row which have distance <= 10 and MAF is >= 0.5. In column second and third column each (;) separated ordered. If same position value have Distance <= 10 and MAF <= 0.5 then print the line. I would be happy if some one provide me R code, if not in R then AWK/SED is OK.

Thanks

Example

ID Distance MAF

cg12044689 8;40 0.000200;0.59

cg12143629 0;1;3 0.000200;0.520;0.0413

cg12247699 42 0.599

cg12375698 1;10 0.00231;0.51

Output should be:

ID Distance MAF

cg12143629 0;1;3 0.000200;0.520;0.0413

cg12375698 1;10 0.00231;0.51

R SNP next-gen • 1.3k views
ADD COMMENT

Login before adding your answer.

Traffic: 1295 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