text: user255: I have a set of SNPs (single nucleotide polymorphisms) { S1, S2, ..., SN } from approximately 200 humans. I wish to determine the linkage disequilibrium (LD) for a defined subset of these SNPs. By this I mean e.g. I would like to compute e.g. LD between S1 and S2, S3, S4, but not the LD between S2 and S3. 
  Could this calculation be performed in PLINK?
  
  user5087: Yes, you can do this with plink.  
  You can use the flag --ld-snp <variant_id> to calculate LD between your SNP of interest and all other SNPs.
  If you have multiple SNPs of interest, and want each of those compared with every SNP in your dataset, use --ld-snps <snp1-snp100,snp102,snp104>
  A final option to calculate LD between a specific pair of SNPs is --ld <variant_id1> <variant_id2> 
  This the relevant plink manual page
  
original_text: 255: <p>I have a set of SNPs (single nucleotide polymorphisms) { S<sub>1</sub>, S<sub>2</sub>, ..., S<sub>N</sub> } from approximately 200 humans. I wish to determine the linkage disequilibrium (LD) for a defined subset of these SNPs. By this I mean e.g. I would like to compute e.g. LD between S1 and S2, S3, S4, but not the LD between S2 and S3. </p>
  
  <p>Could this calculation be performed in PLINK?</p>
   5087: <p>Yes, you can do this with plink.  </p>
  
  <p>You can use the flag <code>--ld-snp &lt;variant_id&gt;</code> to calculate LD between your SNP of interest and all other SNPs.<br>
  If you have multiple SNPs of interest, and want each of those compared with every SNP in your dataset, use <code>--ld-snps &lt;snp1-snp100,snp102,snp104&gt;</code><br>
  A final option to calculate LD between a specific pair of SNPs is <code>--ld &lt;variant_id1&gt; &lt;variant_id2&gt;</code>  </p>
  
  <p><a href="https://www.cog-genomics.org/plink/1.9/ld" rel="nofollow noreferrer">This the relevant plink manual page</a></p>
  