Closed Axze-rgb closed 3 months ago
The -i/-e
options are intended for filtering (dropping) sites, not for modifying them. To remove all fields except INFO/NOVELAL run bcftools annotate -x INFO/NOVELAL
. For more examples see the documentation http://samtools.github.io/bcftools/howtos/annotate.html
Hello I am sorry there is a misunderstanding, I am not attempting to modify anything, my first line is misleading if should have read INFO="NOVELAL=H5A2.
Basically I want to output a vcf where only sites with NOVELAL=H5A2 are present.
bcftools view -i 'INFO="NOVELAL=H5A2"' H5A2.noval.vcf
[filter.c:3224 filters_init1] Error: the tag "INFO" is not defined in the VCF header
This is the correct command and I don't understand why it tells me the INFO is not defined in the header.
I sincerely apologise for my mistake
Thanks a lot
Then it should be
bcftools view -i 'INFO/NOVELAL=H5A2"' H5A2.noval.vcf
or
bcftools view -i 'NOVELAL=H5A2"' H5A2.noval.vcf
Hello, I have used bcftools contrast, and I want to create a vcf with only the NOVELAL in the INFO field. However, I can't filter because:
I don't understand how this is possible here is the header:
I can see the INFO and the NOVELAL.
I'm really sorry if this is trivial, but I don't understand what's wrong with this VCf.
Here is the command I use to generate it
Thanks so much for any insight