text: user1085: I have population SNP data in VCF format, and I found that some SNPs have a great similarity across samples(> 99%). For example:
  CHROM_POS   s0  s1  s2  s3  s4  s5  s6  s7  s8  s9
  chr1_1  A   G   G   A   G   G   A   A   G   A
  chr1_2  A   G   G   A   G   G   A   A   G   T
  chr1_3  C   C   C   A   C   A   C   C   C   C
  
  The similarity between chr1_1 and chr1_2 is 0.9, because they have a different SNP in sample s9.
  Is there a good way to remove these similar SNPs before I put the data into another pipeline?
  Added: These SNPs will be used for GWAS analysis.
  
  user920: What you are attempting to do is known as LD-pruning.
  As @Emily_Ensembl said, it is not customary to do this for standard association tests: it is possible that one of the SNPs you remove is causal, or a better proxy for the causal locus, and would give (slightly) better association signal than the other. Even for SNPs in perfect LD, pruning is unwise because it would complicate interpretation: if SNP chr1_2 had some obvious function, but you removed it and are left only with its proxy chr1_1 (which could be far away), you will have a hard time connecting the dots. Typical GWAS tests are handled pretty quickly on modern computers, and are linear in SNPs, so there is no computational reason to prune either.
  On the other hand, many fancier procedures would require LD-pruned data, because they either
  a) are very computationally expensive, or
  b) assume independent SNPs.
  I suggest reading PLINK's LD pruning documentation, as it pretty much covers the standard ways to do this.
  
original_text: 1085: <p>I have population SNP data in VCF format, and I found that some SNPs have a great similarity across samples(> 99%). For example:</p>
  
  <pre><code>CHROM_POS   s0  s1  s2  s3  s4  s5  s6  s7  s8  s9
  chr1_1  A   G   G   A   G   G   A   A   G   A
  chr1_2  A   G   G   A   G   G   A   A   G   T
  chr1_3  C   C   C   A   C   A   C   C   C   C
  </code></pre>
  
  <p>The similarity between chr1_1 and chr1_2 is 0.9, because they have a different SNP in sample <strong>s9</strong>.</p>
  
  <p>Is there a good way to remove these similar SNPs before I put the data into another pipeline?</p>
  
  <p>Added: These SNPs will be used for GWAS analysis.</p>
   920: <p>What you are attempting to do is known as <strong>LD-pruning</strong>.<br>
  As @Emily_Ensembl said, it is not customary to do this for standard association tests: it is possible that one of the SNPs you remove is causal, or a better proxy for the causal locus, and would give (slightly) better association signal than the other. Even for SNPs in perfect LD, pruning is unwise because it would complicate interpretation: if SNP <code>chr1_2</code> had some obvious function, but you removed it and are left only with its proxy <code>chr1_1</code> (which could be far away), you will have a hard time connecting the dots. Typical GWAS tests are handled pretty quickly on modern computers, and are linear in SNPs, so there is no computational reason to prune either.</p>
  
  <p>On the other hand, many fancier procedures would require LD-pruned data, because they either<br>
  a) are very computationally expensive, or<br>
  b) assume independent SNPs.</p>
  
  <p>I suggest reading <a href="https://www.cog-genomics.org/plink/1.9/ld" rel="noreferrer">PLINK's LD pruning documentation</a>, as it pretty much covers the standard ways to do this.</p>
  