snp to gene mapping with lowest p value
<p>I am doing snp to gene mapping and after mapping with 50 kb of snp, I have following file. for example (snp,gene,pvalue)</p>

<pre><code> 1. ars113  ap1 0.1 
 2. ars113  ap1 0.1 
 3. ars113  ap1 0.2 
 4. ars113  ap1 0.2
 5. ars113  ap2 0.1 
 6. ars113  ap2 0.2 
 7. ars114  ap6 0.1 
 8. ars114  ap6 0.3
</code></pre>

<p>How do i choose only the markers with lowest p value for each gene? Is there other easy way for whole process.</p>