Remove multiple samples from a VCF file using bcftools
1
1
Entering edit mode
17 months ago
LDT ▴ 340

Dear all,

That's a naive question, but I am struggling to find the right answer.

I have a text file of 10 sample ids that I want to remove from the a VCF file. Which command from bcftools or vcftools or plink2.0 do you suggest for removing sample ids?

Thank you for your time

vcf bcftools vcftools • 3.0k views
ADD COMMENT
6
Entering edit mode
17 months ago

https://samtools.github.io/bcftools/bcftools.html

-s, --samples [^]LIST

Comma-separated list of samples to include or exclude if prefixed with "^." (Note that when multiple samples are to be excluded, the "^" prefix is still present only once, e.g. "^SAMPLE1,SAMPLE2".)

-S, --samples-file [^]FILE

File of sample names to include or exclude if prefixed with "^". One sample per line.

ADD COMMENT

Login before adding your answer.

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