Remove multiple samples from a VCF file using bcftools
1
0
Entering edit mode
11 weeks ago
LDT ▴ 220

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 • 300 views
ADD COMMENT
5
Entering edit mode
11 weeks 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: 1290 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