text: user6573: How can one do the reverse of bcftools merge?
  To get one sample back out of the merged one.
  Without holding reference sites.
  
  user298: bcftools has the view command which can do this. Create a text file (samples) which has the names of the samples you want, one per line, and then:
  bcftools view -S samples merged.vcf.gz > new.vcf
  
  Or, if you're running a shell that supports it, you can use input redirection for a single sample name:
  bcftools view -S <(echo "sample name") merged.vcf.gz > new.vcf
  
  
original_text: 6573: <p>How can one do the reverse of bcftools merge?
  To get one sample back out of the merged one.
  Without holding reference sites.</p>
   298: <p><code>bcftools</code> has the <code>view</code> command which can do this. Create a text file (<code>samples</code>) which has the names of the samples you want, one per line, and then:</p>
  
  <pre><code>bcftools view -S samples merged.vcf.gz &gt; new.vcf
  </code></pre>
  
  <p>Or, if you're running a shell that supports it, you can use input redirection for a single sample name:</p>
  
  <pre><code>bcftools view -S &lt;(echo "sample name") merged.vcf.gz &gt; new.vcf
  </code></pre>
  