I'm trying to filter a vcf with a txt that has only the ID column but I keep getting the following error message:
[E::bcf_sr_regions_init] Could not parse the file list.txt, using the columns 1,2[,-1] Failed to read the targets: ^list.txt
I've been using the following command:
bcftools view -T ^list.txt my.vcf > vcf_filtered
Is it possible to do such operation or should my txt have more fields? Keep in mind that my goal is to only keep the snp's listed in the txt.
It's probably unlikely that VCF files contain Unicode characters, and so limiting the character set to ASCII will make pattern matching with grep much faster.
Thank you, Alex. It worked!